netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH - net-2.6.24 0/2] Introduce and use print_ip and print_ipv6
@ 2007-09-20  6:53 Joe Perches
  2007-09-20 14:55 ` Randy Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Joe Perches @ 2007-09-20  6:53 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Jeff Garzik, Andrew Morton

In the same vein as print_mac, the implementations
introduce declaration macros:
	DECLARE_IP_BUF(var)
	DECLARE_IPV6_BUF(var)
and functions:
	print_ip
	print_ipv6
	print_ipv6_nofmt

IPV4 Use:

	DECLARE_IP_BUF(ipbuf);
	__be32 addr;
	print_ip(ipbuf, addr);

IPV6 use:

	DECLARE_IPV6_BUF(ipv6buf);
	const struct in6_addr *addr;
	print_ipv6(ipv6buf, addr);
and
	print_ipv6_nofmt(ipv6buf, addr);

compiled x86, defconfig and allyesconfig


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-09-26  5:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20  6:53 [PATCH - net-2.6.24 0/2] Introduce and use print_ip and print_ipv6 Joe Perches
2007-09-20 14:55 ` Randy Dunlap
2007-09-20 15:25   ` Joe Perches
2007-09-20 17:46     ` Ilpo Järvinen
2007-09-20 23:05 ` Thomas Graf
2007-09-20 23:20   ` Joe Perches
2007-09-26  2:29 ` David Miller
2007-09-26  4:36   ` Joe Perches
2007-09-26  5:11     ` David Miller
2007-09-26  5:18       ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).