summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-07-05 14:40:10 -0700
committerDavid S. Miller <davem@davemloft.net>2005-07-05 14:40:10 -0700
commit30e224d76f34e041c30df66a4dcbeeb53556ea3f (patch)
tree0a2d6bb1e699a1df9b9350f5c5a235d825673248 /net/ipv4/ip_output.c
parenta31488ca4b8476a8dd301b21388631df52d05c5a (diff)
downloadlinux-stable-30e224d76f34e041c30df66a4dcbeeb53556ea3f.tar.gz
linux-stable-30e224d76f34e041c30df66a4dcbeeb53556ea3f.tar.bz2
linux-stable-30e224d76f34e041c30df66a4dcbeeb53556ea3f.zip
[IPV4]: Fix crash in ip_rcv while booting related to netconsole
Makes IPv4 ip_rcv registration happen last in af_inet. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 1bfa49eda96f..9de83e6e0f1d 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1328,23 +1328,8 @@ void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *ar
ip_rt_put(rt);
}
-/*
- * IP protocol layer initialiser
- */
-
-static struct packet_type ip_packet_type = {
- .type = __constant_htons(ETH_P_IP),
- .func = ip_rcv,
-};
-
-/*
- * IP registers the packet type and then calls the subprotocol initialisers
- */
-
void __init ip_init(void)
{
- dev_add_pack(&ip_packet_type);
-
ip_rt_init();
inet_initpeers();