Re: [patch] repost of netfilter/NIPQUAD patches

David Ford (david@kalifornia.com)
Fri, 14 Apr 2000 12:52:08 -0700


Andrew Morton wrote:

> How about changing printk() so it knows how to output ipv4 dotted quads?
> printk("%q", sin.sin_addr.s_addr).

Because:
-this is the element of least surprise and
-doesn't change the API of printk and
-won't break if the number is in host order or network order, we'll use
HIPQUAD.

David Miller's NIPQUAD macro is really the most efficient way to handle this
IMO.

-d

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/