---
name: "dev_forward_skb"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_forward_skb"
---

# dev\_forward\_skb(9)

loopback an skb to another netif

## NAME

dev\_forward\_skb - loopback an skb to another netif

## SYNOPSIS

**int dev\_forward\_skb(struct net\_device \*** *dev***, struct sk\_buff \*** *skb***);**

## ARGUMENTS

*dev*

destination network device

*skb*

buffer to forward

## DESCRIPTION

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.

## COPYRIGHT
