Module Name: src
Committed By: snj
Date: Sun Apr 8 06:09:12 UTC 2018
src/sys/netinet [netbsd-8]: in.c
src/sys/netinet6 [netbsd-8]: in6.c
src/tests/net/arp [netbsd-8]: t_arp.sh
Pull up following revision(s) (requested by ozaki-r in ticket #701):
Make GARP work again when DAD is disabled
The change avoids setting an IP address tentative on initializing it when
the IPv4 DAD is disabled (net.inet.ip.dad_count=0), which allows a GARP packet
to be sent (see arpannounce). This is the same behavior of NetBSD 7, i.e.,
before introducing the IPv4 DAD.
Additionally do the same change to IPv6 DAD for consistency.
The change is suggested by roy@
Improve packet checks and error reporting
Add tests for GARP without DAD
Additionally make the existing tests for GARP more explicit.
To generate a diff of this commit:
cvs rdiff -u -r184.108.40.206 -r220.127.116.11 src/sys/netinet/in.c
cvs rdiff -u -r18.104.22.168 -r22.214.171.124 src/sys/netinet6/in6.c
cvs rdiff -u -r126.96.36.199 -r188.8.131.52 src/tests/net/arp/t_arp.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.