Deleted Added
full compact
ndp.c (243903) ndp.c (245230)
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 243903 2012-12-05 19:45:24Z hrs $ */
1/* $FreeBSD: head/usr.sbin/ndp/ndp.c 245230 2013-01-09 18:18:08Z ume $ */
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

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

977 SETFLAG("disabled", ND6_IFF_IFDISABLED);
978 SETFLAG("nud", ND6_IFF_PERFORMNUD);
979#ifdef ND6_IFF_ACCEPT_RTADV
980 SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV);
981#endif
982#ifdef ND6_IFF_AUTO_LINKLOCAL
983 SETFLAG("auto_linklocal", ND6_IFF_AUTO_LINKLOCAL);
984#endif
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

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

977 SETFLAG("disabled", ND6_IFF_IFDISABLED);
978 SETFLAG("nud", ND6_IFF_PERFORMNUD);
979#ifdef ND6_IFF_ACCEPT_RTADV
980 SETFLAG("accept_rtadv", ND6_IFF_ACCEPT_RTADV);
981#endif
982#ifdef ND6_IFF_AUTO_LINKLOCAL
983 SETFLAG("auto_linklocal", ND6_IFF_AUTO_LINKLOCAL);
984#endif
985#ifdef ND6_IFF_NO_PREFER_IFACE
986 SETFLAG("no_prefer_iface", ND6_IFF_NO_PREFER_IFACE);
987#endif
985 SETVALUE("basereachable", ND.basereachable);
986 SETVALUE("retrans", ND.retrans);
987 SETVALUE("curhlim", ND.chlim);
988
989 ND.flags = newflags;
990 if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) {
991 err(1, "ioctl(SIOCSIFINFO_IN6)");
992 /* NOTREACHED */

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

1050#ifdef ND6_IFF_ACCEPT_RTADV
1051 if ((ND.flags & ND6_IFF_ACCEPT_RTADV))
1052 printf("accept_rtadv ");
1053#endif
1054#ifdef ND6_IFF_AUTO_LINKLOCAL
1055 if ((ND.flags & ND6_IFF_AUTO_LINKLOCAL))
1056 printf("auto_linklocal ");
1057#endif
988 SETVALUE("basereachable", ND.basereachable);
989 SETVALUE("retrans", ND.retrans);
990 SETVALUE("curhlim", ND.chlim);
991
992 ND.flags = newflags;
993 if (ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) {
994 err(1, "ioctl(SIOCSIFINFO_IN6)");
995 /* NOTREACHED */

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

1053#ifdef ND6_IFF_ACCEPT_RTADV
1054 if ((ND.flags & ND6_IFF_ACCEPT_RTADV))
1055 printf("accept_rtadv ");
1056#endif
1057#ifdef ND6_IFF_AUTO_LINKLOCAL
1058 if ((ND.flags & ND6_IFF_AUTO_LINKLOCAL))
1059 printf("auto_linklocal ");
1060#endif
1061#ifdef ND6_IFF_NO_PREFER_IFACE
1062 if ((ND.flags & ND6_IFF_NO_PREFER_IFACE))
1063 printf("no_prefer_iface ");
1064#endif
1058 }
1059 putc('\n', stdout);
1060#undef ND
1061
1062 close(s);
1063}
1064
1065#ifndef ND_RA_FLAG_RTPREF_MASK /* XXX: just for compilation on *BSD release */

--- 525 unchanged lines hidden ---
1065 }
1066 putc('\n', stdout);
1067#undef ND
1068
1069 close(s);
1070}
1071
1072#ifndef ND_RA_FLAG_RTPREF_MASK /* XXX: just for compilation on *BSD release */

--- 525 unchanged lines hidden ---