[libvirt] [PATCHv2 0/2] disable default gateway in IPv6 RA for isolated networks

2016-07-01 Thread Maxim Perevedentsev
;ra-param=*,0,0" (here, RA_interval=0 means default) to disable default gateway in RA. This patchset adds detection for "ra-param" in dnsmasq and sets "ra-param=*,0,0" for isolated network if dnsmasq supports it. Maxim Perevedentsev (2): Fix message about dnsmasq BIND

[libvirt] [PATCHv2 2/2] dnsmasq: disable IPv6 default gateway in RA for isolated networks

2016-07-01 Thread Maxim Perevedentsev
IPv6 RA always contains an implicit default route via the link-local address of the source of RA. This forces the guest to install a route via isolated network, which may disturb the guest's networking in case of multiple interfaces. More info in 013427e6e733f7a662f4e8a9c11f7dad4cd65e3f. The

[libvirt] [PATCHv2 1/2] Fix message about dnsmasq BINDTODEVICE capability.

2016-07-01 Thread Maxim Perevedentsev
--- src/util/virdnsmasq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virdnsmasq.c b/src/util/virdnsmasq.c index da3e603..d253f44 100644 --- a/src/util/virdnsmasq.c +++ b/src/util/virdnsmasq.c @@ -693,7 +693,7 @@ dnsmasqCapsSetFromBuffer(dnsmasqCapsPtr caps, const

Re: [libvirt] [PATCH 0/2] option to disable default gateway in IPv6 RA

2016-06-30 Thread Maxim Perevedentsev
INDTODEVICE - see dnsmasqCapsSetFromBuffer(). I'm guessing you based your addition on the existing code for DNSMASQ_DHCPv6_SUPPORT() and DNSMASQ_RA_SUPPORT(), but I think those were probably put in before the patches that added parsing of --help output to learn dnsmasq capabilities. OK -- Your sinc

[libvirt] [PATCH 1/2] dnsmasq: add option to disable IPv6 default gateway in RA

2016-06-29 Thread Maxim Perevedentsev
If no gateway is specified in RA the a guest will install a default route to link-local address of the source of RA (in this case, virbr*), which may disturb guest's networking e.g. if the 'expected' default route is through another interface. This patch adds an attribute 'ipv6noDefRoute=yes|no'

[libvirt] [PATCH 0/2] option to disable default gateway in IPv6 RA

2016-06-29 Thread Maxim Perevedentsev
;ra-param=*,0,0" (here, RA_interval=0 means default) to disable default gateway in RA. This patchset adds option to network xml and sets the above option to dnsmasq config if it is set to yes (default: no). Maxim Perevedentsev (2): dnsmasq: add option to disable IPv6 default gateway in

[libvirt] [PATCH 2/2] docs: add ipv6noDefRoute to schema and html.

2016-06-29 Thread Maxim Perevedentsev
--- docs/formatnetwork.html.in | 15 ++- docs/schemas/network.rng | 5 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/formatnetwork.html.in b/docs/formatnetwork.html.in index 1cea931..e710f25 100644 --- a/docs/formatnetwork.html.in +++

[libvirt] Question: forbid dnsmasq to install IPv6 default route

2016-06-16 Thread Maxim Perevedentsev
Would you accept patches related to 3rd solution? Looking forward to your replies. Thanks in advance! -- Your sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] util: set error if DAD is not finished

2015-10-29 Thread Maxim Perevedentsev
f your sysctl -a? Max DAD timeout should be rand() % net.ipv6.conf.default.router_solicitation_delay + net.ipv6.conf.default.dad_transmits * net.ipv6.neigh.default.retrans_time_ms I wonder whether my calculations were faulty or it is your specific configuration. -- Your sincerely, Maxim Pereved

[libvirt] [PATCHv4 2/2] netlink: add support for multi-part netlink messages.

2015-10-20 Thread Maxim Perevedentsev
Such messages do not have NLMSG_ERROR or NLMSG_DONE type but they are valid responses. We test 'multi-partness' by looking for NLM_F_MULTI flag. --- Difference to v1: fixed comment style. src/util/virnetlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[libvirt] [PATCHv4 0/2] Added waiting for DAD to finish for bridge address.

