Deleted Added
full compact
ndp.c (151473) ndp.c (151474)
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 151473 2005-10-19 15:58:23Z suz $ */
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 151474 2005-10-19 16:20:18Z suz $ */
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

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

984 errno = 0; \
985 newval = strtoul(++valptr, NULL, 0); \
986 if (errno) \
987 err(1, "syntax error in %s's value", (f)); \
988 v = newval; \
989 } \
990 } while (0)
991
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

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

984 errno = 0; \
985 newval = strtoul(++valptr, NULL, 0); \
986 if (errno) \
987 err(1, "syntax error in %s's value", (f)); \
988 v = newval; \
989 } \
990 } while (0)
991
992 SETFLAG("disabled", ND6_IFF_IFDISABLED);
992 SETFLAG("nud", ND6_IFF_PERFORMNUD);
993#ifdef ND6_IFF_ACCEPT_RTADV
994 SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV);
995#endif
996#ifdef ND6_IFF_PREFER_SOURCE
997 SETFLAG("prefer_source", ND6_IFF_PREFER_SOURCE);
998#endif
999 SETVALUE("basereachable", ND.basereachable);

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

1050 }
1051 for (j = 0; j < 8; j++)
1052 printf("%02x", rbuf[j]);
1053 }
1054 }
1055#endif
1056 if (ND.flags) {
1057 printf("\nFlags: ");
993 SETFLAG("nud", ND6_IFF_PERFORMNUD);
994#ifdef ND6_IFF_ACCEPT_RTADV
995 SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV);
996#endif
997#ifdef ND6_IFF_PREFER_SOURCE
998 SETFLAG("prefer_source", ND6_IFF_PREFER_SOURCE);
999#endif
1000 SETVALUE("basereachable", ND.basereachable);

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

1051 }
1052 for (j = 0; j < 8; j++)
1053 printf("%02x", rbuf[j]);
1054 }
1055 }
1056#endif
1057 if (ND.flags) {
1058 printf("\nFlags: ");
1059#ifdef ND6_IFF_IFDISABLED
1060 if ((ND.flags & ND6_IFF_IFDISABLED))
1061 printf("disabled ");
1062#endif
1058 if ((ND.flags & ND6_IFF_PERFORMNUD))
1059 printf("nud ");
1060#ifdef ND6_IFF_ACCEPT_RTADV
1061 if ((ND.flags & ND6_IFF_ACCEPT_RTADV))
1062 printf("accept_rtadv ");
1063#endif
1064#ifdef ND6_IFF_PREFER_SOURCE
1065 if ((ND.flags & ND6_IFF_PREFER_SOURCE))

--- 549 unchanged lines hidden ---
1063 if ((ND.flags & ND6_IFF_PERFORMNUD))
1064 printf("nud ");
1065#ifdef ND6_IFF_ACCEPT_RTADV
1066 if ((ND.flags & ND6_IFF_ACCEPT_RTADV))
1067 printf("accept_rtadv ");
1068#endif
1069#ifdef ND6_IFF_PREFER_SOURCE
1070 if ((ND.flags & ND6_IFF_PREFER_SOURCE))

--- 549 unchanged lines hidden ---