Skip to contentSkip to conversation

: Find option offset by type.

PATCH In review Masahide NAKAMURA 1 participant 1 message Jul 29, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/20 : Find option offset by type.

This is a helper to search option offset from extension header which can carry TLV option like destination options header. Mobile IPv6 home address option will use it.
Based on MIPL2 kernel patch.

---
 include/net/ipv6.h |    2 ++
 net/ipv6/exthdrs.c |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
include/net/ipv6.h +2 -0
index 4abedb8..2e78433 100644
@@ -504,6 +504,8 @@ extern int			ipv6_skip_exthdr(const stru
 
 extern int 			ipv6_ext_hdr(u8 nexthdr);
 
+extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type);
+
 extern struct ipv6_txoptions *	ipv6_invert_rthdr(struct sock *sk,
 						  struct ipv6_rt_hdr *hdr);
 
net/ipv6/exthdrs.c +43 -0

49 lines not on this page · raw message

Signature · 1 line
1.4.1