af_inet6.c (278107) | af_inet6.c (279676) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31static const char rcsid[] = |
32 "$FreeBSD: head/sbin/ifconfig/af_inet6.c 278107 2015-02-02 19:00:18Z vsevolod $"; | 32 "$FreeBSD: head/sbin/ifconfig/af_inet6.c 279676 2015-03-05 21:27:49Z hrs $"; |
33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/ioctl.h> 37#include <sys/socket.h> 38#include <net/if.h> 39 40#include <err.h> --- 439 unchanged lines hidden (view full) --- 480 DEF_CMD("ifdisabled", ND6_IFF_IFDISABLED, setnd6flags), 481 DEF_CMD("-ifdisabled", -ND6_IFF_IFDISABLED, setnd6flags), 482 DEF_CMD("nud", ND6_IFF_PERFORMNUD, setnd6flags), 483 DEF_CMD("-nud", -ND6_IFF_PERFORMNUD, setnd6flags), 484 DEF_CMD("auto_linklocal",ND6_IFF_AUTO_LINKLOCAL,setnd6flags), 485 DEF_CMD("-auto_linklocal",-ND6_IFF_AUTO_LINKLOCAL,setnd6flags), 486 DEF_CMD("no_prefer_iface",ND6_IFF_NO_PREFER_IFACE,setnd6flags), 487 DEF_CMD("-no_prefer_iface",-ND6_IFF_NO_PREFER_IFACE,setnd6flags), | 33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/ioctl.h> 37#include <sys/socket.h> 38#include <net/if.h> 39 40#include <err.h> --- 439 unchanged lines hidden (view full) --- 480 DEF_CMD("ifdisabled", ND6_IFF_IFDISABLED, setnd6flags), 481 DEF_CMD("-ifdisabled", -ND6_IFF_IFDISABLED, setnd6flags), 482 DEF_CMD("nud", ND6_IFF_PERFORMNUD, setnd6flags), 483 DEF_CMD("-nud", -ND6_IFF_PERFORMNUD, setnd6flags), 484 DEF_CMD("auto_linklocal",ND6_IFF_AUTO_LINKLOCAL,setnd6flags), 485 DEF_CMD("-auto_linklocal",-ND6_IFF_AUTO_LINKLOCAL,setnd6flags), 486 DEF_CMD("no_prefer_iface",ND6_IFF_NO_PREFER_IFACE,setnd6flags), 487 DEF_CMD("-no_prefer_iface",-ND6_IFF_NO_PREFER_IFACE,setnd6flags), |
488 DEF_CMD("no_dad", ND6_IFF_NO_DAD, setnd6flags), 489 DEF_CMD("-no_dad", -ND6_IFF_NO_DAD, setnd6flags), 490 DEF_CMD("ignoreloop", ND6_IFF_IGNORELOOP, setnd6flags), 491 DEF_CMD("-ignoreloop", -ND6_IFF_IGNORELOOP, setnd6flags), |
|
488 DEF_CMD_ARG("pltime", setip6pltime), 489 DEF_CMD_ARG("vltime", setip6vltime), 490 DEF_CMD("eui64", 0, setip6eui64), 491}; 492 493static struct afswtch af_inet6 = { 494 .af_name = "inet6", 495 .af_af = AF_INET6, --- 41 unchanged lines hidden --- | 492 DEF_CMD_ARG("pltime", setip6pltime), 493 DEF_CMD_ARG("vltime", setip6vltime), 494 DEF_CMD("eui64", 0, setip6eui64), 495}; 496 497static struct afswtch af_inet6 = { 498 .af_name = "inet6", 499 .af_af = AF_INET6, --- 41 unchanged lines hidden --- |