Lines Matching refs:optoff
74 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff,
88 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) {
103 icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff);
208 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff)
222 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff);
247 optoff);
913 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff)
917 if (nh[optoff + 1] == 2) {
919 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra));
923 nh[optoff + 1]);
930 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff)
937 if (nh[optoff + 1] != 4 || (optoff & 3) != 2) {
939 nh[optoff+1]);
944 pkt_len = ntohl(*(__be32 *)(nh + optoff + 2));
947 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff+2);
952 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff);
974 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff)
978 if (nh[optoff + 1] < 8)
981 if (nh[optoff + 6] * 4 + 8 > nh[optoff + 1])
984 if (!calipso_validate(skb, nh + optoff))