Home
last modified time | relevance | path

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

/linux-5.19.10/net/ipv4/netfilter/
Dnf_reject_ipv4.c40 struct sk_buff *oldskb, in nf_reject_skb_v4_tcp_reset() argument
49 if (!nf_reject_iphdr_validate(oldskb)) in nf_reject_skb_v4_tcp_reset()
52 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nf_reject_skb_v4_tcp_reset()
64 niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, in nf_reject_skb_v4_tcp_reset()
66 nf_reject_ip_tcphdr_put(nskb, oldskb, oth); in nf_reject_skb_v4_tcp_reset()
75 struct sk_buff *oldskb, in nf_reject_skb_v4_unreach() argument
87 if (!nf_reject_iphdr_validate(oldskb)) in nf_reject_skb_v4_unreach()
91 if (ip_hdr(oldskb)->frag_off & htons(IP_OFFSET)) in nf_reject_skb_v4_unreach()
95 len = min_t(unsigned int, 536, oldskb->len); in nf_reject_skb_v4_unreach()
97 if (!pskb_may_pull(oldskb, len)) in nf_reject_skb_v4_unreach()
[all …]
/linux-5.19.10/net/ipv6/netfilter/
Dnf_reject_ipv6.c60 struct sk_buff *oldskb, in nf_reject_skb_v6_tcp_reset() argument
70 if (!nf_reject_ip6hdr_validate(oldskb)) in nf_reject_skb_v6_tcp_reset()
73 oth = nf_reject_ip6_tcphdr_get(oldskb, &_oth, &otcplen, hook); in nf_reject_skb_v6_tcp_reset()
85 nip6h = nf_reject_ip6hdr_put(nskb, oldskb, IPPROTO_TCP, in nf_reject_skb_v6_tcp_reset()
87 nf_reject_ip6_tcphdr_put(nskb, oldskb, oth, otcplen); in nf_reject_skb_v6_tcp_reset()
95 struct sk_buff *oldskb, in nf_reject_skb_v6_unreach() argument
104 if (!nf_reject_ip6hdr_validate(oldskb)) in nf_reject_skb_v6_unreach()
110 len = min_t(unsigned int, 1220, oldskb->len); in nf_reject_skb_v6_unreach()
112 if (!pskb_may_pull(oldskb, len)) in nf_reject_skb_v6_unreach()
115 if (!nf_reject_v6_csum_ok(oldskb, hook)) in nf_reject_skb_v6_unreach()
[all …]
/linux-5.19.10/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()
35 if (skb_vlan_tag_present(oldskb)) { in nft_reject_br_push_etherhdr()
36 u16 vid = skb_vlan_tag_get(oldskb); in nft_reject_br_push_etherhdr()
38 __vlan_hwaccel_put_tag(nskb, oldskb->vlan_proto, vid); in nft_reject_br_push_etherhdr()
46 struct sk_buff *oldskb, in nft_reject_br_send_v4_tcp_reset() argument
52 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, NULL, hook); in nft_reject_br_send_v4_tcp_reset()
56 nft_reject_br_push_etherhdr(oldskb, nskb); in nft_reject_br_send_v4_tcp_reset()
[all …]
/linux-5.19.10/net/netfilter/
Dnft_reject_netdev.c19 static void nft_reject_queue_xmit(struct sk_buff *nskb, struct sk_buff *oldskb) in nft_reject_queue_xmit() argument
21 dev_hard_header(nskb, nskb->dev, ntohs(oldskb->protocol), in nft_reject_queue_xmit()
22 eth_hdr(oldskb)->h_source, eth_hdr(oldskb)->h_dest, in nft_reject_queue_xmit()
28 struct sk_buff *oldskb, in nft_reject_netdev_send_v4_tcp_reset() argument
34 nskb = nf_reject_skb_v4_tcp_reset(net, oldskb, dev, hook); in nft_reject_netdev_send_v4_tcp_reset()
38 nft_reject_queue_xmit(nskb, oldskb); in nft_reject_netdev_send_v4_tcp_reset()
42 struct sk_buff *oldskb, in nft_reject_netdev_send_v4_unreach() argument
48 nskb = nf_reject_skb_v4_unreach(net, oldskb, dev, hook, code); in nft_reject_netdev_send_v4_unreach()
52 nft_reject_queue_xmit(nskb, oldskb); in nft_reject_netdev_send_v4_unreach()
56 struct sk_buff *oldskb, in nft_reject_netdev_send_v6_tcp_reset() argument
[all …]
/linux-5.19.10/include/net/netfilter/ipv4/
Dnf_reject.h11 void nf_send_reset(struct net *net, struct sock *, struct sk_buff *oldskb,
13 const struct tcphdr *nf_reject_ip_tcphdr_get(struct sk_buff *oldskb,
16 const struct sk_buff *oldskb,
18 void nf_reject_ip_tcphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb,
22 struct sk_buff *oldskb,
26 struct sk_buff *oldskb,
/linux-5.19.10/include/net/netfilter/ipv6/
Dnf_reject.h10 void nf_send_reset6(struct net *net, struct sock *sk, struct sk_buff *oldskb,
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,
23 struct sk_buff *oldskb,
27 struct sk_buff *oldskb,
/linux-5.19.10/drivers/atm/
Dsolos-pci.c1072 struct sk_buff *oldskb = card->tx_skb[port]; in fpga_tx() local
1073 if (oldskb) { in fpga_tx()
1074 dma_unmap_single(&card->dev->dev, SKB_CB(oldskb)->dma_addr, in fpga_tx()
1075 oldskb->len, DMA_TO_DEVICE); in fpga_tx()
1087 oldskb = skb; /* We're done with this skb already */ in fpga_tx()
1101 if (!oldskb) in fpga_tx()
1106 struct pkt_hdr *header = (void *)oldskb->data; in fpga_tx()
1109 skb_pull(oldskb, sizeof(*header)); in fpga_tx()
1115 print_buffer(oldskb); in fpga_tx()
1118 vcc = SKB_CB(oldskb)->vcc; in fpga_tx()
[all …]