2015-10-20 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Update v2: fixed syntax. Update v3: moved to virnetdev. Update v4: added DAD timeout, minor fixes. Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. netlink: add support for multi-part

[libvirt] [PATCHv4 1/2] network: added waiting for DAD to finish for bridge address.

2015-10-20 Thread Maxim Perevedentsev
This is a fix for commit db488c79173b240459c7754f38c3c6af9b432970 dnsmasq main process exits without waiting for DAD, this is dnsmasq daemon's task. So we periodically poll the kernel using netlink and check whether there are any IPv6 addresses assigned to bridge which have 'tentative' state.

Re: [libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-10-19 Thread Maxim Perevedentsev
On 10/16/2015 08:13 PM, Laine Stump wrote: On 10/16/2015 12:51 PM, Maxim Perevedentsev wrote: On 10/15/2015 09:03 PM, Laine Stump wrote: This loop *really* bothers me, because there is no failsafe to terminate it if we never get positive notification that DAD has completed. This would lock

Re: [libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-10-19 Thread Maxim Perevedentsev
emselves are external structures. We do not want to destroy them, just remove pointers. -- Your sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-10-16 Thread Maxim Perevedentsev
ement. Ok. I wanted to work-around the case if we do not have libnl installed. Once these 3 issues are dealt with, I think we can (finally) push this. I'll try to fix it ASAP. Thank you. -- Your sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://ww

[libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-09-29 Thread Maxim Perevedentsev
This is a fix for commit db488c79173b240459c7754f38c3c6af9b432970 dnsmasq main process exits without waiting for DAD, this is dnsmasq daemon's task. So we periodically poll the kernel using netlink and check whether there are any IPv6 addresses assigned to bridge which have 'tentative' state.

[libvirt] [PATCHv3 0/2] Added waiting for DAD to finish for bridge address.

2015-09-29 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Update v2: fixed syntax. Update v3: moved to virnetdev. Resend: These patches were ignored and buried long ago :-( Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. netlink: add

[libvirt] [PATCHv3 2/2] netlink: add support for multi-part netlink messages.

2015-09-29 Thread Maxim Perevedentsev
Such messages do not have NLMSG_ERROR or NLMSG_DONE type but they are valid responses. We test 'multi-partness' by looking for NLM_F_MULTI flag. --- Difference to v1: fixed comment style. src/util/virnetlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [libvirt] [PATCHv3 0/2] Added waiting for DAD to finish for bridge address.

2015-09-07 Thread Maxim Perevedentsev
Hello everyone! I'd like to remind I'm still waiting for comments on these patches. On 08/26/2015 01:28 PM, Maxim Perevedentsev wrote: Thank you! Waiting in hope you have not forgotten. :) On 08/17/2015 10:11 PM, Laine Stump wrote: On 08/17/2015 10:48 AM, Maxim Perevedentsev wrote: Hello

Re: [libvirt] [PATCHv3 0/2] Added waiting for DAD to finish for bridge address.

2015-08-26 Thread Maxim Perevedentsev
Thank you! Waiting in hope you have not forgotten. :) On 08/17/2015 10:11 PM, Laine Stump wrote: On 08/17/2015 10:48 AM, Maxim Perevedentsev wrote: Hello guys! Just a humble reminder of pending request :-) Any suggestions about patches maybe? Sorry for the delay. Pretty much everybody

Re: [libvirt] [PATCHv3 0/2] Added waiting for DAD to finish for bridge address.

2015-08-17 Thread Maxim Perevedentsev
Hello guys! Just a humble reminder of pending request :-) Any suggestions about patches maybe? On 08/10/2015 08:08 PM, Maxim Perevedentsev wrote: This is a fix for commit db488c79173b240459c7754f38c3c6af9b432970 dnsmasq main process which is relied on when waiting for DAD to complete exits

