Home
last modified time | relevance | path

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

/net/bridge/netfilter/
Dnft_reject_bridge.c23 static void nft_reject_br_push_etherhdr(struct sk_buff *oldskb, in nft_reject_br_push_etherhdr() argument
30 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr()
31 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr()
32 eth->h_proto = eth_hdr(oldskb)->h_proto; in nft_reject_br_push_etherhdr()
64 struct sk_buff *oldskb, in nft_reject_br_send_v4_tcp_reset() argument
73 if (!nft_bridge_iphdr_validate(oldskb)) in nft_reject_br_send_v4_tcp_reset()
76 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nft_reject_br_send_v4_tcp_reset()
86 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nft_reject_br_send_v4_tcp_reset()
88 nf_reject_ip_tcphdr_put(nskb, oldskb, oth); in nft_reject_br_send_v4_tcp_reset()
92 nft_reject_br_push_etherhdr(oldskb, nskb); in nft_reject_br_send_v4_tcp_reset()
[all …]
/net/ipv4/netfilter/
Dnf_reject_ipv4.c15 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip_tcphdr_get() argument
21 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_ip_tcphdr_get()
24 if (ip_hdr(oldskb)->protocol != IPPROTO_TCP) in nf_reject_ip_tcphdr_get()
27 oth = skb_header_pointer(oldskb, ip_hdrlen(oldskb), in nf_reject_ip_tcphdr_get()
37 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in nf_reject_ip_tcphdr_get()
45 const struct sk_buff *oldskb, in nf_reject_iphdr_put() argument
48 struct iphdr *niph, *oiph = ip_hdr(oldskb); in nf_reject_iphdr_put()
69 void nf_reject_ip_tcphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb, in nf_reject_ip_tcphdr_put() argument
85 oldskb->len - ip_hdrlen(oldskb) - in nf_reject_ip_tcphdr_put()
100 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.c15 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_get() argument
19 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6_tcphdr_get()
25 tcphoff = ipv6_skip_exthdr(oldskb, ((u8 *)(oip6h + 1) - oldskb->data), in nf_reject_ip6_tcphdr_get()
28 if ((tcphoff < 0) || (tcphoff > oldskb->len)) { in nf_reject_ip6_tcphdr_get()
33 *otcplen = oldskb->len - tcphoff; in nf_reject_ip6_tcphdr_get()
42 otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr), in nf_reject_ip6_tcphdr_get()
54 if (nf_ip6_checksum(oldskb, hook, tcphoff, IPPROTO_TCP)) { in nf_reject_ip6_tcphdr_get()
64 const struct sk_buff *oldskb, in nf_reject_ip6hdr_put() argument
68 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6hdr_put()
88 const struct sk_buff *oldskb, in nf_reject_ip6_tcphdr_put() argument
[all …]