[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[deliverable/linux.git] / net / sctp / input.c
index 2b0863aba3fb3f3b5c4050196bccbf79908c232b..595fe32b3d41ef238664b757449aeddd5b7fbb7c 100644 (file)
@@ -154,7 +154,7 @@ int sctp_rcv(struct sk_buff *skb)
        if (skb->len < sizeof(struct sctp_chunkhdr))
                goto discard_it;
 
-       family = ipver2af(skb->nh.iph->version);
+       family = ipver2af(ip_hdr(skb)->version);
        af = sctp_get_af_specific(family);
        if (unlikely(!af))
                goto discard_it;
This page took 0.037622 seconds and 5 git commands to generate.