[Dnsmasq-discuss] why need to enumerate interfaces

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Mar 4 11:46:36 UTC 2021


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.



More information about the Dnsmasq-discuss mailing list