Home
last modified time | relevance | path

Searched refs:ip_hdrlen (Results 1 – 25 of 26) sorted by relevance

12

/linux/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c24 unsigned int outside_hdrlen = ip_hdrlen(skb); in extract_icmp4_fields()
104 hp = skb_header_pointer(skb, ip_hdrlen(skb), in nf_sk_lookup_slow_v4()
117 ip_hdrlen(skb) + __tcp_hdrlen((struct tcphdr *)hp) : in nf_sk_lookup_slow_v4()
118 ip_hdrlen(skb) + sizeof(*hp); in nf_sk_lookup_slow_v4()
H A Dnf_reject_ipv4.c93 thoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_skb_is_icmp_unreach()
138 dataoff = ip_hdrlen(oldskb); in nf_reject_skb_v4_unreach()
143 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nf_reject_skb_v4_unreach()
187 oth = skb_header_pointer(oldskb, ip_hdrlen(oldskb), in nf_reject_ip_tcphdr_get()
197 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get()
243 oldskb->len - ip_hdrlen(oldskb) - in nf_reject_ip_tcphdr_put()
351 int dataoff = ip_hdrlen(skb_in); in nf_send_unreach()
H A Dipt_ECN.c51 tcph = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(_tcph), &_tcph); in set_ect_tcp()
61 if (skb_ensure_writable(skb, ip_hdrlen(skb) + sizeof(*tcph))) in set_ect_tcp()
63 tcph = (void *)ip_hdr(skb) + ip_hdrlen(skb); in set_ect_tcp()
H A Dnf_nat_h323.c49 th = skb_header_pointer(skb, ip_hdrlen(skb), in set_addr()
53 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
64 *data = skb->data + ip_hdrlen(skb) + sizeof(struct udphdr); in set_addr()
/linux/net/ipv4/
H A Dah4.c126 int ihl = ip_hdrlen(skb); in ah_output_done()
176 ihl = ip_hdrlen(skb); in ah_output()
276 int ihl = ip_hdrlen(skb); in ah_input_done()
368 ihl = ip_hdrlen(skb); in ah_input()
H A Digmp.c1624 if (iph->version != 4 || ip_hdrlen(skb) < sizeof(*iph)) in ip_mc_check_iphdr()
1627 offset += ip_hdrlen(skb) - sizeof(*iph); in ip_mc_check_iphdr()
H A Dipmr.c1060 const int ihl = ip_hdrlen(pkt); in ipmr_cache_report()
/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c198 !pskb_may_pull(skb, skb_network_offset(skb) + ip_hdrlen(skb))) in iwl_mei_rx_filter_ipv4()
201 iphdrlen = ip_hdrlen(skb); in iwl_mei_rx_filter_ipv4()
/linux/net/sched/
H A Dem_ipset.c67 acpar.thoff = ip_hdrlen(skb); in em_ipset_match()
/linux/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()
/linux/net/netfilter/
H A Dxt_TCPOPTSTRIP.c91 return tcpoptstrip_mangle_packet(skb, par, ip_hdrlen(skb)); in tcpoptstrip_tg4()
H A Dnft_osf.c41 tcp = skb_header_pointer(skb, ip_hdrlen(skb), in nft_osf_eval()
H A Dnf_conntrack_ovs.c40 protoff = ip_hdrlen(skb); in nf_ct_helper()
H A Dxt_TPROXY.c43 hp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(_hdr), &_hdr); in tproxy_tg4()
H A Dnft_tproxy.c39 hp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(_hdr), &_hdr); in nft_tproxy_eval_v4()
H A Dnf_nat_proto.c446 ip_hdrlen(skb); in nf_nat_ipv4_csum_recalc()
508 unsigned int hdrlen = ip_hdrlen(skb); in nf_nat_icmp_reply_translation()
H A Dnf_conntrack_proto.c166 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_confirm()
H A Dnf_conntrack_core.c2224 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_confirm_cthelper()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/
H A Dtx-gen2.c168 unsigned int snap_ip_tcp_hdrlen, ip_hdrlen, total_len, hdr_room; in iwl_txq_gen2_build_amsdu() local
180 ip_hdrlen = skb_network_header_len(skb); in iwl_txq_gen2_build_amsdu()
181 snap_ip_tcp_hdrlen = 8 + ip_hdrlen + tcp_hdrlen(skb); in iwl_txq_gen2_build_amsdu()
H A Dtx.c1920 unsigned int snap_ip_tcp_hdrlen, ip_hdrlen, total_len, hdr_room; in iwl_fill_data_tbs_amsdu() local
1939 ip_hdrlen = skb_network_header_len(skb); in iwl_fill_data_tbs_amsdu()
1940 snap_ip_tcp_hdrlen = 8 + ip_hdrlen + tcp_hdrlen(skb); in iwl_fill_data_tbs_amsdu()
/linux/net/openvswitch/
H A Dflow.c200 ip_len = ip_hdrlen(skb); in check_iphdr()
/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c335 hdr_len = ethhdr + ip_hdrlen(skb) + tcp_hdrlen(skb); in xgene_enet_work_msg()
367 l3hlen = ip_hdrlen(skb) >> 2; in xgene_enet_work_msg()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c656 int hlen = ip_hdrlen(skb); in fm10k_gre_is_nvgre()
/linux/drivers/net/ethernet/
H A Djme.c951 skb->len < (ETH_HLEN + ip_hdrlen(skb) + sizeof(struct udphdr))) { in jme_udpsum()
955 skb_set_transport_header(skb, ETH_HLEN + ip_hdrlen(skb)); in jme_udpsum()
/linux/net/bridge/
H A Dbr_multicast.c5146 t_len = ntohs(ip_hdr(skb)->tot_len) - ip_hdrlen(skb); in br_mcast_stats_add()

12