Lines Matching refs:optoff

64 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff,
78 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) {
93 icmpv6_param_prob_reason(skb, ICMPV6_UNK_OPTION, optoff,
103 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff);
104 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff);
105 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff);
106 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff);
108 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff);
230 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff)
245 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff);
274 optoff);
893 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff)
897 if (nh[optoff + 1] == 2) {
899 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra));
903 nh[optoff + 1]);
910 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff)
917 if (optoff & 3)
925 hdr = (struct ioam6_hdr *)(skb_network_header(skb) + optoff);
949 if (skb_ensure_writable(skb, optoff + 2 + hdr->opt_len))
954 + optoff + sizeof(*hdr));
972 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff)
978 if (nh[optoff + 1] != 4 || (optoff & 3) != 2) {
980 nh[optoff+1]);
985 pkt_len = ntohl(*(__be32 *)(nh + optoff + 2));
987 icmpv6_param_prob_reason(skb, ICMPV6_HDR_FIELD, optoff + 2,
992 icmpv6_param_prob_reason(skb, ICMPV6_HDR_FIELD, optoff,
1015 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff)
1019 if (nh[optoff + 1] < 8)
1022 if (nh[optoff + 6] * 4 + 8 > nh[optoff + 1])
1025 if (!calipso_validate(skb, nh + optoff))