Deleted Added
full compact
af_nd6.c (244538) af_nd6.c (245230)
1/*
2 * Copyright (c) 2009 Hiroki Sato. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#ifndef lint
27static const char rcsid[] =
1/*
2 * Copyright (c) 2009 Hiroki Sato. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#ifndef lint
27static const char rcsid[] =
28 "$FreeBSD: head/sbin/ifconfig/af_nd6.c 244538 2012-12-21 15:54:13Z kevlo $";
28 "$FreeBSD: head/sbin/ifconfig/af_nd6.c 245230 2013-01-09 18:18:08Z ume $";
29#endif /* not lint */
30
31#include <sys/param.h>
32#include <sys/ioctl.h>
33#include <sys/socket.h>
34#include <sys/sysctl.h>
35#include <net/if.h>
36#include <net/route.h>

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

53
54#include <netinet6/nd6.h>
55
56#include "ifconfig.h"
57
58#define MAX_SYSCTL_TRY 5
59#define ND6BITS "\020\001PERFORMNUD\002ACCEPT_RTADV\003PREFER_SOURCE" \
60 "\004IFDISABLED\005DONT_SET_IFROUTE\006AUTO_LINKLOCAL" \
29#endif /* not lint */
30
31#include <sys/param.h>
32#include <sys/ioctl.h>
33#include <sys/socket.h>
34#include <sys/sysctl.h>
35#include <net/if.h>
36#include <net/route.h>

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

53
54#include <netinet6/nd6.h>
55
56#include "ifconfig.h"
57
58#define MAX_SYSCTL_TRY 5
59#define ND6BITS "\020\001PERFORMNUD\002ACCEPT_RTADV\003PREFER_SOURCE" \
60 "\004IFDISABLED\005DONT_SET_IFROUTE\006AUTO_LINKLOCAL" \
61 "\007NO_RADR\020DEFAULTIF"
61 "\007NO_RADR\010NO_PREFER_IFACE\020DEFAULTIF"
62
63static int isnd6defif(int);
64void setnd6flags(const char *, int, int, const struct afswtch *);
65void setnd6defif(const char *, int, int, const struct afswtch *);
66void nd6_status(int);
67
68void
69setnd6flags(const char *dummyaddr __unused,

--- 100 unchanged lines hidden ---
62
63static int isnd6defif(int);
64void setnd6flags(const char *, int, int, const struct afswtch *);
65void setnd6defif(const char *, int, int, const struct afswtch *);
66void nd6_status(int);
67
68void
69setnd6flags(const char *dummyaddr __unused,

--- 100 unchanged lines hidden ---