Deleted Added
sdiff udiff text old ( 133249 ) new ( 151468 )
full compact
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 133249 2004-08-07 04:28:56Z imp $ */
2/* $KAME: ndp.c,v 1.104 2003/06/27 07:48:39 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 950 unchanged lines hidden (view full) ---

960 do {\
961 if (strcmp(cp, (s)) == 0) {\
962 if (clear)\
963 newflags &= ~(f);\
964 else\
965 newflags |= (f);\
966 }\
967 } while (0)
968 SETFLAG("nud", ND6_IFF_PERFORMNUD);
969#ifdef ND6_IFF_ACCEPT_RTADV
970 SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV);
971#endif
972#ifdef ND6_IFF_PREFER_SOURCE
973 SETFLAG("prefer_source", ND6_IFF_PREFER_SOURCE);
974#endif
975
976 ND.flags = newflags;
977 if (ioctl(s, SIOCSIFINFO_FLAGS, (caddr_t)&nd) < 0) {
978 err(1, "ioctl(SIOCSIFINFO_FLAGS)");
979 /* NOTREACHED */
980 }
981#undef SETFLAG
982 }
983
984 if (!ND.initialized) {
985 errx(1, "%s: not initialized yet", ifname);
986 /* NOTREACHED */
987 }
988
989 printf("linkmtu=%d", ND.linkmtu);
990 printf(", maxmtu=%d", ND.maxmtu);
991 printf(", curhlim=%d", ND.chlim);
992 printf(", basereachable=%ds%dms",
993 ND.basereachable / 1000, ND.basereachable % 1000);
994 printf(", reachable=%ds", ND.reachable);
995 printf(", retrans=%ds%dms", ND.retrans / 1000, ND.retrans % 1000);
996#ifdef IPV6CTL_USETEMPADDR

--- 582 unchanged lines hidden ---