summaryrefslogtreecommitdiff
path: root/sys/netinet6/nd6.h
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-07-12 16:53:59 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-07-12 16:53:59 +0000
commite2a453398d2204cc4d37f28595e6d8197565a3dc (patch)
tree59384a8a30a48c6360a209de736d4138a60312de /sys/netinet6/nd6.h
parent7cf30b215fb866dec87461958bd5896dfadfc746 (diff)
Get rid of ICMPV6CTL_ND6_DRLIST and ICMPV6CTL_ND6_PRLIST sysctls
With this we can also get rid of in6_prefix and in6_defrouter. They are meaningless, the kernel no longer tracks this information. Pointed out by & OK mpi
Diffstat (limited to 'sys/netinet6/nd6.h')
-rw-r--r--sys/netinet6/nd6.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h
index 660c681e333..3b08e2c5dfe 100644
--- a/sys/netinet6/nd6.h
+++ b/sys/netinet6/nd6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.h,v 1.67 2017/07/11 12:51:05 florian Exp $ */
+/* $OpenBSD: nd6.h,v 1.68 2017/07/12 16:53:58 florian Exp $ */
/* $KAME: nd6.h,v 1.95 2002/06/08 11:31:06 itojun Exp $ */
/*
@@ -68,14 +68,6 @@ struct in6_nbrinfo {
int state; /* reachability state */
};
-struct in6_defrouter {
- struct sockaddr_in6 rtaddr;
- time_t expire;
- u_short rtlifetime;
- u_short if_index;
- u_char flags;
-};
-
struct prf_ra {
u_int onlink : 1;
u_int autonomous : 1;
@@ -83,25 +75,6 @@ struct prf_ra {
u_int reserved : 5;
};
-struct in6_prefix {
- struct sockaddr_in6 prefix;
- struct prf_ra raflags;
- time_t expire;
- u_int32_t vltime;
- u_int32_t pltime;
- u_int32_t flags;
- int refcnt;
- u_short if_index;
- u_short advrtrs; /* number of advertisement routers */
- u_char prefixlen;
- u_char origin;
-#define PR_ORIG_RA 0
-#define PR_ORIG_RR 1
-#define PR_ORIG_STATIC 2
-#define PR_ORIG_KERNEL 3
- /* struct sockaddr_in6 advrtr[] */
-};
-
struct in6_ndireq {
char ifname[IFNAMSIZ];
struct nd_ifinfo ndi;
@@ -217,7 +190,6 @@ int nd6_ioctl(u_long, caddr_t, struct ifnet *);
void nd6_cache_lladdr(struct ifnet *, struct in6_addr *, char *, int, int, int);
int nd6_resolve(struct ifnet *, struct rtentry *, struct mbuf *,
struct sockaddr *, u_char *);
-int nd6_sysctl(int, void *, size_t *, void *, size_t);
int nd6_need_cache(struct ifnet *);
void nd6_na_input(struct mbuf *, int, int);