Skip to content

Introduce and use print_ip and print_ipv6

Joe Perches netdev 1 version In review

Get series with b4
b4 am 1190271211.26101.91.camel@localhost

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Introduce and use print_ip+0 -01 reply
2/2Introduce and use print_ipv6+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH - net-2.6.24 0/2] Introduce and use print_ip and print_ipv6

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