inet: constify ip headers and in6_addr
[deliverable/linux.git] / net / sctp / input.c
index 3a8eb79eb78b92183824059bac7e21f7ac5e930b..741ed1648838c49d708b126a4d1189236d42a668 100644 (file)
@@ -565,7 +565,7 @@ void sctp_err_finish(struct sock *sk, struct sctp_association *asoc)
  */
 void sctp_v4_err(struct sk_buff *skb, __u32 info)
 {
-       struct iphdr *iph = (struct iphdr *)skb->data;
+       const struct iphdr *iph = (const struct iphdr *)skb->data;
        const int ihlen = iph->ihl * 4;
        const int type = icmp_hdr(skb)->type;
        const int code = icmp_hdr(skb)->code;
This page took 0.025093 seconds and 5 git commands to generate.