Searched refs:niph (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 48 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put() local 51 niph = skb_put(nskb, sizeof(struct iphdr)); in nf_reject_iphdr_put() 52 niph->version = 4; in nf_reject_iphdr_put() 53 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put() 54 niph->tos = 0; in nf_reject_iphdr_put() 55 niph->id = 0; in nf_reject_iphdr_put() 56 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put() 57 niph->protocol = protocol; in nf_reject_iphdr_put() 58 niph->check = 0; in nf_reject_iphdr_put() 59 niph->saddr = oiph->daddr; in nf_reject_iphdr_put() [all …]
|
/Linux-v5.10/net/netfilter/ |
D | nf_synproxy_core.c | 439 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() argument 442 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); in synproxy_send_tcp() 470 struct iphdr *iph, *niph; in synproxy_send_client_synack() local 478 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack() 484 niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr); in synproxy_send_client_synack() 503 IP_CT_ESTABLISHED_REPLY, niph, nth, tcp_hdr_size); in synproxy_send_client_synack() 514 struct iphdr *iph, *niph; in synproxy_send_server_syn() local 521 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn() 527 niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr); in synproxy_send_server_syn() 549 niph, nth, tcp_hdr_size); in synproxy_send_server_syn() [all …]
|
/Linux-v5.10/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 75 struct iphdr *niph; in nft_reject_br_send_v4_tcp_reset() local 92 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nft_reject_br_send_v4_tcp_reset() 95 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset() 96 ip_send_check(niph); in nft_reject_br_send_v4_tcp_reset() 109 struct iphdr *niph; in nft_reject_br_send_v4_unreach() local 144 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, in nft_reject_br_send_v4_unreach() 157 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_unreach() 158 ip_send_check(niph); in nft_reject_br_send_v4_unreach()
|
/Linux-v5.10/net/ipv4/ |
D | ip_tunnel_core.c | 199 struct iphdr *niph; in iptunnel_pmtud_build_icmp() local 210 err = pskb_trim(skb, 576 - sizeof(*niph) - sizeof(*icmph)); in iptunnel_pmtud_build_icmp() 215 err = skb_cow(skb, sizeof(*niph) + sizeof(*icmph) + ETH_HLEN); in iptunnel_pmtud_build_icmp() 230 niph = skb_push(skb, sizeof(*niph)); in iptunnel_pmtud_build_icmp() 231 *niph = (struct iphdr) { in iptunnel_pmtud_build_icmp() 232 .ihl = sizeof(*niph) / 4u, in iptunnel_pmtud_build_icmp() 235 .tot_len = htons(len + sizeof(*niph)), in iptunnel_pmtud_build_icmp() 243 ip_send_check(niph); in iptunnel_pmtud_build_icmp()
|