1DEV_FORWARD_SKB(9) Network device support DEV_FORWARD_SKB(9)
2
3
4
6 dev_forward_skb - loopback an skb to another netif
7
9 int dev_forward_skb(struct net_device * dev, struct sk_buff * skb);
10
12 dev
13 destination network device
14
15 skb
16 buffer to forward
17
19 NET_RX_SUCCESS (no congestion) NET_RX_DROP (packet was dropped, but
20 freed)
21
22 dev_forward_skb can be used for injecting an skb from the start_xmit
23 function of one device into the receive queue of another device.
24
25 The receiving device may be in another namespace, so we have to clear
26 all information in the skb that could impact namespace isolation.
27
29Kernel Hackers Manual 3.10 June 2019 DEV_FORWARD_SKB(9)