Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v5.4/net/ipv4/netfilter/
Dnf_reject_ipv4.c21 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
24 if (ip_hdr(oldskb)->protocol != IPPROTO_TCP) in nf_reject_ip_tcphdr_get()
48 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
72 struct iphdr *niph = ip_hdr(nskb); in nf_reject_ip_tcphdr_put()
133 niph = ip_hdr(nskb); in nf_send_reset()
172 struct iphdr *iph = ip_hdr(skb_in); in nf_send_unreach()
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.c51 iph = ip_hdr(skb); in ipt_mangle_out()
59 iph = ip_hdr(skb); in ipt_mangle_out()
/Linux-v5.4/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()
231 ip_protocol_deliver_rcu(net, skb, ip_hdr(skb)->protocol); in ip_local_deliver_finish()
247 if (ip_is_fragment(ip_hdr(skb))) { in ip_local_deliver()
274 iph = ip_hdr(skb); in ip_rcv_options()
310 const struct iphdr *iph = ip_hdr(skb); in ip_rcv_finish_core()
329 iph = ip_hdr(skb); in ip_rcv_finish_core()
442 iph = ip_hdr(skb); in ip_rcv_core()
468 iph = ip_hdr(skb); in ip_rcv_core()
489 iph = ip_hdr(skb); in ip_rcv_core()
Dxfrm4_input.c36 const struct iphdr *iph = ip_hdr(skb); in xfrm4_rcv_encap_finish()
55 struct iphdr *iph = ip_hdr(skb); in xfrm4_transport_finish()
150 iph = ip_hdr(skb); in xfrm4_udp_encap_rcv()
175 return xfrm4_rcv_spi(skb, ip_hdr(skb)->protocol, 0); in xfrm4_rcv()
Dxfrm4_output.c24 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) in xfrm4_tunnel_check_size()
52 XFRM_MODE_SKB_CB(skb)->protocol = ip_hdr(skb)->protocol; in xfrm4_extract_output()
104 hdr = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); in xfrm4_local_error()
Dip_forward.c48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0)) in ip_exceeds_mtu()
118 if (ip_hdr(skb)->ttl <= 1) in ip_forward()
141 iph = ip_hdr(skb); in ip_forward()
Dsyncookies.c180 const struct iphdr *iph = ip_hdr(skb); in cookie_v4_init_sequence()
306 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
320 ip_hdr(skb)->daddr, in cookie_v4_check()
321 ip_hdr(skb)->saddr); in cookie_v4_check()
342 sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); in cookie_v4_check()
343 sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); in cookie_v4_check()
Dtcp_ipv4.c95 return secure_tcp_seq(ip_hdr(skb)->daddr, in tcp_v4_init_seq()
96 ip_hdr(skb)->saddr, in tcp_v4_init_seq()
103 return secure_tcp_ts_off(net, ip_hdr(skb)->daddr, ip_hdr(skb)->saddr); in tcp_v4_init_ts_off()
707 &ip_hdr(skb)->saddr, AF_INET); in tcp_v4_send_reset()
717 ip_hdr(skb)->saddr, in tcp_v4_send_reset()
718 th->source, ip_hdr(skb)->daddr, in tcp_v4_send_reset()
726 &ip_hdr(skb)->saddr, AF_INET); in tcp_v4_send_reset()
747 key, ip_hdr(skb)->saddr, in tcp_v4_send_reset()
748 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
751 arg.csum = csum_tcpudp_nofold(ip_hdr(skb)->daddr, in tcp_v4_send_reset()
[all …]
Dxfrm4_tunnel.c24 return ip_hdr(skb)->protocol; in ipip_xfrm_rcv()
56 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()
272 ip_hdr(skb)->tot_len = htons(skb->len); in esp_xmit()
273 ip_send_check(ip_hdr(skb)); in esp_xmit()
/Linux-v5.4/net/netfilter/
Dxt_DSCP.c31 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg()
37 ipv4_change_dsfield(ip_hdr(skb), 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-v5.4/drivers/staging/rtl8712/
Dxmit_linux.c69 struct iphdr ip_hdr; in r8712_set_qos() local
77 _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in r8712_set_qos()
79 UserPriority = ip_hdr.tos >> 5; in r8712_set_qos()
/Linux-v5.4/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()
587 (ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit_pow()
588 (ip_hdr(skb)->protocol == IPPROTO_UDP); in cvm_oct_xmit_pow()
599 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
600 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
/Linux-v5.4/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-v5.4/drivers/infiniband/sw/rxe/
Drxe_recv.c174 if (ip_hdr(skb)->daddr != saddr->s_addr) { in check_addr()
176 &ip_hdr(skb)->daddr, in check_addr()
181 if (ip_hdr(skb)->saddr != daddr->s_addr) { in check_addr()
183 &ip_hdr(skb)->saddr, in check_addr()
287 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_rcv_mcast_pkt()
338 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_match_dgid()
400 &ip_hdr(skb)->saddr); in rxe_rcv()
/Linux-v5.4/include/net/
Dinet_ecn.h149 return IP_ECN_set_ce(ip_hdr(skb)); in INET_ECN_set_ce()
223 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate()
238 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate()
/Linux-v5.4/net/batman-adv/
Dmain.c382 struct iphdr ip_hdr_tmp, *ip_hdr; in batadv_skb_set_priority() local
406 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
407 sizeof(*ip_hdr), &ip_hdr_tmp); in batadv_skb_set_priority()
408 if (!ip_hdr) in batadv_skb_set_priority()
410 prio = (ipv4_get_dsfield(ip_hdr) & 0xfc) >> 5; in batadv_skb_set_priority()
/Linux-v5.4/net/bridge/netfilter/
Dnf_conntrack_bridge.c46 iph = ip_hdr(skb); in nf_br_ip_fragment()
147 if (!ip_is_fragment(ip_hdr(skb))) in nf_ct_br_defrag4()
199 iph = ip_hdr(skb); in nf_ct_br_ip_check()
248 len = ntohs(ip_hdr(skb)->tot_len); in nf_ct_bridge_pre()
Dnft_reject_bridge.c44 iph = ip_hdr(skb); in nft_bridge_iphdr_validate()
113 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nft_reject_br_send_v4_unreach()
122 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nft_reject_br_send_v4_unreach()
125 proto = ip_hdr(oldskb)->protocol; in nft_reject_br_send_v4_unreach()
/Linux-v5.4/net/dccp/
Dipv4.c381 return secure_dccp_sequence_number(ip_hdr(skb)->daddr, in dccp_v4_init_sequence()
382 ip_hdr(skb)->saddr, in dccp_v4_init_sequence()
418 newinet->mc_ttl = ip_hdr(skb)->ttl; in dccp_v4_request_recv_sock()
456 const struct iphdr *iph = ip_hdr(skb); in dccp_v4_route_skb()
532 rxiph = ip_hdr(rxskb); in dccp_v4_ctl_send_reset()
616 sk_rcv_saddr_set(req_to_sk(req), ip_hdr(skb)->daddr); in dccp_v4_conn_request()
617 sk_daddr_set(req_to_sk(req), ip_hdr(skb)->saddr); in dccp_v4_conn_request()
783 iph = ip_hdr(skb); in dccp_v4_rcv()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe.h901 if (ip_hdr(skb)->version == 4) in is_tcp_pkt()
902 val = (ip_hdr(skb)->protocol == IPPROTO_TCP); in is_tcp_pkt()
903 else if (ip_hdr(skb)->version == 6) in is_tcp_pkt()
913 if (ip_hdr(skb)->version == 4) in is_udp_pkt()
914 val = (ip_hdr(skb)->protocol == IPPROTO_UDP); in is_udp_pkt()
915 else if (ip_hdr(skb)->version == 6) in is_udp_pkt()
923 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
928 if (ip_hdr(skb)->version == 6) in is_ipv6_ext_hdr()

12345678910>>...12