summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2012-02-08 22:05:26 +0000
committerpluknet <pluknet@FreeBSD.org>2012-02-08 22:05:26 +0000
commit322f330b9214ae7d4356e7d66d3f1970ab7c74cd (patch)
tree60efdffd071fcb0bb08afd21244caedb7562a8d0 /sys/net
parentfb8ee5e8112f4abdb220d27b94885f3218717eb9 (diff)
downloadFreeBSD-src-322f330b9214ae7d4356e7d66d3f1970ab7c74cd.zip
FreeBSD-src-322f330b9214ae7d4356e7d66d3f1970ab7c74cd.tar.gz
g/c last bit of old ipv6 prefix management.
Reviewed by: bz Obtained from: NetBSD, net/if.h, rev 1.80
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c1
-rw-r--r--sys/net/if_var.h17
2 files changed, 1 insertions, 17 deletions
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.
*/
OpenPOWER on IntegriCloud