Home
last modified time | relevance | path

Searched refs:oldskb (Results 1 – 3 of 3) sorted by relevance

/net/bridge/netfilter/
Dnft_reject_bridge.c26 static void nft_reject_br_push_etherhdr(struct sk_buff *oldskb, in nft_reject_br_push_etherhdr() argument
33 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr()
34 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr()
35 eth->h_proto = eth_hdr(oldskb)->h_proto; in nft_reject_br_push_etherhdr()
67 struct sk_buff *oldskb, in nft_reject_br_send_v4_tcp_reset() argument
76 if (!nft_bridge_iphdr_validate(oldskb)) in nft_reject_br_send_v4_tcp_reset()
79 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nft_reject_br_send_v4_tcp_reset()
89 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nft_reject_br_send_v4_tcp_reset()
91 nf_reject_ip_tcphdr_put(nskb, oldskb, oth); in nft_reject_br_send_v4_tcp_reset()
96 nft_reject_br_push_etherhdr(oldskb, nskb); in nft_reject_br_send_v4_tcp_reset()
[all …]
/net/ipv4/netfilter/
Dnf_reject_ipv4.c18 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip_tcphdr_get() argument
24 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
27 if (ip_hdr(oldskb)->protocol != IPPROTO_TCP) in nf_reject_ip_tcphdr_get()
30 oth = skb_header_pointer(oldskb, ip_hdrlen(oldskb), in nf_reject_ip_tcphdr_get()
40 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get()
48 const struct sk_buff *oldskb, in nf_reject_iphdr_put() argument
51 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
72 void nf_reject_ip_tcphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb, in nf_reject_ip_tcphdr_put() argument
89 oldskb->len - ip_hdrlen(oldskb) - in nf_reject_ip_tcphdr_put()
104 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset() argument
[all …]
/net/ipv6/netfilter/
Dnf_reject_ipv6.c18 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_get() argument
22 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6_tcphdr_get()
28 tcphoff = ipv6_skip_exthdr(oldskb, ((u8 *)(oip6h + 1) - oldskb->data), in nf_reject_ip6_tcphdr_get()
31 if ((tcphoff < 0) || (tcphoff > oldskb->len)) { in nf_reject_ip6_tcphdr_get()
36 *otcplen = oldskb->len - tcphoff; in nf_reject_ip6_tcphdr_get()
45 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get()
57 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get()
67 const struct sk_buff *oldskb, in nf_reject_ip6hdr_put() argument
71 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6hdr_put()
91 const struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_put() argument
[all …]