]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Sanitize inet{,6} protocol demux.
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2012 01:56:21 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2012 01:56:21 +0000 (18:56 -0700)
commit6d929157f2f4a01b156e7d86e35ad71d9083f8b9
treeb395670bd6ae832e9f6f87f47a1840baf3a06d0d
parent74b0ca1e8131020d88572083a8cd9c0641077aea
inet: Sanitize inet{,6} protocol demux.

Don't pretend that inet_protos[] and inet6_protos[] are hashes, thay
are just a straight arrays.  Remove all unnecessary hash masking.

Document MAX_INET_PROTOS.

Use RAW_HTABLE_SIZE when appropriate.

Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/protocol.h
net/ipv4/af_inet.c
net/ipv4/icmp.c
net/ipv4/ip_input.c
net/ipv4/protocol.c
net/ipv6/icmp.c
net/ipv6/ip6_input.c
net/ipv6/protocol.c
net/ipv6/raw.c