Home
last modified time | relevance | path

Searched refs:skb_network_offset (Results 1 – 25 of 134) sorted by relevance

123456

/OK3568_Linux_fs/kernel/net/netfilter/
H A Dxt_AUDIT.c36 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4()
53 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6()
58 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6()
H A Dnft_log.c34 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_iph), &_iph); in audit_ip4()
51 ih = skb_header_pointer(skb, skb_network_offset(skb), sizeof(_ip6h), &_ip6h); in audit_ip6()
56 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6()
H A Dnf_tables_trace.c113 int off = skb_network_offset(skb); in nf_trace_fill_pkt_info()
117 len = min_t(unsigned int, nh_end - skb_network_offset(skb), in nf_trace_fill_pkt_info()
H A Dxt_HMARK.c174 ip6 = (struct ipv6hdr *) (skb->data + skb_network_offset(skb)); in hmark_pkt_set_htuple_ipv6()
254 int nhoff = skb_network_offset(skb); in hmark_pkt_set_htuple_ipv4()
/OK3568_Linux_fs/kernel/net/netfilter/ipset/
H A Dip_set_getport.c102 unsigned int protooff = skb_network_offset(skb) + ip_hdrlen(skb); in ip_set_get_ip4_port()
141 skb_network_offset(skb) + in ip_set_get_ip6_port()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dmcast_snoop.c18 unsigned int offset = skb_network_offset(skb) + sizeof(*ip6h); in ipv6_mc_check_ip6hdr()
50 offset = skb_network_offset(skb) + sizeof(*ip6h); in ipv6_mc_check_exthdrs()
H A Dip6_icmp.c72 skb_network_offset(skb_in) + sizeof(struct ipv6hdr)))) in icmpv6_ndo_send()
/OK3568_Linux_fs/kernel/net/bridge/
H A Dbr_arp_nd_proxy.c83 __skb_pull(skb, skb_network_offset(skb)); in br_arp_send()
236 m = skb_header_pointer(skb, skb_network_offset(skb) + in br_is_nd_neigh_msg()
283 ns_olen = request->len - (skb_network_offset(request) + in br_nd_send()
363 __skb_pull(reply, skb_network_offset(reply)); in br_nd_send()
/OK3568_Linux_fs/kernel/include/net/netfilter/
H A Dnf_queue.h89 iph = skb_header_pointer(skb, skb_network_offset(skb), in hash_bridge()
95 ip6h = skb_header_pointer(skb, skb_network_offset(skb), in hash_bridge()
H A Dnf_tables_ipv4.h26 iph = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*iph), in __nft_set_pktinfo_ipv4_validate()
H A Dnf_tables_ipv6.h39 ip6h = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*ip6h), in __nft_set_pktinfo_ipv6_validate()
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dnft_fib_ipv4.c31 int noff = skb_network_offset(pkt->skb); in nft_fib4_eval_type()
61 int noff = skb_network_offset(pkt->skb); in nft_fib4_eval()
/OK3568_Linux_fs/kernel/net/openvswitch/
H A Dactions.c202 if (!pskb_may_pull(skb, skb_network_offset(skb) + MPLS_HLEN)) in set_mpls()
483 err = skb_ensure_writable(skb, skb_network_offset(skb) + in set_ipv4()
534 err = skb_ensure_writable(skb, skb_network_offset(skb) + in set_ipv6()
615 if (!pskb_may_pull(skb, skb_network_offset(skb) + NSH_BASE_HDR_LEN)) in set_nsh()
622 err = skb_ensure_writable(skb, skb_network_offset(skb) + in set_nsh()
827 unsigned int hlen = skb_network_offset(skb); in prepare_frag()
856 orig_network_offset = skb_network_offset(skb); in ovs_fragment()
860 if (skb_network_offset(skb) > MAX_L2_LEN) { in ovs_fragment()
1237 err = skb_ensure_writable(skb, skb_network_offset(skb) + in execute_dec_ttl()
1252 err = skb_ensure_writable(skb, skb_network_offset(skb) + in execute_dec_ttl()
H A Dflow.c185 return pskb_may_pull(skb, skb_network_offset(skb) + in arphdr_ok()
191 unsigned int nh_ofs = skb_network_offset(skb); in check_iphdr()
246 unsigned int nh_ofs = skb_network_offset(skb); in parse_ipv6hdr()
482 unsigned int nh_ofs = skb_network_offset(skb); in parse_nsh()
/OK3568_Linux_fs/kernel/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c208 nhoff = skb_network_offset(skb); in nf_ct_br_ip_check()
227 nhoff = skb_network_offset(skb); in nf_ct_br_ipv6_check()
380 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_ct_bridge_confirm()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dtls_rxtx.c155 skb_set_network_header(nskb, skb_network_offset(skb)); in mlx5e_tls_complete_sync_skb()
161 iph->tot_len = htons(nskb->len - skb_network_offset(nskb)); in mlx5e_tls_complete_sync_skb()
167 mss = nskb->dev->mtu - (headln - skb_network_offset(nskb)); in mlx5e_tls_complete_sync_skb()
/OK3568_Linux_fs/kernel/net/sched/
H A Dact_csum.c136 int ntkoff = skb_network_offset(skb); in tcf_csum_skb_nextlayer()
377 skb_network_offset(skb) + ihl); in tcf_csum_sctp()
389 ntkoff = skb_network_offset(skb); in tcf_csum_ipv4()
492 ntkoff = skb_network_offset(skb); in tcf_csum_ipv6()
H A Dact_ctinfo.c98 wlen = skb_network_offset(skb); in tcf_ctinfo_act()
120 if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb), in tcf_ctinfo_act()
H A Dem_ipset.c86 network_offset = skb_network_offset(skb); in em_ipset_match()
/OK3568_Linux_fs/kernel/net/ipv6/netfilter/
H A Dnft_fib_ipv6.c127 int noff = skb_network_offset(pkt->skb); in nft_fib6_eval_type()
156 int noff = skb_network_offset(pkt->skb); in nft_fib6_eval()
/OK3568_Linux_fs/kernel/net/ax25/
H A Dax25_out.c160 skb_network_offset(skb)); in ax25_output()
174 skb_network_offset(skb)); in ax25_output()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dxfrm4_tunnel.c18 skb_push(skb, -skb_network_offset(skb)); in ipip_output()
H A Desp4_offload.c99 skb_push(skb, -skb_network_offset(skb)); in esp4_gso_encap()
304 skb_push(skb, -skb_network_offset(skb)); in esp_xmit()
H A Dip_fragment.c301 end = offset + skb->len - skb_network_offset(skb) - ihl; in ip_frag_queue()
331 if (!pskb_pull(skb, skb_network_offset(skb) + ihl)) in ip_frag_queue()
513 netoff = skb_network_offset(skb); in ip_check_defrag()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c526 htons(ext->lso_sb - skb_network_offset(skb)); in otx2_sqe_add_ext()
531 htons(ext->lso_sb - skb_network_offset(skb)); in otx2_sqe_add_ext()
544 iplen = htons(ext->lso_sb - skb_network_offset(skb)); in otx2_sqe_add_ext()
600 sqe_hdr->ol3ptr = skb_network_offset(skb); in otx2_sqe_add_hdr()

123456