aboutsummaryrefslogtreecommitdiffstats
path: root/net/econet
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-21 01:47:35 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:10 -0400
commiteddc9ec53be2ecdbf4efe0efd4a83052594f0ac0 (patch)
tree4a38ab4dbd9d61fdf5a5ea6ed61463e0b9e33ba7 /net/econet
parente023dd643798c4f06c16466af90b4d250e4b8bd7 (diff)
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/econet')
-rw-r--r--net/econet/af_econet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index 099543f5401f..dcc2e4b6b2fe 100644
--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -848,7 +848,7 @@ static void aun_send_response(__u32 addr, unsigned long seq, int code, int cb)
848 848
849static void aun_incoming(struct sk_buff *skb, struct aunhdr *ah, size_t len) 849static void aun_incoming(struct sk_buff *skb, struct aunhdr *ah, size_t len)
850{ 850{
851 struct iphdr *ip = skb->nh.iph; 851 struct iphdr *ip = ip_hdr(skb);
852 unsigned char stn = ntohl(ip->saddr) & 0xff; 852 unsigned char stn = ntohl(ip->saddr) & 0xff;
853 struct sock *sk; 853 struct sock *sk;
854 struct sk_buff *newskb; 854 struct sk_buff *newskb;
@@ -946,7 +946,7 @@ static void aun_data_available(struct sock *sk, int slen)
946 data = skb->h.raw + sizeof(struct udphdr); 946 data = skb->h.raw + sizeof(struct udphdr);
947 ah = (struct aunhdr *)data; 947 ah = (struct aunhdr *)data;
948 len = skb->len - sizeof(struct udphdr); 948 len = skb->len - sizeof(struct udphdr);
949 ip = skb->nh.iph; 949 ip = ip_hdr(skb);
950 950
951 switch (ah->code) 951 switch (ah->code)
952 { 952 {