Re: [Dnsmasq-discuss] Support of labels in --interface

2017-03-17 Thread Simon Kelley
That seems a good solution. Patch applied, with the man=page changes re-written and expanded. Cheers, Simon. On 14/03/17 15:11, Petr Menšík wrote: > Hi, > > I have prepared two patches with suggestion how to fix it. > > Patch 1 warns when a label is used for --interface in default mode. >

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-03-14 Thread Petr Menšík
Hi, I have prepared two patches with suggestion how to fix it. Patch 1 warns when a label is used for --interface in default mode. Patch 2 corrects manual page about real behavior of --interface with labels. Feel free to change it, I am not very good at complicated sentences in English. I think

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-23 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > But you can also be notified about interface changes via a netlink > socket, so you can cache the interface information. > See my reply to Petr: there is an option for that but it's not the default for historical reasons. Cheers, Simon.

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-23 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 22/02/17 21:52, Petr Menšík wrote: > I would suggest a new option then. For example > --bind-interfaces-exact. It would listen just like > --bind-interfaces, but would allow you to listen only on virbr0, > when ignoring any addresses with

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-23 Thread Brüns , Stefan
On Mi, 2017-02-22 at 20:51 +, Simon Kelley wrote: > > You can get the destination address for datagrams from the > > IP_PTKINFO auxiliary data: > > > > man 7 ip IP_PKTINFO (since Linux 2.2) Pass an IP_PKTINFO ancillary > > message that contains a pktinfo structure that supplies some > >

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-22 Thread Petr Menšík
Simon Kelley píše v Út 21. 02. 2017 v 18:50 +: > > Labels are now supported and dnsmasq is able to bind only to > > secondary IPv4 interface with different address. (Since 2.67!) It > > works well with --bind-interfaces. However it has inconsistent > > behavior with and without that option. >

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-22 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > You can get the destination address for datagrams from the > IP_PTKINFO auxiliary data: > > man 7 ip IP_PKTINFO (since Linux 2.2) Pass an IP_PKTINFO ancillary > message that contains a pktinfo structure that supplies some > information about the

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-21 Thread Brüns , Stefan
On Di, 2017-02-21 at 18:50 +, Simon Kelley wrote: > > > The different behavior is certainly undesirable, and can be fixed. > Unfortunately, I can only see how to easily fix it so that the > --bind-interfaces case works the same way as the default. > > The problem is that the sockets API

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-21 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15/02/17 17:38, Petr Mensik wrote: > Hi! > > I am new maintainer of dnsmasq package in RHEL. I am looking for > potential problems with upgrade from dnsmasq 2.66 to version 2.76. > And I have found something. Commit [1] changed behaviour of >

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-20 Thread Petr Mensik
16:59 PM Subject: Re: [Dnsmasq-discuss] Support of labels in --interface -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15/02/17 17:38, Petr Mensik wrote: > Hi! > Let's say my configuration is: 4: virbr0: > <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-17 Thread Simon Kelley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15/02/17 17:38, Petr Mensik wrote: > Hi! > Let's say my configuration is: 4: virbr0: > mtu 1500 qdisc noqueue state UP > group default qlen 1000 link/ether 52:54:00:2b:ee:d3 brd > ff:ff:ff:ff:ff:ff inet

[Dnsmasq-discuss] Support of labels in --interface

2017-02-15 Thread Petr Mensik
Hi! I am new maintainer of dnsmasq package in RHEL. I am looking for potential problems with upgrade from dnsmasq 2.66 to version 2.76. And I have found something. Commit [1] changed behaviour of --interface eth0:0 behavior. The first problem is, manual page is not updated. It tells you cannot