Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
if_ether.h File Reference
#include <linux/skbuff.h>
#include <uapi/linux/if_ether.h>

Go to the source code of this file.

Functions

int eth_header_parse (const struct sk_buff *skb, unsigned char *haddr)
 
int mac_pton (const char *s, u8 *mac)
 
ssize_t sysfs_format_mac (char *buf, const unsigned char *addr, int len)
 

Function Documentation

int eth_header_parse ( const struct sk_buff skb,
unsigned char haddr 
)

eth_header_parse - extract hardware address from packet : packet to extract header from : destination buffer

Definition at line 222 of file eth.c.

int mac_pton ( const char s,
u8 mac 
)

Definition at line 341 of file utils.c.

ssize_t sysfs_format_mac ( char buf,
const unsigned char addr,
int  len 
)

Definition at line 392 of file eth.c.