On 14/04/17(Fri) 09:17, Pierre Emeriaud wrote:
> > arp.c has rdomain = getrtable(), ndp.c has not. Is this the reason why
> > I get such results?
>
> I just tested the following diff:
ok mpi@
>
> Index: ndp.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/ndp/ndp.c,v
> retrieving revision 1.79
> diff -u -p -r1.79 ndp.c
> --- ndp.c 29 Nov 2016 08:55:06 -0000 1.79
> +++ ndp.c 14 Apr 2017 07:14:09 -0000
> @@ -161,6 +161,7 @@ main(int argc, char *argv[])
>
> pid = getpid();
> thiszone = gmt2local(0);
> + rdomain = getrtable();
> while ((ch = getopt(argc, argv, "acd:f:i:nprstA:HPRV:")) != -1)
> switch (ch) {
> case 'a':
>
>
> ndp(8) now behaves as one would expect:
>
> $ route -T20 exec ./ndp -an
> Neighbor Linklayer Address Netif Expire S
> Flags
> fe80::223:8bff:fe8a:5d58%vlan832 00:23:8b:8a:5d:58 vlan832 permanent R l
>