Ethereal-users: [Ethereal-users] ethernet src and dest addr - from where do they come in linux

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: John Que <qwejohn@xxxxxxxxx>
Date: Tue, 9 Aug 2005 11:01:24 -0400
Hello,
My question is:
the "ethernet src and dest addr" (MAC addresses of Src and Dst: ) in
the sniffer - from where do they come in linux?
I suppose that there are from the sk_buff struct, but there in sk_buff 
a member called mac :
union 
	{	
	  	struct ethhdr	*ethernet;
	  	unsigned char 	*raw;
	} mac;

where  ethhdr is 
struct ethhdr 
{
	unsigned char	h_dest[ETH_ALEN];	/* destination eth addr	*/
	unsigned char	h_source[ETH_ALEN];	/* source ether addr	*/
	unsigned short	h_proto;		/* packet type ID field	*/
} __attribute__((packed));

and there is the a net_deivce member in sk_buff 
(which has dev_addr[MAX_ADDR_LEN] and ifindex as candidates)

Any ideas? 
John