Skip to contentSkip to conversation

ipv6: constify the skb pointer of ipv6_find_tlv().

RFC PATCH In review Huw Davies 1 participant 1 message Feb 17, 2016

Subsystems (4)
lore
Share & tools
lore

Huw Davies

author
#0 lore raw

RFC PATCH v3 14/19 ipv6: constify the skb pointer of ipv6_find_tlv().

---
 include/net/ipv6.h      | 2 +-
 net/ipv6/exthdrs_core.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/net/ipv6.h +1 -1
index 3098e0d..df89320 100644
@@ -935,7 +935,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,
net/ipv6/exthdrs_core.c +1 -1
index 5c5d23e..b522479 100644
@@ -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);
Signature · 1 line
2.7.0