dev_forward_skb(9)

dev_forward_skb9

Loopback an skb to another netif

Usage

int dev_forward_skb(struct net_device * dev, struct sk_buff * skb);

Arguments

dev

destination network device

skb

buffer to forward

Overview

return values: NET_RX_SUCCESS (no congestion) NET_RX_DROP (packet was dropped, but freed)

dev_forward_skb can be used for injecting an skb from the start_xmit function of one device into the receive queue of another device.

The receiving device may be in another namespace, so we have to clear all information in the skb that could impact namespace isolation.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.