summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-02-28 11:55:24 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-02-28 11:55:24 +0000
commit15bfd42ebaec37ba450f58b4943cb687022f54e1 (patch)
tree6f6146c185fb87733b256f354abbdc0ec3ce70a4 /sys/netinet
parent6d7c6ca4e58adcc6cc1db9110fa36d1aacc6c54d (diff)
bring in recent KAME changes (only important and stable ones, as usual).
- remove net.inet6.ip6.nd6_proxyall. introduce proxy NDP code works just like "arp -s". - revise source address selection. be more careful about use of yet-to-be-valid addresses as source. - as router, transmit ICMP6_DST_UNREACH_BEYONDSCOPE against out-of-scope packet forwarding attempt. - path MTU discovery takes care of routing header properly. - be more strict about mbuf chain parsing. - nuke xxCTL_VARS #define, they are for BSDI. - disable SIOCSIFDSTADDR_IN6/SIOCSIFNETMASK_IN6 ioctl, they do not fit IPv6 model where multiple address on interface is normal. (kernel side supports them for a while for backward compat, the support will be nuked shortly) - introduce "default outgoing interface" (for spec conformance in very rare case)
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/icmp6.h28
1 files changed, 5 insertions, 23 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index cff11780015..fbd96f0107f 100644
--- a/sys/netinet/icmp6.h
+++ b/sys/netinet/icmp6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.h,v 1.2 2000/02/07 05:45:55 itojun Exp $ */
+/* $OpenBSD: icmp6.h,v 1.3 2000/02/28 11:55:20 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -469,12 +469,12 @@ struct icmp6_filter {
#ifdef _KERNEL
#define ICMP6_FILTER_SETPASSALL(filterp) \
- { \
+do { \
int i; u_char *p; \
p = (u_char *)filterp; \
for (i = 0; i < sizeof(struct icmp6_filter); i++) \
p[i] = 0xff; \
- }
+} while (0)
#define ICMP6_FILTER_SETBLOCKALL(filterp) \
bzero(filterp, sizeof(struct icmp6_filter))
#else /* _KERNEL */
@@ -525,7 +525,7 @@ struct icmp6stat {
#define ICMPV6CTL_ND6_UMAXTRIES 9
#define ICMPV6CTL_ND6_MMAXTRIES 10
#define ICMPV6CTL_ND6_USELOOPBACK 11
-#define ICMPV6CTL_ND6_PROXYALL 12
+/*#define ICMPV6CTL_ND6_PROXYALL 12 obsoleted, do not reuse here */
#define ICMPV6CTL_NODEINFO 13
#define ICMPV6CTL_MAXID 14
@@ -542,28 +542,10 @@ struct icmp6stat {
{ "nd6_umaxtries", CTLTYPE_INT }, \
{ "nd6_mmaxtries", CTLTYPE_INT }, \
{ "nd6_useloopback", CTLTYPE_INT }, \
- { "nd6_proxyall", CTLTYPE_INT }, \
+ { 0, 0 }, \
{ "nodeinfo", CTLTYPE_INT }, \
}
-#define ICMPV6CTL_VARS { \
- 0, \
- 0, \
- &icmp6_rediraccept, \
- &icmp6_redirtimeout, \
- 0, \
- 0, \
- &icmp6errratelim, \
- &nd6_prune, \
- 0, \
- &nd6_delay, \
- &nd6_umaxtries, \
- &nd6_mmaxtries, \
- &nd6_useloopback, \
- &nd6_proxyall, \
- &icmp6_nodeinfo, \
-}
-
#define RTF_PROBEMTU RTF_PROTO1
#ifdef _KERNEL