X-Git-Url: https://git.saurik.com/apple/network_cmds.git/blobdiff_plain/fa34b6f5f32f696bb2fe92a877dfaec960fcd850..26c66ce99fcafd17b96b2fc4815ddf9fc3d85feb:/ndp.tproj/ndp.c?ds=sidebyside diff --git a/ndp.tproj/ndp.c b/ndp.tproj/ndp.c index 2afce5d..01d64aa 100644 --- a/ndp.tproj/ndp.c +++ b/ndp.tproj/ndp.c @@ -1205,9 +1205,9 @@ ifinfo(int argc, char **argv) } while (0) SETFLAG("nud", ND6_IFF_PERFORMNUD); SETFLAG("proxy_prefixes", ND6_IFF_PROXY_PREFIXES); - SETFLAG("ignore_na", ND6_IFF_IGNORE_NA); SETFLAG("disabled", ND6_IFF_IFDISABLED); SETFLAG("insecure", ND6_IFF_INSECURE); + SETFLAG("replicated", ND6_IFF_REPLICATED); ND.flags = newflags; if (ioctl(s, SIOCSIFINFO_FLAGS, (caddr_t)&nd) < 0) { @@ -1248,17 +1248,19 @@ ifinfo(int argc, char **argv) } } if (ND.flags) { - printf("\nFlags: "); + printf("\nFlags: 0x%x ", ND.flags); if ((ND.flags & ND6_IFF_IFDISABLED) != 0) printf("IFDISABLED "); - if ((ND.flags & ND6_IFF_IGNORE_NA) != 0) - printf("IGNORE_NA "); if ((ND.flags & ND6_IFF_INSECURE) != 0) printf("INSECURE "); if ((ND.flags & ND6_IFF_PERFORMNUD) != 0) printf("PERFORMNUD "); if ((ND.flags & ND6_IFF_PROXY_PREFIXES) != 0) printf("PROXY_PREFIXES "); + if ((ND.flags & ND6_IFF_REPLICATED) != 0) + printf("REPLICATED "); + if ((ND.flags & ND6_IFF_DAD) != 0) + printf("DAD "); } putc('\n', stdout); #undef ND