g/c last bit of old ipv6 prefix management.
Reviewed by: bz Obtained from: NetBSD, net/if.h, rev 1.80
This commit is contained in:
parent
4349d27828
commit
4ecf274be7
@ -456,7 +456,6 @@ if_alloc(u_char type)
|
||||
ifp->if_afdata_initialized = 0;
|
||||
IF_AFDATA_LOCK_INIT(ifp);
|
||||
TAILQ_INIT(&ifp->if_addrhead);
|
||||
TAILQ_INIT(&ifp->if_prefixhead);
|
||||
TAILQ_INIT(&ifp->if_multiaddrs);
|
||||
TAILQ_INIT(&ifp->if_groups);
|
||||
#ifdef MAC
|
||||
|
@ -96,7 +96,6 @@ struct vnet;
|
||||
|
||||
TAILQ_HEAD(ifnethead, ifnet); /* we use TAILQs so that the order of */
|
||||
TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
|
||||
TAILQ_HEAD(ifprefixhead, ifprefix);
|
||||
TAILQ_HEAD(ifmultihead, ifmultiaddr);
|
||||
TAILQ_HEAD(ifgrouphead, ifg_group);
|
||||
|
||||
@ -184,7 +183,7 @@ struct ifnet {
|
||||
struct label *if_label; /* interface MAC label */
|
||||
|
||||
/* these are only used by IPv6 */
|
||||
struct ifprefixhead if_prefixhead; /* list of prefixes per if */
|
||||
void *if_unused[2];
|
||||
void *if_afdata[AF_MAX];
|
||||
int if_afdata_initialized;
|
||||
struct rwlock if_afdata_lock;
|
||||
@ -761,20 +760,6 @@ void ifa_init(struct ifaddr *ifa);
|
||||
void ifa_ref(struct ifaddr *ifa);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The prefix structure contains information about one prefix
|
||||
* of an interface. They are maintained by the different address families,
|
||||
* are allocated and attached when a prefix or an address is set,
|
||||
* and are linked together so all prefixes for an interface can be located.
|
||||
*/
|
||||
struct ifprefix {
|
||||
struct sockaddr *ifpr_prefix; /* prefix of interface */
|
||||
struct ifnet *ifpr_ifp; /* back-pointer to interface */
|
||||
TAILQ_ENTRY(ifprefix) ifpr_list; /* queue macro glue */
|
||||
u_char ifpr_plen; /* prefix length in bits */
|
||||
u_char ifpr_type; /* protocol dependent prefix type */
|
||||
};
|
||||
|
||||
/*
|
||||
* Multicast address structure. This is analogous to the ifaddr
|
||||
* structure except that it keeps track of multicast addresses.
|
||||
|
Loading…
x
Reference in New Issue
Block a user