---
name: "eth_header"
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/eth_header"
---

# eth\_header(9)

create the Ethernet header

## NAME

eth\_header - create the Ethernet header

## SYNOPSIS

**int eth\_header(struct sk\_buff \*** *skb***, struct net\_device \*** *dev***, unsigned short** *type***, const void \*** *daddr***, const void \*** *saddr***, unsigned int** *len***);**

## ARGUMENTS

*skb*

buffer to alter

*dev*

source device

*type*

Ethernet type field

*daddr*

destination address (NULL leave destination address)

*saddr*

source address (NULL use device source address)

*len*

packet length (\<= skb-\>len)

## DESCRIPTION

Set the protocol type. For a packet of type ETH\_P\_802\_3/2 we put the length in here instead.

## COPYRIGHT
