[First mail went fobar, sorry if you receive that multiple times]
On Tue, Apr 25, 2000 at 12:14:41PM +0100, Glynn Clements wrote:
>
> Tuan Hoang wrote:
>
> > I was just curious as to why each byte in the hardware address is
> > masked with 0377 in the code that prints it out. The function is
> > pr_ether() in lib/ether.c. Is the simple answer "because the
> > kernel does this" so we must un-mask it?
>
> There isn't any reason, unless the code was meant to allow for a
> "char" being wider than 8 bits.
It probably was a weird method to avoid sign extension before
pr_ether got its arguments in unsigned char.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]