Searched refs:niph (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 46 struct iphdr *niph; in nf_reject_skb_v4_tcp_reset() local 64 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nf_reject_skb_v4_tcp_reset() 67 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_tcp_reset() 68 ip_send_check(niph); in nf_reject_skb_v4_tcp_reset() 80 struct iphdr *niph; in nf_reject_skb_v4_unreach() local 119 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, in nf_reject_skb_v4_unreach() 132 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach() 133 ip_send_check(niph); in nf_reject_skb_v4_unreach() 172 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put() local 175 niph = skb_put(nskb, sizeof(struct iphdr)); in nf_reject_iphdr_put() [all …]
|
/Linux-v6.6/net/netfilter/ |
D | nf_synproxy_core.c | 421 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() argument 424 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); in synproxy_send_tcp() 452 struct iphdr *iph, *niph; in synproxy_send_client_synack() local 460 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack() 466 niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr); in synproxy_send_client_synack() 485 IP_CT_ESTABLISHED_REPLY, niph, nth, tcp_hdr_size); in synproxy_send_client_synack() 496 struct iphdr *iph, *niph; in synproxy_send_server_syn() local 503 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn() 509 niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr); in synproxy_send_server_syn() 531 niph, nth, tcp_hdr_size); in synproxy_send_server_syn() [all …]
|
/Linux-v6.6/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()
|