inet: constify ip headers and in6_addr
[deliverable/linux.git] / net / ipv4 / udp.c
index a15c8fb653af2e53952be97d1ce87d3f697fc544..bc0dab2593e0577a3c43cee8ca4a13d3a0e33bb6 100644 (file)
@@ -578,7 +578,7 @@ found:
 void __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable)
 {
        struct inet_sock *inet;
-       struct iphdr *iph = (struct iphdr *)skb->data;
+       const struct iphdr *iph = (const struct iphdr *)skb->data;
        struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2));
        const int type = icmp_hdr(skb)->type;
        const int code = icmp_hdr(skb)->code;
This page took 0.026038 seconds and 5 git commands to generate.