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/netinet6/nd6.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/netinet6/nd6.h')
-rw-r--r-- | sys/netinet6/nd6.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h index 756f495..3040dc9 100644 --- a/sys/netinet6/nd6.h +++ b/sys/netinet6/nd6.h @@ -125,7 +125,7 @@ struct in6_ndireq { ((MAX_RANDOM_FACTOR - MIN_RANDOM_FACTOR) * (x >> 10)))) /1000) struct nd_defrouter { - LIST_ENTRY(nd_defrouter) dr_entry; + LIST_ENTRY(struct nd_defrouter) dr_entry; struct in6_addr rtaddr; u_char flags; u_short rtlifetime; @@ -135,7 +135,7 @@ struct nd_defrouter { struct nd_prefix { struct ifnet *ndpr_ifp; - LIST_ENTRY(nd_prefix) ndpr_entry; + LIST_ENTRY(struct nd_prefix) ndpr_entry; struct sockaddr_in6 ndpr_prefix; /* prefix */ struct in6_addr ndpr_mask; /* netmask derived from the prefix */ struct in6_addr ndpr_addr; /* address that is derived from the prefix */ @@ -145,7 +145,7 @@ struct nd_prefix { time_t ndpr_preferred; /* preferred time of the prefix */ struct prf_ra ndpr_flags; /* list of routers that advertise the prefix: */ - LIST_HEAD(pr_rtrhead, nd_pfxrouter) ndpr_advrtrs; + LIST_HEAD(pr_rtrhead, struct nd_pfxrouter) ndpr_advrtrs; u_char ndpr_plen; struct ndpr_stateflags { /* if this prefix can be regarded as on-link */ @@ -196,12 +196,12 @@ struct inet6_ndpr_msghdr { #define ndpr2ifpr(ndpr) ((struct ifprefix *)(ndpr)) struct nd_pfxrouter { - LIST_ENTRY(nd_pfxrouter) pfr_entry; + LIST_ENTRY(struct nd_pfxrouter) pfr_entry; struct nd_defrouter *router; }; -LIST_HEAD(nd_drhead, nd_defrouter); -LIST_HEAD(nd_prhead, nd_prefix); +LIST_HEAD(nd_drhead, struct nd_defrouter); +LIST_HEAD(nd_prhead, struct nd_prefix); /* nd6.c */ extern int nd6_prune; |