]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Do not assign non-valid address on interface.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 25 Jun 2008 07:26:47 +0000 (16:26 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 3 Jul 2008 08:51:55 +0000 (17:51 +0900)
commitbf491a081f53cfc4110783fdb9b15f0cf646be8c
tree3bd32bb16b1e462d9c8be37f3b60ca2ec346d003
parentc69bd5bfe83431b9f45c81b34e929c976e33cbe8
ipv6: Do not assign non-valid address on interface.

Check the type of the address when adding a new one on interface.
- the unspecified address (::) is always disallowed (RFC4291 2.5.2)
- the loopback address is disallowed unless the interface is (one of)
  loopback (RFC4291 2.5.3).
- multicast addresses are disallowed.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/addrconf.c