inet: constify ip headers and in6_addr
[deliverable/linux.git] / net / ipv4 / ip_input.c
index d7b2b0987a3b723739c17ef93df99992d5afddb0..c8f48efc5fd3d778831458b1b72ccf07ca794594 100644 (file)
@@ -268,7 +268,7 @@ int ip_local_deliver(struct sk_buff *skb)
 static inline int ip_rcv_options(struct sk_buff *skb)
 {
        struct ip_options *opt;
-       struct iphdr *iph;
+       const struct iphdr *iph;
        struct net_device *dev = skb->dev;
 
        /* It looks as overkill, because not all
@@ -374,7 +374,7 @@ drop:
  */
 int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev)
 {
-       struct iphdr *iph;
+       const struct iphdr *iph;
        u32 len;
 
        /* When the interface is in promisc. mode, drop all the crap
This page took 0.025625 seconds and 5 git commands to generate.