[Dnsmasq-discuss] why need to enumerate interfaces

yangtao yangtaoyours at 126.com
Fri Mar 5 01:38:26 UTC 2021




Hi,


Got it, thanks ver much!


Best Regards!
Tao









At 2021-03-04 19:46:36, "Matus UHLAR - fantomas via Dnsmasq-discuss" <dnsmasq-discuss at lists.thekelleys.org.uk> wrote:
>On 04.03.21 17:23, yangtao wrote:
>>Why do we call enumerate_interfaces and create_bound_listeners function?
>>I didn't understand the logical. Could anyone help me to understand it?
>
>you can have configuration specifying different behavior per interface.
>
>AFAIK on some systems you don't know which interface a packet cme from, if
>you have one socket listening on all interfaces. Therefore you need to
>create one socket per interface to know that.
>
>
>-- 
>Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
>Warning: I wish NOT to receive e-mail advertising to this address.
>Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
>I wonder how much deeper the ocean would be without sponges.
>
>_______________________________________________
>Dnsmasq-discuss mailing list
>Dnsmasq-discuss at lists.thekelleys.org.uk
>https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210305/153102ad/attachment.htm>


More information about the Dnsmasq-discuss mailing list