Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/Linux-v6.1/net/ipv4/netfilter/
Dnf_reject_ipv4.c23 iph = ip_hdr(skb); in nf_reject_iphdr_validate()
91 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach()
100 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nf_reject_skb_v4_unreach()
104 proto = ip_hdr(oldskb)->protocol; in nf_reject_skb_v4_unreach()
145 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
148 if (ip_hdr(oldskb)->protocol != IPPROTO_TCP) in nf_reject_ip_tcphdr_get()
172 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
196 struct iphdr *niph = ip_hdr(nskb); in nf_reject_ip_tcphdr_put()
229 fl.u.ip4.daddr = ip_hdr(skb_in)->saddr; in nf_reject_fill_skb_dst()
276 niph = ip_hdr(nskb); in nf_send_reset()
[all …]
Dipt_ECN.c28 struct iphdr *iph = ip_hdr(skb); in set_ect_ip()
34 iph = ip_hdr(skb); in set_ect_ip()
63 tcph = (void *)ip_hdr(skb) + ip_hdrlen(skb); in set_ect_tcp()
86 ip_hdr(skb)->protocol == IPPROTO_TCP) in ecn_tg()
Dnf_dup_ipv4.c26 const struct iphdr *iph = ip_hdr(skb); in nf_dup_ipv4_route()
80 iph = ip_hdr(skb); in nf_dup_ipv4()
Diptable_mangle.c48 iph = ip_hdr(skb); in ipt_mangle_out()
56 iph = ip_hdr(skb); in ipt_mangle_out()
/Linux-v6.1/net/ipv4/
Dip_input.c151 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain()
165 if (ip_is_fragment(ip_hdr(skb))) { in ip_call_ra_chain()
233 ip_protocol_deliver_rcu(net, skb, ip_hdr(skb)->protocol); in ip_local_deliver_finish()
249 if (ip_is_fragment(ip_hdr(skb))) { in ip_local_deliver()
277 iph = ip_hdr(skb); in ip_rcv_options()
311 return hint && !skb_dst(skb) && ip_hdr(hint)->daddr == iph->daddr && in ip_can_use_hint()
312 ip_hdr(hint)->tos == iph->tos; in ip_can_use_hint()
321 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish_core()
344 iph = ip_hdr(skb); in ip_rcv_finish_core()
354 iph = ip_hdr(skb); in ip_rcv_finish_core()
[all …]
Dxfrm4_input.c31 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish()
50 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish()
145 iph = ip_hdr(skb); in xfrm4_udp_encap_rcv()
170 return xfrm4_rcv_spi(skb, ip_hdr(skb)->protocol, 0); in xfrm4_rcv()
Dip_forward.c48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
121 if (ip_hdr(skb)->ttl <= 1) in ip_forward()
147 iph = ip_hdr(skb); in ip_forward()
Dsyncookies.c178 const struct iphdr *iph = ip_hdr(skb); in cookie_v4_init_sequence()
350 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
364 ip_hdr(skb)->daddr, in cookie_v4_check()
365 ip_hdr(skb)->saddr); in cookie_v4_check()
387 sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); in cookie_v4_check()
388 sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); in cookie_v4_check()
Dudp_offload.c202 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
226 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
230 (ip_hdr(seg)->daddr == ip_hdr(seg->next)->daddr) && in __udpv4_gso_segment_list_csum()
231 (ip_hdr(seg)->saddr == ip_hdr(seg->next)->saddr)) in __udpv4_gso_segment_list_csum()
236 iph2 = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
403 iph = ip_hdr(skb); in udp4_ufo_fragment()
700 const struct iphdr *iph = ip_hdr(skb); in udp4_gro_complete()
Dtcp_ipv4.c98 return secure_tcp_seq(ip_hdr(skb)->daddr, in tcp_v4_init_seq()
99 ip_hdr(skb)->saddr, in tcp_v4_init_seq()
106 return secure_tcp_ts_off(net, ip_hdr(skb)->daddr, ip_hdr(skb)->saddr); in tcp_v4_init_ts_off()
737 addr = (union tcp_md5_addr *)&ip_hdr(skb)->saddr; in tcp_v4_send_reset()
753 NULL, 0, ip_hdr(skb)->saddr, in tcp_v4_send_reset()
754 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
764 addr = (union tcp_md5_addr *)&ip_hdr(skb)->saddr; in tcp_v4_send_reset()
786 key, ip_hdr(skb)->saddr, in tcp_v4_send_reset()
787 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
801 arg.csum = csum_tcpudp_nofold(ip_hdr(skb)->daddr, in tcp_v4_send_reset()
[all …]
Dxfrm4_tunnel.c22 return ip_hdr(skb)->protocol; in ipip_xfrm_rcv()
57 return xfrm4_rcv_spi(skb, IPPROTO_IPIP, ip_hdr(skb)->saddr); in xfrm_tunnel_rcv()
Desp4_offload.c55 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
95 struct iphdr *iph = ip_hdr(skb); in esp4_gso_encap()
322 ip_hdr(skb)->tot_len = htons(skb->len); in esp_xmit()
323 ip_send_check(ip_hdr(skb)); in esp_xmit()
/Linux-v6.1/net/netfilter/
Dxt_DSCP.c33 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg()
39 ipv4_change_dsfield(ip_hdr(skb), XT_DSCP_ECN_MASK, in dscp_tg()
75 struct iphdr *iph = ip_hdr(skb); in tos_tg()
84 iph = ip_hdr(skb); in tos_tg()
Dxt_dscp.c28 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt()
57 return ((ip_hdr(skb)->tos & info->tos_mask) == in tos_mt()
Dutils.c13 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum()
47 const struct iphdr *iph = ip_hdr(skb); in nf_ip_checksum_partial()
188 const struct iphdr *iph = ip_hdr(skb); in nf_ip_reroute()
/Linux-v6.1/include/net/
Dinet_ecn.h178 return IP_ECN_set_ce(ip_hdr(skb)); in INET_ECN_set_ce()
197 return ipv4_get_dsfield(ip_hdr(skb)); in skb_get_dsfield()
214 return IP_ECN_set_ect1(ip_hdr(skb)); in INET_ECN_set_ect1()
293 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate()
312 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate()
/Linux-v6.1/drivers/staging/octeon/
Dethernet-tx.c366 (ip_hdr(skb)->version == 4) && in cvm_oct_xmit()
367 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
368 ((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit()
369 (ip_hdr(skb)->frag_off == htons(1 << 14))) && in cvm_oct_xmit()
370 ((ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit()
371 (ip_hdr(skb)->protocol == IPPROTO_UDP))) { in cvm_oct_xmit()
586 (ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit_pow()
587 (ip_hdr(skb)->protocol == IPPROTO_UDP); in cvm_oct_xmit_pow()
598 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
599 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
/Linux-v6.1/drivers/staging/rtl8712/
Dxmit_linux.c68 struct iphdr ip_hdr; in r8712_set_qos() local
76 _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in r8712_set_qos()
78 user_priority = ip_hdr.tos >> 5; in r8712_set_qos()
/Linux-v6.1/include/linux/
Dip.h19 static inline struct iphdr *ip_hdr(const struct sk_buff *skb) in ip_hdr() function
36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/mei/
Dnet.c160 ip_hdr(skb)->protocol != IPPROTO_UDP) in iwl_mei_rx_filter_tcp_udp()
164 ip_hdr(skb)->protocol != IPPROTO_TCP) in iwl_mei_rx_filter_tcp_udp()
202 iphdr = ip_hdr(skb); in iwl_mei_rx_filter_ipv4()
208 switch (ip_hdr(skb)->protocol) { in iwl_mei_rx_filter_ipv4()
376 ip_hdr(origskb)->protocol != IPPROTO_UDP || in iwl_mei_tx_copy_to_csme()
/Linux-v6.1/include/net/netfilter/
Dnf_tables_ipv4.h12 ip = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4()
61 iph = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4_ingress()
/Linux-v6.1/tools/testing/selftests/bpf/
Dxskxceiver.c236 static void gen_ip_hdr(struct ifobject *ifobject, struct iphdr *ip_hdr) in gen_ip_hdr() argument
238 ip_hdr->version = IP_PKT_VER; in gen_ip_hdr()
239 ip_hdr->ihl = 0x5; in gen_ip_hdr()
240 ip_hdr->tos = IP_PKT_TOS; in gen_ip_hdr()
241 ip_hdr->tot_len = htons(IP_PKT_SIZE); in gen_ip_hdr()
242 ip_hdr->id = 0; in gen_ip_hdr()
243 ip_hdr->frag_off = 0; in gen_ip_hdr()
244 ip_hdr->ttl = IPDEFTTL; in gen_ip_hdr()
245 ip_hdr->protocol = IPPROTO_UDP; in gen_ip_hdr()
246 ip_hdr->saddr = ifobject->src_ip; in gen_ip_hdr()
[all …]
/Linux-v6.1/net/xfrm/
Dxfrm_inout.h11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header()
57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header()
/Linux-v6.1/drivers/infiniband/sw/rxe/
Drxe_recv.c109 if ((ip_hdr(skb)->daddr != saddr->s_addr) || in check_addr()
110 (ip_hdr(skb)->saddr != daddr->s_addr)) in check_addr()
192 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_rcv_mcast_pkt()
287 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_chk_dgid()
/Linux-v6.1/net/batman-adv/
Dmain.c361 struct iphdr ip_hdr_tmp, *ip_hdr; in batadv_skb_set_priority() local
385 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
386 sizeof(*ip_hdr), &ip_hdr_tmp); in batadv_skb_set_priority()
387 if (!ip_hdr) in batadv_skb_set_priority()
389 prio = (ipv4_get_dsfield(ip_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()

12345678910>>...13