Re: [pve-devel] dhcp server

2014-07-27 Thread Alexandre DERUMIER
just tested with a ipv6 hostname, it's working fine

/usr/share/perl5/PVE/APIDaemon.pm

my $socket = IO::Socket::IP->new(
LocalAddr => $args{host} || undef,
LocalPort => $args{port} || 80,
Listen => SOMAXCONN,
Proto  => 'tcp',
ReuseAddr => 1) ||
die "unable to create socket - $@\n";


with 

/etc/hosts
2001:db8:a:f::2 kvmtest1 pvelocalhost


root@kvmtest1:~# netstat -anp|grep 8006
tcp6   0  0 2001:db8:a:f::2:8006:::*
LISTEN  32003/pveproxy

- Mail original - 

De: "Alexandre DERUMIER"  
À: "Dietmar Maurer"  
Cc: pve-devel@pve.proxmox.com 
Envoyé: Dimanche 27 Juillet 2014 10:12:01 
Objet: Re: [pve-devel] dhcp server 

>>That listens on both addresses (ipv4 and ipv6)? 

Michael said me that for listen on both ipv4 and ipv6 at the same time, we need 
to create 2 sockets. 

But I think that it should work if you listen on ipv4 or ipv6. 


(I don't known other impacts of dual ipv4 && ipv6 stack on host, with 
communications between deamon) 


- Mail original - 

De: "Dietmar Maurer"  
À: "Alexandre DERUMIER"  
Cc: "Michael Rasmussen" , pve-devel@pve.proxmox.com 
Envoyé: Samedi 26 Juillet 2014 15:53:58 
Objet: RE: [pve-devel] dhcp server 

> >>That sounds good (no changes needed) ;-) 
> 
> I have done some tests, it's working fine with ipv4, no regression. 

That listens on both addresses (ipv4 and ipv6)? 
___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] dhcp server

2014-07-27 Thread Alexandre DERUMIER
>>That listens on both addresses (ipv4 and ipv6)?

Michael said me that for listen on both ipv4 and ipv6 at the same time, we need 
to create 2 sockets.

But I think that it should work if you listen on ipv4 or ipv6.


(I don't known other impacts of dual ipv4 && ipv6 stack on host, with 
communications between deamon)


- Mail original - 

De: "Dietmar Maurer"  
À: "Alexandre DERUMIER"  
Cc: "Michael Rasmussen" , pve-devel@pve.proxmox.com 
Envoyé: Samedi 26 Juillet 2014 15:53:58 
Objet: RE: [pve-devel] dhcp server 

> >>That sounds good (no changes needed) ;-) 
> 
> I have done some tests, it's working fine with ipv4, no regression. 

That listens on both addresses (ipv4 and ipv6)? 
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel