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/dnsmasq.h
|
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/dnsmasq.h
|
b265d6f2a9a7e2aad83bb0845aab56474d09a3cf |
|
29-Oct-2015 |
Roshan Pius <rpius@google.com> |
dnsmasq: Disable DNS server updation via STDIN on Brillo. Brillo starts dnsmasq with STDIN redirected to /dev/null and we don't need the feature to update the DNS servers via STDIN. So, disabling the feature (commit id: 33b34445) for Brillo devices. BUG: 25193399 TEST: Manual tests below: 1. Bootstrapped Edison and connected to a Wifi AP. 2. Verified the `top` output to ensure that dnsmasq wasn't hogging CPU. 3. Verified via `strace` that dnsmasq is no longer listening to /dev/null. Change-Id: Ibc7c671a933904471b76ac6ce20f8490c9b0856c
/external/dnsmasq/src/dnsmasq.h
|
68eff53e7ed9df06f194478930f39b31c7a32458 |
|
26-Aug-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Allow configuring a socket mark for DNS packets. This allows dnsmasq to send DNS queries on a non-default network (e.g., the DUN APN). We add support for a mark instead of using existing code to bind DNS servers to interfaces because: 1. Marks are more flexible, and we use them elsewhere. 2. The existing code to bind DNS servers to interfaces causes the DNS socket to be bound to a constant port, which exposes us to a Kaminsky attack. Bug: 16357676 Change-Id: I8933b6de198a92c2aaf0291931ace8966ddba275
/external/dnsmasq/src/dnsmasq.h
|
41cd7ed80eb5e97ef9893633d05f0877da7d6d0c |
|
11-Dec-2012 |
Robert Greenwalt <rgreenwalt@google.com> |
Only listen on the given interfaces. Stop being a public dns forwarder on our external interfaces. bug:7530468 Change-Id: Ic94cd66e66371de4fcc54f53b9f267f6611804b8
/external/dnsmasq/src/dnsmasq.h
|
33b344454b95ed99bad7d3fe4d493870923deaf6 |
|
20-Jan-2010 |
San Mehat <san@google.com> |
dnsmasq: Allow runtime changing of DNS servers via STDIN Signed-off-by: San Mehat <san@google.com>
/external/dnsmasq/src/dnsmasq.h
|
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/dnsmasq.h
|
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/dnsmasq.h
|