aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
committerJake Burkholder <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
commit740a1973a62eaa8e1dc23e22f84dacb3346d303a (patch)
treeacf054a865eef37380f5ac3d3c07766b5bb234b0 /sys/netinet/in_pcb.h
parentb4183771fd8ab7a5946fd38df04c1e24b1268bea (diff)
downloadsrc-740a1973a62eaa8e1dc23e22f84dacb3346d303a.tar.gz
src-740a1973a62eaa8e1dc23e22f84dacb3346d303a.zip
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
Notes
Notes: svn path=/head/; revision=60833
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 08733ad152a8..cc9527c49212 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -52,8 +52,8 @@
* up (to a socket structure) and down (to a protocol-specific)
* control block.
*/
-LIST_HEAD(inpcbhead, inpcb);
-LIST_HEAD(inpcbporthead, inpcbport);
+LIST_HEAD(inpcbhead, struct inpcb);
+LIST_HEAD(inpcbporthead, struct inpcbport);
typedef u_quad_t inp_gen_t;
/*
@@ -75,10 +75,10 @@ struct in_addr_4in6 {
struct icmp6_filter;
struct inpcb {
- LIST_ENTRY(inpcb) inp_hash; /* hash list */
+ LIST_ENTRY(struct inpcb) inp_hash; /* hash list */
u_short inp_fport; /* foreign port */
u_short inp_lport; /* local port */
- LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */
+ LIST_ENTRY(struct inpcb) inp_list; /* list for all PCBs of this proto */
u_int32_t inp_flow;
/* protocol dependent part, local and foreign addr */
@@ -140,7 +140,7 @@ struct inpcb {
short inp6_hops;
u_int8_t inp6_hlim;
} inp_depend6;
- LIST_ENTRY(inpcb) inp_portlist;
+ LIST_ENTRY(struct inpcb) inp_portlist;
struct inpcbport *inp_phd; /* head of this list */
inp_gen_t inp_gencnt; /* generation count of this instance */
#define in6p_faddr inp_dependfaddr.inp6_foreign
@@ -191,7 +191,7 @@ struct xinpgen {
#endif /* _SYS_SOCKETVAR_H_ */
struct inpcbport {
- LIST_ENTRY(inpcbport) phd_hash;
+ LIST_ENTRY(struct inpcbport) phd_hash;
struct inpcbhead phd_pcblist;
u_short phd_port;
};