Re: [patch] repost of netfilter/NIPQUAD patches

From: Florian Weimer (fw@deneb.cygnus.argh.org)
Date: Mon Apr 17 2000 - 04:53:53 EST


olaf@bigred.inka.de (Olaf Titz) writes:

> PS. I hope this atrocity (net/ipv6/icmp.c)
>
> printk(KERN_DEBUG "ICMPv6 checksum failed [%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x > %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x]\n",
> ntohs(saddr->in6_u.u6_addr16[0]),

:-/

All network address strings have a bounded length, therefore you can
allocate a string buffer for each address on the stack in the caller,
and have the inet_ntoa()-like functions fill it. This buffer can be
passed to printk() with an ordinary "%s" flag.

-
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/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:10 EST