summaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-10 23:04:55 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 07:24:50 +0200
commit31c7711b509d470ab1e175e7bb98ea66a82aa916 (patch)
tree0d6465c947d163bf7bf0803624533e6af964ef50 /net/sctp/input.c
parent[SK_BUFF]: Use skb_reset_network_header where the return of __pskb_pull was b... (diff)
downloadlinux-31c7711b509d470ab1e175e7bb98ea66a82aa916.tar.xz
linux-31c7711b509d470ab1e175e7bb98ea66a82aa916.zip
[SK_BUFF]: Some more simple skb_reset_network_header conversions
This time of the type: skb->nh.iph = (struct iphdr *)skb->data; That is completely equivalent to: skb->nh.raw = skb->data; Wonder why people love casts... :-) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 71db66873695..2b0863aba3fb 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -528,7 +528,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
/* Fix up skb to look at the embedded net header. */
saveip = skb->nh.raw;
savesctp = skb->h.raw;
- skb->nh.iph = iph;
+ skb_reset_network_header(skb);
skb->h.raw = (char *)sh;
sk = sctp_err_lookup(AF_INET, skb, sh, &asoc, &transport);
/* Put back, the original pointers. */