diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-04-21 01:47:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:10 -0400 |
commit | eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0 (patch) | |
tree | 4a38ab4dbd9d61fdf5a5ea6ed61463e0b9e33ba7 /net/sctp/input.c | |
parent | e023dd643798c4f06c16466af90b4d250e4b8bd7 (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/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 2b0863aba3fb..595fe32b3d41 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -154,7 +154,7 @@ int sctp_rcv(struct sk_buff *skb) | |||
154 | if (skb->len < sizeof(struct sctp_chunkhdr)) | 154 | if (skb->len < sizeof(struct sctp_chunkhdr)) |
155 | goto discard_it; | 155 | goto discard_it; |
156 | 156 | ||
157 | family = ipver2af(skb->nh.iph->version); | 157 | family = ipver2af(ip_hdr(skb)->version); |
158 | af = sctp_get_af_specific(family); | 158 | af = sctp_get_af_specific(family); |
159 | if (unlikely(!af)) | 159 | if (unlikely(!af)) |
160 | goto discard_it; | 160 | goto discard_it; |