Home
last modified time | relevance | path

Searched refs:optoff (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/net/netfilter/
Dnf_conntrack_seqadj.c124 unsigned int dir, optoff, optend; in nf_ct_sack_adjust() local
126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust()
135 while (optoff < optend) { in nf_ct_sack_adjust()
137 unsigned char *op = skb->data + optoff; in nf_ct_sack_adjust()
143 optoff++; in nf_ct_sack_adjust()
147 if (optoff + 1 == optend || in nf_ct_sack_adjust()
148 optoff + op[1] > optend || in nf_ct_sack_adjust()
154 nf_ct_sack_block_adjust(skb, tcph, optoff + 2, in nf_ct_sack_adjust()
155 optoff+op[1], in nf_ct_sack_adjust()
157 optoff += op[1]; in nf_ct_sack_adjust()
Dxt_dccp.c42 unsigned int optoff = __dccp_hdr_len(dh); in dccp_find_option() local
53 op = skb_header_pointer(skb, protoff + optoff, optlen, dccp_optbuf); in dccp_find_option()
Dnf_synproxy_core.c185 unsigned int optoff, optend; in synproxy_tstamp_adjust() local
191 optoff = protoff + sizeof(struct tcphdr); in synproxy_tstamp_adjust()
197 while (optoff < optend) { in synproxy_tstamp_adjust()
198 unsigned char *op = skb->data + optoff; in synproxy_tstamp_adjust()
204 optoff++; in synproxy_tstamp_adjust()
207 if (optoff + 1 == optend || in synproxy_tstamp_adjust()
208 optoff + op[1] > optend || in synproxy_tstamp_adjust()
228 optoff += op[1]; in synproxy_tstamp_adjust()
/Linux-v5.4/net/ipv6/
Dexthdrs.c73 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument
87 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
102 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()
724 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff) in ipv6_hop_ra() argument
728 if (nh[optoff + 1] == 2) { in ipv6_hop_ra()
730 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); in ipv6_hop_ra()
734 nh[optoff + 1]); in ipv6_hop_ra()
[all …]