Searched refs:niph (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c49 struct iphdr *niph, *oiph = ip_hdr(oldskb); nf_reject_iphdr_put() local
52 niph = (struct iphdr *)skb_put(nskb, sizeof(struct iphdr)); nf_reject_iphdr_put()
53 niph->version = 4; nf_reject_iphdr_put()
54 niph->ihl = sizeof(struct iphdr) / 4; nf_reject_iphdr_put()
55 niph->tos = 0; nf_reject_iphdr_put()
56 niph->id = 0; nf_reject_iphdr_put()
57 niph->frag_off = htons(IP_DF); nf_reject_iphdr_put()
58 niph->protocol = protocol; nf_reject_iphdr_put()
59 niph->check = 0; nf_reject_iphdr_put()
60 niph->saddr = oiph->daddr; nf_reject_iphdr_put()
61 niph->daddr = oiph->saddr; nf_reject_iphdr_put()
62 niph->ttl = ttl; nf_reject_iphdr_put()
66 return niph; nf_reject_iphdr_put()
73 struct iphdr *niph = ip_hdr(nskb); nf_reject_ip_tcphdr_put() local
93 tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), niph->saddr, nf_reject_ip_tcphdr_put()
94 niph->daddr, 0); nf_reject_ip_tcphdr_put()
106 struct iphdr *niph; nf_send_reset() local
128 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, nf_send_reset()
152 niph->tot_len = htons(nskb->len); nf_send_reset()
153 ip_send_check(niph); nf_send_reset()
H A Dipt_SYNPROXY.c44 struct iphdr *niph, struct tcphdr *nth, synproxy_send_tcp()
47 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); synproxy_send_tcp()
75 struct iphdr *iph, *niph; synproxy_send_client_synack() local
83 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_client_synack()
89 niph = synproxy_build_ip(nskb, iph->daddr, iph->saddr); synproxy_send_client_synack()
108 niph, nth, tcp_hdr_size); synproxy_send_client_synack()
117 struct iphdr *iph, *niph; synproxy_send_server_syn() local
124 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_server_syn()
130 niph = synproxy_build_ip(nskb, iph->saddr, iph->daddr); synproxy_send_server_syn()
152 niph, nth, tcp_hdr_size); synproxy_send_server_syn()
162 struct iphdr *iph, *niph; synproxy_send_server_ack() local
169 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_server_ack()
175 niph = synproxy_build_ip(nskb, iph->daddr, iph->saddr); synproxy_send_server_ack()
191 synproxy_send_tcp(skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_server_ack()
200 struct iphdr *iph, *niph; synproxy_send_client_ack() local
207 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_client_ack()
213 niph = synproxy_build_ip(nskb, iph->saddr, iph->daddr); synproxy_send_client_ack()
229 synproxy_send_tcp(skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_client_ack()
42 synproxy_send_tcp(const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct iphdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
/linux-4.1.27/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c42 struct ipv6hdr *niph, struct tcphdr *nth, synproxy_send_tcp()
49 nth->check = ~tcp_v6_check(tcp_hdr_size, &niph->saddr, &niph->daddr, 0); synproxy_send_tcp()
56 fl6.saddr = niph->saddr; synproxy_send_tcp()
57 fl6.daddr = niph->daddr; synproxy_send_tcp()
90 struct ipv6hdr *iph, *niph; synproxy_send_client_synack() local
98 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_client_synack()
104 niph = synproxy_build_ip(nskb, &iph->daddr, &iph->saddr); synproxy_send_client_synack()
123 niph, nth, tcp_hdr_size); synproxy_send_client_synack()
132 struct ipv6hdr *iph, *niph; synproxy_send_server_syn() local
139 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_server_syn()
145 niph = synproxy_build_ip(nskb, &iph->saddr, &iph->daddr); synproxy_send_server_syn()
167 niph, nth, tcp_hdr_size); synproxy_send_server_syn()
177 struct ipv6hdr *iph, *niph; synproxy_send_server_ack() local
184 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_server_ack()
190 niph = synproxy_build_ip(nskb, &iph->daddr, &iph->saddr); synproxy_send_server_ack()
206 synproxy_send_tcp(skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_server_ack()
215 struct ipv6hdr *iph, *niph; synproxy_send_client_ack() local
222 nskb = alloc_skb(sizeof(*niph) + tcp_hdr_size + MAX_TCP_HEADER, synproxy_send_client_ack()
228 niph = synproxy_build_ip(nskb, &iph->saddr, &iph->daddr); synproxy_send_client_ack()
244 synproxy_send_tcp(skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_client_ack()
40 synproxy_send_tcp(const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct ipv6hdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
/linux-4.1.27/net/bridge/netfilter/
H A Dnft_reject_bridge.c48 struct iphdr *niph; nft_reject_br_send_v4_tcp_reset() local
65 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, nft_reject_br_send_v4_tcp_reset()
68 niph->ttl = sysctl_ip_default_ttl; nft_reject_br_send_v4_tcp_reset()
69 niph->tot_len = htons(nskb->len); nft_reject_br_send_v4_tcp_reset()
70 ip_send_check(niph); nft_reject_br_send_v4_tcp_reset()
82 struct iphdr *niph; nft_reject_br_send_v4_unreach() local
121 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_ICMP, nft_reject_br_send_v4_unreach()
136 niph->tot_len = htons(nskb->len); nft_reject_br_send_v4_unreach()
137 ip_send_check(niph); nft_reject_br_send_v4_unreach()

Completed in 67 milliseconds