]> git.hungrycats.org Git - linux/commit
[IPV6]: Stricter checks on link-locals in bind and sendmsg
authorVille Nuorvala <vnuorval@tcs.hut.fi>
Mon, 19 Jan 2004 13:37:58 +0000 (05:37 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Mon, 19 Jan 2004 13:37:58 +0000 (05:37 -0800)
commite05df4f521b374ec8bfa093f302caf3ce0704265
tree580c8dbf3964cbeb1bdf1b72ad31e622c492b915
parent4500e91754d3232b083136354195f9c4eb905265
[IPV6]: Stricter checks on link-locals in bind and sendmsg

When binding to a link-local address, inet6_bind() and raw6_bind() only
check that an interface is specified and that the address exists, but
they don't check if it actually exists on the specified interface.

Similarly, in datagram_sent_ctl() we don't check for the possibility of a
link-local address when we receive the source address from userspace.
net/ipv6/af_inet6.c
net/ipv6/datagram.c
net/ipv6/raw.c