diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/netinet/in_pcb.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
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
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 08733ad..cc9527c 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; }; |