summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_proto.c
diff options
context:
space:
mode:
authorjinmei <jinmei@FreeBSD.org>2007-05-17 21:20:24 +0000
committerjinmei <jinmei@FreeBSD.org>2007-05-17 21:20:24 +0000
commit17983d43273d31fd5821f7756fad75a8e59bfe2c (patch)
tree414a2eb2ef1ea5dfc2a5caa05f6d4956ec2b2b85 /sys/netinet6/in6_proto.c
parent5e8c160d0bc926d0752ea7b656931f06b4a4278e (diff)
downloadFreeBSD-src-17983d43273d31fd5821f7756fad75a8e59bfe2c.zip
FreeBSD-src-17983d43273d31fd5821f7756fad75a8e59bfe2c.tar.gz
- Disabled responding to NI queries from a global address by default as
specified in RFC4620. A new flag for icmp6_nodeinfo was added to enable the feature. - Also cleaned up the code so that the semantics of the icmp6_nodeinfo flags is clearer (i.e., defined specific macro names instead of using hard-coded values). Approved by: gnn (mentor) MFC after: 1 week
Diffstat (limited to 'sys/netinet6/in6_proto.c')
-rw-r--r--sys/netinet6/in6_proto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 5269cfa..e80cdcc 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -443,7 +443,8 @@ u_long rip6_recvspace = RIPV6RCVQ;
int icmp6_rediraccept = 1; /* accept and process redirects */
int icmp6_redirtimeout = 10 * 60; /* 10 minutes */
int icmp6errppslim = 100; /* 100pps */
-int icmp6_nodeinfo = 3; /* enable/disable NI response */
+/* control how to respond to NI queries */
+int icmp6_nodeinfo = (ICMP6_NODEINFO_FQDNOK|ICMP6_NODEINFO_NODEADDROK);
/* UDP on IP6 parameters */
int udp6_sendspace = 9216; /* really max datagram size */
OpenPOWER on IntegriCloud