Re: [libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-08-11 Thread Maxim Perevedentsev
On 08/11/2015 11:14 AM, Simon Kelley wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/08/15 22:29, Laine Stump wrote: On 08/10/2015 01:08 PM, Maxim Perevedentsev wrote: This is a fix for commit db488c79173b240459c7754f38c3c6af9b432970 dnsmasq main process exits without waiting

Re: [libvirt] [PATCHv3 2/2] Add support for multi-part netlink messages.

2015-08-11 Thread Maxim Perevedentsev
On 08/11/2015 12:15 AM, Laine Stump wrote: On 08/10/2015 01:08 PM, Maxim Perevedentsev wrote: Such messages do not have NLMSG_ERROR or NLMSG_DONE type but they are valid responses. We test 'multi-partness' by looking for NLM_F_MULTI flag. --- src/util/virnetlink.c | 4 +++- 1 file changed

[libvirt] [PATCHv3 1/2] network: added waiting for DAD to finish for bridge address.

2015-08-10 Thread Maxim Perevedentsev
count) +ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); int virNetDevSetMAC(const char *ifname, -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCHv3 0/2] Added waiting for DAD to finish for bridge address.

2015-08-10 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Update v2: fixed syntax. Update v3: moved to virnetdev. Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. Add support for multi-part netlink messages. src/libvirt_private.syms

[libvirt] [PATCHv3 2/2] Add support for multi-part netlink messages.

2015-08-10 Thread Maxim Perevedentsev
-nlmsg_flags NLM_F_MULTI)) +goto malformed_resp; } return result; -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 1/2] network: added waiting for DAD to finish for bridge address.

2015-08-10 Thread Maxim Perevedentsev
On 08/04/2015 06:18 PM, Dmitry Guryanov wrote: On 07/31/2015 07:35 PM, Maxim Perevedentsev wrote: +/* return after DAD finishes for all known IPv6 addresses or an error */ +static int +networkWaitDadFinish(virNetworkObjPtr network) I'd put this function to src/util/virnetlink.c Then we

[libvirt] [PATCHv2 0/2] Added waiting for DAD to finish for bridge address.

2015-08-05 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Update v2: fixed syntax. Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. Add support for multi-part netlink messages. src/network/bridge_driver.c | 113

[libvirt] [PATCHv2 1/2] network: added waiting for DAD to finish for bridge address.

2015-08-05 Thread Maxim Perevedentsev
) +goto err4; + +/* DAD has happened, dnsmasq is now bound to the * bridge's IPv6 address, so we can now set the dummy tun down. */ if (tapfd = 0) { -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir

[libvirt] [PATCHv2 2/2] Add support for multi-part netlink messages.

2015-08-05 Thread Maxim Perevedentsev
messages. */ +if (!(resp-nlmsg_flags NLM_F_MULTI)) +goto malformed_resp; } return result; -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 2/2] netlink: add support for multi-part netlink messages.

2015-07-31 Thread Maxim Perevedentsev
-nlmsg_flags NLM_F_MULTI)) +goto malformed_resp; } return result; -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 1/2] network: added waiting for DAD to finish for bridge address.

2015-07-31 Thread Maxim Perevedentsev
to wait for it ourselves. + */ +if (v6present networkWaitDadFinish(network) 0) +goto err4; + +/* DAD has happened, dnsmasq is now bound to the * bridge's IPv6 address, so we can now set the dummy tun down. */ if (tapfd = 0) { -- Sincerely, Maxim Perevedentsev

[libvirt] [PATCH 2/2] netlink: add support for multi-part netlink messages.

2015-07-31 Thread Maxim Perevedentsev
-nlmsg_flags NLM_F_MULTI)) +goto malformed_resp; } return result; -- Sincerely, Maxim Perevedentsev -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 0/2] Added waiting for DAD to finish for bridge address.

2015-07-31 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. netlink: add support for multi-part netlink messages. src/network/bridge_driver.c | 109

[libvirt] [PATCH 1/2] network: added waiting for DAD to finish for bridge address.

2015-07-31 Thread Maxim Perevedentsev
to wait for it ourselves. + */ +if (v6present networkWaitDadFinish(network) 0) +goto err4; + +/* DAD has happened, dnsmasq is now bound to the * bridge's IPv6 address, so we can now set the dummy tun down. */ if (tapfd = 0) { -- Sincerely, Maxim Perevedentsev

[libvirt] [PATCH 0/2] Added waiting for DAD to finish for bridge address.

2015-07-31 Thread Maxim Perevedentsev
and throws an error. So the patch 2/2 adds multi-part nelink response support. Maxim Perevedentsev (2): network: added waiting for DAD to finish for bridge address. netlink: add support for multi-part netlink messages. src/network/bridge_driver.c | 109