lvs-devel
|
To: | <brouer@xxxxxxxxxx> |
---|---|
Subject: | [PATCH] ipvsadm: do not truncate ipv6 members of v4 services |
Cc: | <ja@xxxxxx>, <horms@xxxxxxxxxxxx>, <lvs-devel@xxxxxxxxxxxxxxx>, <kernel-team@xxxxxx>, <ps@xxxxxx>, Alex Gartrell <agartrell@xxxxxx> |
From: | Alex Gartrell <agartrell@xxxxxx> |
Date: | Tue, 9 Sep 2014 23:16:46 -0700 |
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@xxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [PATCH ipvs,v4 19/20] ipvs: use the new dest addr family field, Julian Anastasov |
---|---|
Next by Date: | Re: [PATCH net-next 00/20] Support v6 real servers in v4 pools and vice versa, Simon Horman |
Previous by Thread: | [PATCH net-next 00/20] Support v6 real servers in v4 pools and vice versa, Alex Gartrell |
Next by Thread: | Re: [PATCH] ipvsadm: do not truncate ipv6 members of v4 services, Julian Anastasov |
Indexes: | [Date] [Thread] [Top] [All Lists] |