All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipvsadm: do not truncate ipv6 members of v4 services
@ 2014-09-10  6:16 Alex Gartrell
  2014-09-10  6:38 ` Julian Anastasov
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Gartrell @ 2014-09-10  6:16 UTC (permalink / raw)
  To: brouer; +Cc: ja, horms, lvs-devel, kernel-team, ps, Alex Gartrell

We need to compare to the entry af instead of the service af or else we'll
pop a nul byte into the middle of a v6 real server address.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
---
 ipvsadm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipvsadm.c b/ipvsadm.c
index d12070e..ef19091 100644
--- a/ipvsadm.c
+++ b/ipvsadm.c
@@ -1629,7 +1629,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
 			fprintf(stderr, "addrport_to_anyname fails\n");
 			exit(1);
 		}
-		if (!(format & FMT_RULE) && (se->af != AF_INET6))
+		if (!(format & FMT_RULE) && (e->af != AF_INET6))
 			dname[28] = '\0';
 
 		if (format & FMT_RULE) {
-- 
1.8.1


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

end of thread, other threads:[~2014-09-10  7:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-10  6:16 [PATCH] ipvsadm: do not truncate ipv6 members of v4 services Alex Gartrell
2014-09-10  6:38 ` Julian Anastasov
2014-09-10  7:00   ` Jesper Dangaard Brouer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.