1ETH_HEADER(9)               Network device support               ETH_HEADER(9)
2
3
4

NAME

6       eth_header - create the Ethernet header
7

SYNOPSIS

9       int eth_header(struct sk_buff * skb, struct net_device * dev,
10                      unsigned short type, const void * daddr,
11                      const void * saddr, unsigned len);
12

ARGUMENTS

14       skb
15           buffer to alter
16
17       dev
18           source device
19
20       type
21           Ethernet type field
22
23       daddr
24           destination address (NULL leave destination address)
25
26       saddr
27           source address (NULL use device source address)
28
29       len
30           packet length (<= skb->len)
31

DESCRIPTION

33       Set the protocol type. For a packet of type ETH_P_802_3/2 we put the
34       length in here instead.
35
37Kernel Hackers Manual 2.6.       November 2011                   ETH_HEADER(9)
Impressum