Module Name: src Committed By: ozaki-r Date: Wed Jun 28 08:17:50 UTC 2017
Modified Files: src/tests/net/arp: t_arp.sh src/tests/net/ndp: t_ndp.sh src/usr.sbin/arp: arp.c src/usr.sbin/ndp: ndp.c Log Message: Enable to remove multiple ARP/NDP entries for one destination The kernel can have multiple ARP/NDP entries which have an indentical destination on different interfaces. This is normal and can be reproduce easily by ping -I or ping6 -S. We should be able to remove such entries. arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries and remove matched entries. So we can remove multiple entries described above. This fetch all and selective removal behavior is the same as arp <ip> and ndp <ip>; they also do fetch all entries and show only matched entries. Related to PR 51179 To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/tests/net/arp/t_arp.sh cvs rdiff -u -r1.28 -r1.29 src/tests/net/ndp/t_ndp.sh cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/arp/arp.c cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/ndp/ndp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.