lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56BFAD4F.5080600@cumulusnetworks.com>
Date:	Sat, 13 Feb 2016 23:25:19 +0100
From:	David Ahern <dsa@...ulusnetworks.com>
To:	netdev@...r.kernel.org
Cc:	hannes@...essinduktion.org
Subject: Re: [PATCH] net: ipv6: Make address flushing on ifdown optional

grrr.... changed the subject in send-email editor which dropped it. 
obviously this is for net-next

On 2/13/16 11:23 PM, David Ahern wrote:
> Currently, all ipv6 addresses are flushed when the interface is configured
> down, including global, static addresses:
>
>      $ ip -6 addr add dev eth1 2000:11:1:1::1/64
>      $ ip addr show dev eth1
>      3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
>          link/ether 02:04:11:22:33:01 brd ff:ff:ff:ff:ff:ff
>          inet6 2000:11:1:1::1/64 scope global tentative
>             valid_lft forever preferred_lft forever
>      $ ip link set dev eth1 up
>      $ ip link set dev eth1 down
>      $ ip addr show dev eth1
>      3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
>          link/ether 02:04:11:22:33:01 brd ff:ff:ff:ff:ff:ff
>
> Add a new sysctl to make this behavior optional. The new setting defaults to
> flush all addresses to maintain backwards compatibility. When the set global
> addresses with no expire times are not flushed on an admin down:
>
>      $ echo 1 > /proc/sys/net/ipv6/conf/eth1/keep_addr_on_down
>      $ ip -6 addr add dev eth1 2000:11:1:1::1/64
>      $ ip addr show dev eth1
>      3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
>          link/ether 02:04:11:22:33:01 brd ff:ff:ff:ff:ff:ff
>          inet6 2000:11:1:1::1/64 scope global tentative
>             valid_lft forever preferred_lft forever
>      $ ip link set dev eth1 up
>      $ ip link set dev eth1 down
>      $ ip addr show dev eth1
>      3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
>          link/ether 02:04:11:22:33:01 brd ff:ff:ff:ff:ff:ff
>          inet6 2000:11:1:1::1/64 scope global
>             valid_lft forever preferred_lft forever
>          inet6 fe80::4:11ff:fe22:3301/64 scope link
>             valid_lft forever preferred_lft forever
>
> Signed-off-by: David Ahern <dsa@...ulusnetworks.com>
> ---

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