Fix display of xfrm
When using iproute2 to display information on policies installed in kernel
(ip x p s) output is incorrect: IPv6 addresses printed as IPv4 addresses.
In case I am dealing with inter protocol policies where the template's address
family differs from those of the policy itself.
The patch attached solves this problem.
diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
index 24b2114..708ce9f 100644
--- a/ip/ipxfrm.c
+++ b/ip/ipxfrm.c
@@ -609,7 +609,7 @@
fputs(prefix, fp);
xfrm_id_info_print(&tmpl->saddr, &tmpl->id, tmpl->mode,
- tmpl->reqid, family, 0, fp, prefix, "tmpl ");
+ tmpl->reqid, tmpl->family, 0, fp, prefix, "tmpl ");
if (show_stats > 0 || tmpl->optional) {
if (prefix)