Thread (11 messages) 11 messages, 4 authors, 2007-08-27

Re: [PATCH net-2.6.24] introduce MAC_FMT/MAC_ARG

From: Joe Perches <joe@perches.com>
Date: 2007-08-23 16:07:40

On Wed, 2007-08-22 at 20:46 +0200, Johannes Berg wrote:
The two different wireless code bases both define macros to ease
printing MAC addresses:
There are also several different uses of the equivalent of

	printk("%02x",addr[0])
	for (i=1; i<6; i++)
		printk(":%02x",addr[i]);

to print an ethernet MAC address.

http://www.uwsg.iu.edu/hypermail/linux/net/0602.1/0002.html

As not all device MAC addresses are 6 bytes, colon separated,
perhaps an appropriate ethernet/tr MAC designation is EUI48.

http://standards.ieee.org/regauth/oui/tutorials/EUI48.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help