| /Linux-v5.4/net/ipv4/netfilter/ |
| D | nf_reject_ipv4.c | 21 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()
|
| D | ipt_ECN.c | 28 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()
|
| D | nf_dup_ipv4.c | 26 const struct iphdr *iph = ip_hdr(skb); in nf_dup_ipv4_route() 80 iph = ip_hdr(skb); in nf_dup_ipv4()
|
| D | iptable_mangle.c | 51 iph = ip_hdr(skb); in ipt_mangle_out() 59 iph = ip_hdr(skb); in ipt_mangle_out()
|
| /Linux-v5.4/net/ipv4/ |
| D | ip_input.c | 151 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()
|
| D | xfrm4_input.c | 36 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()
|
| D | xfrm4_output.c | 24 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()
|
| D | ip_forward.c | 48 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()
|
| D | syncookies.c | 180 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()
|
| D | tcp_ipv4.c | 95 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 …]
|
| D | xfrm4_tunnel.c | 24 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()
|
| D | esp4_offload.c | 55 (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/ |
| D | xt_DSCP.c | 31 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()
|
| D | xt_dscp.c | 28 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()
|
| D | utils.c | 13 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/ |
| D | xmit_linux.c | 69 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/ |
| D | ethernet-tx.c | 366 (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/ |
| D | ip.h | 19 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/ |
| D | rxe_recv.c | 174 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/ |
| D | inet_ecn.h | 149 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/ |
| D | main.c | 382 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/ |
| D | nf_conntrack_bridge.c | 46 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()
|
| D | nft_reject_bridge.c | 44 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/ |
| D | ipv4.c | 381 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/ |
| D | be.h | 901 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()
|