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

* Re: [PATCH] ipvsadm: do not truncate ipv6 members of v4 services
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Anastasov @ 2014-09-10  6:38 UTC (permalink / raw)
  To: Alex Gartrell; +Cc: brouer, horms, lvs-devel, kernel-team, ps


	Hello,

On Tue, 9 Sep 2014, Alex Gartrell wrote:

> 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>

Acked-by: Julian Anastasov <ja@ssi.bg>

	Jesper, I think you can now push all recent
changes to the ipvsadm tree. This includes:

ipvsadm: specify real server address family to netlink socket
by Alex, from August 29

ipvsadm: restrict different address family
ipvsadm: allow different address family in connection listing
by me, from August 30

and finally this patch.

> ---
>  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

Regards

--
Julian Anastasov <ja@ssi.bg>

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

* Re: [PATCH] ipvsadm: do not truncate ipv6 members of v4 services
  2014-09-10  6:38 ` Julian Anastasov
@ 2014-09-10  7:00   ` Jesper Dangaard Brouer
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2014-09-10  7:00 UTC (permalink / raw)
  To: Julian Anastasov; +Cc: Alex Gartrell, horms, lvs-devel, kernel-team, ps, brouer


On Wed, 10 Sep 2014 09:38:35 +0300 (EEST) Julian Anastasov <ja@ssi.bg> wrote:

> 	Jesper, I think you can now push all recent
> changes to the ipvsadm tree. This includes:
>
> ipvsadm: specify real server address family to netlink socket
> by Alex, from August 29
> 
> ipvsadm: restrict different address family
> ipvsadm: allow different address family in connection listing
> by me, from August 30
> 
> and finally this patch.

Sound good! -- Just applied an pushed patches to:
 https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/

Thanks every one!
-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

^ permalink raw reply	[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.