Lines Matching refs:optoff
74 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument
88 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
103 icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); in ip6_tlvopt_unknown()
208 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff) in ipv6_dest_hao() argument
222 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff); in ipv6_dest_hao()
247 optoff); in ipv6_dest_hao()
920 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff) in ipv6_hop_ra() argument
924 if (nh[optoff + 1] == 2) { in ipv6_hop_ra()
926 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); in ipv6_hop_ra()
930 nh[optoff + 1]); in ipv6_hop_ra()
937 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff) in ipv6_hop_jumbo() argument
944 if (nh[optoff + 1] != 4 || (optoff & 3) != 2) { in ipv6_hop_jumbo()
946 nh[optoff+1]); in ipv6_hop_jumbo()
951 pkt_len = ntohl(*(__be32 *)(nh + optoff + 2)); in ipv6_hop_jumbo()
954 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff+2); in ipv6_hop_jumbo()
959 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff); in ipv6_hop_jumbo()
981 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff) in ipv6_hop_calipso() argument
985 if (nh[optoff + 1] < 8) in ipv6_hop_calipso()
988 if (nh[optoff + 6] * 4 + 8 > nh[optoff + 1]) in ipv6_hop_calipso()
991 if (!calipso_validate(skb, nh + optoff)) in ipv6_hop_calipso()