ipv6: constify the skb pointer of ipv6_find_tlv().
authorHuw Davies <huw@codeweavers.com>
Mon, 27 Jun 2016 19:06:15 +0000 (15:06 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 27 Jun 2016 19:06:15 +0000 (15:06 -0400)
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/net/ipv6.h
net/ipv6/exthdrs_core.c

index 4e279a83cdd0b839d400312cbd4217ccb30b04fc..24a5ebecaf1fae12fefb9fef35b380f056fc229c 100644 (file)
@@ -945,7 +945,7 @@ enum {
 int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, int target,
                  unsigned short *fragoff, int *fragflg);
 
-int ipv6_find_tlv(struct sk_buff *skb, int offset, int type);
+int ipv6_find_tlv(const struct sk_buff *skb, int offset, int type);
 
 struct in6_addr *fl6_update_dst(struct flowi6 *fl6,
                                const struct ipv6_txoptions *opt,
index 9508a20fbf61432f561202edbe40b59e63c3489e..305e2ed730bf42438190ad2fd7ae9ac9b4eed98f 100644 (file)
@@ -112,7 +112,7 @@ int ipv6_skip_exthdr(const struct sk_buff *skb, int start, u8 *nexthdrp,
 }
 EXPORT_SYMBOL(ipv6_skip_exthdr);
 
-int ipv6_find_tlv(struct sk_buff *skb, int offset, int type)
+int ipv6_find_tlv(const struct sk_buff *skb, int offset, int type)
 {
        const unsigned char *nh = skb_network_header(skb);
        int packet_len = skb_tail_pointer(skb) - skb_network_header(skb);