ipv4: Disallow non-namespace aware protocols to register.
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2013 19:42:23 +0000 (14:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2013 19:42:23 +0000 (14:42 -0500)
commit547472b8e1da72ae226430c0c4273e36fc8ca768
tree2300023f8d0fa943725e1b4ea3b2b95c91de4430
parent9d6ddb19905223828485d8c40deaec76e4dea3a5
ipv4: Disallow non-namespace aware protocols to register.

All in-tree ipv4 protocol implementations are now namespace
aware.  Therefore all the run-time checks are superfluous.

Reject registry of any non-namespace aware ipv4 protocol.
Eventually we'll remove prot->netns_ok and this registry
time check as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/ip_input.c
net/ipv4/protocol.c