Module Name: src Committed By: snj Date: Sun Apr 8 06:09:12 UTC 2018
Modified Files: src/sys/netinet [netbsd-8]: in.c src/sys/netinet6 [netbsd-8]: in6.c src/tests/net/arp [netbsd-8]: t_arp.sh Log Message: Pull up following revision(s) (requested by ozaki-r in ticket #701): sys/netinet/in.c: 1.227 sys/netinet6/in6.c: 1.265 tests/net/arp/t_arp.sh: 1.35-1.36 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 -r1.203.2.11 -r1.203.2.12 src/sys/netinet/in.c cvs rdiff -u -r1.245.2.9 -r1.245.2.10 src/sys/netinet6/in6.c cvs rdiff -u -r1.22.6.1 -r1.22.6.2 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.