From 322f330b9214ae7d4356e7d66d3f1970ab7c74cd Mon Sep 17 00:00:00 2001 From: pluknet Date: Wed, 8 Feb 2012 22:05:26 +0000 Subject: g/c last bit of old ipv6 prefix management. Reviewed by: bz Obtained from: NetBSD, net/if.h, rev 1.80 --- sys/net/if.c | 1 - sys/net/if_var.h | 17 +---------------- 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if.c b/sys/net/if.c index d287354..42ccda7 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -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 diff --git a/sys/net/if_var.h b/sys/net/if_var.h index d1157af..f756785 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -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; @@ -762,20 +761,6 @@ 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. */ -- cgit v1.1