eth_header — create the Ethernet header
int eth_header ( | struct sk_buff * skb, |
| struct net_device * dev, | |
| unsigned short type, | |
| const void * daddr, | |
| const void * saddr, | |
unsigned int len); |
struct sk_buff * skbbuffer to alter
struct net_device * devsource device
unsigned short typeEthernet type field
const void * daddrdestination address (NULL leave destination address)
const void * saddrsource address (NULL use device source address)
unsigned int lenpacket length (<= skb->len)