Searched refs:niph (Results 1 – 4 of 4) sorted by relevance
/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 51 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put() local 54 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); in nf_reject_iphdr_put() 55 niph->version = 4; in nf_reject_iphdr_put() 56 niph->ihl = sizeof(struct iphdr) / 4; in nf_reject_iphdr_put() 57 niph->tos = 0; in nf_reject_iphdr_put() 58 niph->id = 0; in nf_reject_iphdr_put() 59 niph->frag_off = htons(IP_DF); in nf_reject_iphdr_put() 60 niph->protocol = protocol; in nf_reject_iphdr_put() 61 niph->check = 0; in nf_reject_iphdr_put() 62 niph->saddr = oiph->daddr; in nf_reject_iphdr_put() [all …]
|
D | ipt_SYNPROXY.c | 46 struct iphdr *niph, struct tcphdr *nth, in synproxy_send_tcp() argument 49 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); in synproxy_send_tcp() 78 struct iphdr *iph, *niph; in synproxy_send_client_synack() local 86 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack() 92 niph = synproxy_build_ip(net, nskb, iph->daddr, iph->saddr); in synproxy_send_client_synack() 111 niph, nth, tcp_hdr_size); in synproxy_send_client_synack() 121 struct iphdr *iph, *niph; in synproxy_send_server_syn() local 128 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn() 134 niph = synproxy_build_ip(net, nskb, iph->saddr, iph->daddr); in synproxy_send_server_syn() 156 niph, nth, tcp_hdr_size); in synproxy_send_server_syn() [all …]
|
/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 44 struct ipv6hdr *niph, struct tcphdr *nth, in synproxy_send_tcp() argument 50 nth->check = ~tcp_v6_check(tcp_hdr_size, &niph->saddr, &niph->daddr, 0); in synproxy_send_tcp() 57 fl6.saddr = niph->saddr; in synproxy_send_tcp() 58 fl6.daddr = niph->daddr; in synproxy_send_tcp() 92 struct ipv6hdr *iph, *niph; in synproxy_send_client_synack() local 100 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_client_synack() 106 niph = synproxy_build_ip(net, nskb, &iph->daddr, &iph->saddr); in synproxy_send_client_synack() 125 niph, nth, tcp_hdr_size); in synproxy_send_client_synack() 135 struct ipv6hdr *iph, *niph; in synproxy_send_server_syn() local 142 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, in synproxy_send_server_syn() [all …]
|
/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 72 struct iphdr *niph; in nft_reject_br_send_v4_tcp_reset() local 89 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nft_reject_br_send_v4_tcp_reset() 92 niph->ttl = net->ipv4.sysctl_ip_default_ttl; in nft_reject_br_send_v4_tcp_reset() 93 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset() 94 ip_send_check(niph); in nft_reject_br_send_v4_tcp_reset() 107 struct iphdr *niph; in nft_reject_br_send_v4_unreach() local 146 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, in nft_reject_br_send_v4_unreach() 161 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_unreach() 162 ip_send_check(niph); in nft_reject_br_send_v4_unreach()
|