/Linux-v4.19/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 26 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() 95 nft_reject_br_push_etherhdr(oldskb, nskb); in nft_reject_br_send_v4_tcp_reset() [all …]
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 18 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 88 oldskb->len - ip_hdrlen(oldskb) - in nf_reject_ip_tcphdr_put() 103 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) in nf_send_reset() argument [all …]
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 18 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 …]
|
/Linux-v4.19/include/net/netfilter/ipv4/ |
D | nf_reject.h | 10 void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook); 12 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb, 15 const struct sk_buff *oldskb, 17 void nf_reject_ip_tcphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb,
|
/Linux-v4.19/include/net/netfilter/ipv6/ |
D | nf_reject.h | 10 void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook); 12 const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb, 16 const struct sk_buff *oldskb, 19 const struct sk_buff *oldskb,
|
/Linux-v4.19/drivers/atm/ |
D | solos-pci.c | 1084 struct sk_buff *oldskb = card->tx_skb[port]; in fpga_tx() local 1085 if (oldskb) { in fpga_tx() 1086 dma_unmap_single(&card->dev->dev, SKB_CB(oldskb)->dma_addr, in fpga_tx() 1087 oldskb->len, DMA_TO_DEVICE); in fpga_tx() 1099 oldskb = skb; /* We're done with this skb already */ in fpga_tx() 1113 if (!oldskb) in fpga_tx() 1118 struct pkt_hdr *header = (void *)oldskb->data; in fpga_tx() 1121 skb_pull(oldskb, sizeof(*header)); in fpga_tx() 1127 print_buffer(oldskb); in fpga_tx() 1130 vcc = SKB_CB(oldskb)->vcc; in fpga_tx() [all …]
|