Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4116
b: refs/heads/master
c: 30e224d
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jul 5, 2005
1 parent d41152d commit 1006464
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a31488ca4b8476a8dd301b21388631df52d05c5a
refs/heads/master: 30e224d76f34e041c30df66a4dcbeeb53556ea3f
11 changes: 11 additions & 0 deletions trunk/net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,15 @@ static int __init init_ipv4_mibs(void)
static int ipv4_proc_init(void);
extern void ipfrag_init(void);

/*
* IP protocol layer initialiser
*/

static struct packet_type ip_packet_type = {
.type = __constant_htons(ETH_P_IP),
.func = ip_rcv,
};

static int __init inet_init(void)
{
struct sk_buff *dummy_skb;
Expand Down Expand Up @@ -1102,6 +1111,8 @@ static int __init inet_init(void)

ipfrag_init();

dev_add_pack(&ip_packet_type);

rc = 0;
out:
return rc;
Expand Down
15 changes: 0 additions & 15 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 1006464

Please sign in to comment.