summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/af_inet6.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2013-01-09 18:18:08 +0000
committerume <ume@FreeBSD.org>2013-01-09 18:18:08 +0000
commite33acd92c323d70e5d6df57f002fc99962711614 (patch)
treed47e3ff0e4eea1ed47efa711fb58f1061db36182 /sbin/ifconfig/af_inet6.c
parentdc876f51b7413aaa22e802a6b7fd911229c8f410 (diff)
downloadFreeBSD-src-e33acd92c323d70e5d6df57f002fc99962711614.zip
FreeBSD-src-e33acd92c323d70e5d6df57f002fc99962711614.tar.gz
Add no_prefer_iface option.
It stops treating the address on the interface as special by source address selection rule even when the interface is outgoing interface. This is desired in some situation. Requested by: hrs Reviewed by: IHANet folks including hrs MFC after: 1 week
Diffstat (limited to 'sbin/ifconfig/af_inet6.c')
-rw-r--r--sbin/ifconfig/af_inet6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/af_inet6.c b/sbin/ifconfig/af_inet6.c
index 5911a94..b4db0f1 100644
--- a/sbin/ifconfig/af_inet6.c
+++ b/sbin/ifconfig/af_inet6.c
@@ -473,6 +473,8 @@ static struct cmd inet6_cmds[] = {
DEF_CMD("-nud", -ND6_IFF_PERFORMNUD, setnd6flags),
DEF_CMD("auto_linklocal",ND6_IFF_AUTO_LINKLOCAL,setnd6flags),
DEF_CMD("-auto_linklocal",-ND6_IFF_AUTO_LINKLOCAL,setnd6flags),
+ DEF_CMD("no_prefer_iface",ND6_IFF_NO_PREFER_IFACE,setnd6flags),
+ DEF_CMD("-no_prefer_iface",-ND6_IFF_NO_PREFER_IFACE,setnd6flags),
DEF_CMD_ARG("pltime", setip6pltime),
DEF_CMD_ARG("vltime", setip6vltime),
DEF_CMD("eui64", 0, setip6eui64),
OpenPOWER on IntegriCloud