History log of /external/dnsmasq/src/option.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
328d1b448a782e9544004990cad7aaaaae58d364 08-May-2017 Lorenzo Colitti <lorenzo@google.com> Allow passing in a mark to use for listen sockets.

The mark is applied to the DNS and DHCP listen sockets. Client
sockets used to talk to DNS forwarders were already marked.
Both bound and wildcard sockets are marked, even though we only
use bound sockets.

The mark is passed in at startup instead of on a per-interface
basis because there is only one DHCP socket and it is created
before any interfaces are added.

Bug: 37778642
Test: "adb shell ss -tneiopan" shows expected mark
Change-Id: I3b99aa5b77963745715d52065b2119f54df17e8b
/external/dnsmasq/src/option.c
513aae2733f6a7fa18d564934a79875dd73bc0a0 25-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Improve address parsing/printing and support scoped addresses.

1. Add a parse_addr function that parses an IP address. This
simplifies the code and also supports scoped addresses.
2. Make prettyprint_addr use getnameinfo instead of inet_ntop
so it can support scoped addresses.
3. Modify the IPv6 address enumeration code to set the scope ID
only if the address is link-local, since scope IDs are only
meaningful for link-local addresses Also, we do not want to
think that two addresses are different if they differ only
in scope ID, because the kernel will treat them as if they are
the same.
4. Modify the address equality checks in sockaddr_isequal and
iface_check to check the scope ID as well.

Bug: 9580643
Change-Id: I84b6b94868e50d7f6c32148b673bed7c080a4456
/external/dnsmasq/src/option.c
5658bcb797978c3472335d93554405aba8236f66 20-Jan-2010 San Mehat <san@google.com> dnsmasq: Tweak for building on Android

Signed-off-by: San Mehat <san@google.com>
/external/dnsmasq/src/option.c
ffd68729961f7383f2e35494a03ccdef20f86c98 20-Jan-2010 San Mehat <san@google.com> dnsmasq: Direct import of version 2.51

Signed-off-by: San Mehat <san@google.com>
/external/dnsmasq/src/option.c