History log of /external/mdnsresponder/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a413bce2d767d5b0810016f9b49a69c1e4be2b2f 26-Mar-2014 Dave Platt <dplatt@google.com> am 87c0671e: am c92617cc: Close FILE* handles after consuming contents

* commit '87c0671e93b1c4304b2fc96caa7be1b28e523f4a':
Close FILE* handles after consuming contents
87c0671e93b1c4304b2fc96caa7be1b28e523f4a 26-Mar-2014 Dave Platt <dplatt@google.com> am c92617cc: Close FILE* handles after consuming contents

* commit 'c92617ccfaab73df4f17f32d470f9856f3fb094b':
Close FILE* handles after consuming contents
c92617ccfaab73df4f17f32d470f9856f3fb094b 26-Mar-2014 Dave Platt <dplatt@google.com> Close FILE* handles after consuming contents

Two more file-descriptor leaks. Code was using fopen() to get a
handle, but was never calling fclose() once the file's contents had
been read and processed.

Bug: 13490553

Manual cherrypick of change ID I8c7dbf9d913d6363a14bb10bb5087836181eb1c5
from master.

Change-Id: I23336553462c5033207a8fc3b69bf692291a067d
DNSPosix/mDNSPosix.c
DNSPosix/mDNSUNP.c
80bfe81176217e3b2c6a8d93d686435cb166de6c 26-Mar-2014 Dave Platt <dplatt@google.com> Merge "Close FILE* handles after consuming contents"
568349a095d72dee33667a82e3a24114019a33ae 25-Mar-2014 Alex Ray <aray@google.com> am b25c2507: Merge "mdnsd: build static executable"

* commit 'b25c2507ecc3f674e3b4f0a770acf9ad8fd874d0':
mdnsd: build static executable
b25c2507ecc3f674e3b4f0a770acf9ad8fd874d0 25-Mar-2014 Alex Ray <aray@google.com> Merge "mdnsd: build static executable"
42215f99e0bec395497a4887b734f636d06659d4 25-Mar-2014 Alex Ray <aray@google.com> mdnsd: build static executable

mdnsd is used in the fastbootd image, which isn't loaded with dynamic libraries.

Change-Id: I082638163551d9042ec37b51d856463d801074f1
ndroid.mk
54bbef089d469dba7032c9cefa703647a0e917f1 25-Mar-2014 Dave Platt <dplatt@google.com> Close FILE* handles after consuming contents

Two more file-descriptor leaks. Code was using fopen() to get a
handle, but was never calling fclose() once the file's contents had
been read and processed.

Bug: 13490553
Change-Id: I8c7dbf9d913d6363a14bb10bb5087836181eb1c5
DNSPosix/mDNSPosix.c
DNSPosix/mDNSUNP.c
5a2b39bfe985afa3fd77f36cdffe7ef417a7a005 20-Mar-2014 Alex Ray <aray@google.com> am 89b3a3b8: Merge "libmdnssd: build static version"

* commit '89b3a3b80fc9ba0377dc55c69125eceb0d25dad3':
libmdnssd: build static version
89b3a3b80fc9ba0377dc55c69125eceb0d25dad3 20-Mar-2014 Alex Ray <aray@google.com> Merge "libmdnssd: build static version"
b3d17cb51805748d57004390fce8baff1afa1a19 19-Mar-2014 Alex Ray <aray@google.com> libmdnssd: build static version

fastbootd uses libmdnssd for service discovery, so to statically build fastbootd
we need a static build of libmdnssd.

Change-Id: Iabc2b8d06a0fe32203cfa768ccb213fcd2bb1ae7
ndroid.mk
9ea4376e16e104a089049fdc94360eb859ec4c66 19-Mar-2014 Dave Platt <dplatt@google.com> am fd3a19f6: (-s ours) Merge "Fix mDNS socket leak during network configuration changes"

* commit 'fd3a19f610725b8b785635357a83fe6bc6fdaabf':
Fix mDNS socket leak during network configuration changes
fd3a19f610725b8b785635357a83fe6bc6fdaabf 19-Mar-2014 Dave Platt <dplatt@google.com> Merge "Fix mDNS socket leak during network configuration changes"
20faaf7ea48a2c6ce433d3d13bf141ce939d4eeb 19-Mar-2014 Dave Platt <dplatt@google.com> Fix mDNS socket leak during network configuration changes

Several rather important close() calls were embedded within
assert() macros. Not a good idea, as the macros don't compile
into anything at all in non-debug builds, and the close() calls
disappear entirely. This could eventually lead to failure of
the mDNS daemon when its file-descriptor table fills up with
orphans.

Manual cherry-pick from internal branch

Bug: 13490553

Change-Id: Iac3e577fb33616b768bc2c29841d03128676cbbb
DNSPosix/Responder.c
DNSPosix/mDNSPosix.c
DNSPosix/mDNSUNP.c
f48f8a2e3417f93bc1f45930dbf9c4ea7523523d 19-Mar-2014 Dave Platt <dplatt@google.com> Fix mDNS socket leak during network configuration changes

Several rather important close() calls were embedded within
assert() macros. Not a good idea, as the macros don't compile
into anything at all in non-debug builds, and the close() calls
disappear entirely. This could eventually lead to failure of
the mDNS daemon when its file-descriptor table fills up with
orphans.

Bug: 13490553
Change-Id: I5978c055e8475d8f5be7e0242b80593b45ed71a1
DNSPosix/Responder.c
DNSPosix/mDNSPosix.c
DNSPosix/mDNSUNP.c
2fd068f98fa215f2681ddbe89fd7404d53218be3 20-Feb-2014 Christopher Lane <lanechr@google.com> Always use SO_REUSEADDR, never SO_REUSEPORT

We need to build mdnsd for 3.4.x and 3.10 while only using one set of kernel
headers, so for 3.4.x SO_REUSEPORT is set in the headers but isn't actually
supported in the kernel. Since this is UDP, SO_REUSEPORT doesn't get much over
SO_REUSEADDR, so just always use SO_REUSEADDR.

Bug: 12995869
Change-Id: Idce363c3bb3b53f7f4bd3694a2d4f6350a981e0c
DNSPosix/mDNSPosix.c
c46f53f5e072f23051c4eedef730386f7634dc11 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: I3aaea99b705b753ce78604ec5e5f38aabef011de
ndroid.mk
8d61c6ee30ea24755dfd111fb497c0533c0ff461 11-Jul-2012 Nick Kralevich <nnk@google.com> Don't call memcpy() with size > src

FORTIFY_SOURCE detected code of the form

char foo[10];
char bar[20];
memcpy(bar, foo, 20);

this code has a read buffer overflow, reading more data
from foo than it contains.

Change-Id: I7b85a2788763a839ce66a37ba84d597167c4a078
DNSPosix/mDNSUNP.c
cf36684dd6ea25b2490317f2f76d2586b4c3e834 12-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Fix a typo in a comment.

Change-Id: I44cfb91e020160828ab202499180c8257bd31e1e
DNSShared/dnssd_clientstub.c
afc86e3216439a9437ea54905853275111eac4e2 06-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Reduce MDNS logging

If it's compiled with no debugging turned on we should not log all
the info and warning and stuff.

Change-Id: Ifacfeca81d24a8a542e3ce2eb0684643eb35e166
ndroid.mk
DNSPosix/mDNSPosix.c
DNSShared/PlatformCommon.c
DNSShared/dns_sd.h
DNSShared/dnssd_clientstub.c
DNSShared/dnssd_ipc.h
DNSShared/uds_daemon.c
dd52342e088715929196886494c5055f9186d5c3 29-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Some fixes for Android

- Lets us not start as root and control who we switch to - switching
to "nobody" prevents us from opening sockets!
- Ratches down the debug output - packet debuggins is very verbose
- Removes some random debugging I'd added

Change-Id: I6d1acf9653dbf0d2c46f7e6081672f26982ffad4
ndroid.mk
lients/ClientCommon.c
lients/ClientCommon.h
lients/Makefile
lients/ReadMe.txt
lients/dns-sd.c
DNSPosix/PosixDaemon.c
DNSPosix/mDNSPosix.c
DNSPosix/mDNSPosix.h
DNSPosix/mDNSUNP.c
DNSPosix/mDNSUNP.h
DNSShared/PlatformCommon.c
DNSShared/dnssd_clientstub.c
DNSShared/dnssd_ipc.h
DNSShared/mDNSDebug.c
DNSShared/uds_daemon.c
47e4cebad7397422144bb03a21f3f7682c062c4a 27-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Initial code submission for mDnsSd

AKA known as Bonjour.

Change-Id: I7ddf2238deaebe1bdd4c5da83b5ec9038ebec5c6
ICENSE
akefile
rivateDNS.txt
EADME.txt
DNSCore/DNSCommon.c
DNSCore/DNSCommon.h
DNSCore/DNSDigest.c
DNSCore/Implementer Notes.txt
DNSCore/mDNS.c
DNSCore/mDNSDebug.h
DNSCore/mDNSEmbeddedAPI.h
DNSCore/uDNS.c
DNSCore/uDNS.h
DNSPosix/Client.c
DNSPosix/ExampleClientApp.c
DNSPosix/ExampleClientApp.h
DNSPosix/Identify.c
DNSPosix/Makefile
DNSPosix/NetMonitor.c
DNSPosix/PosixDaemon.c
DNSPosix/ProxyResponder.c
DNSPosix/ReadMe.txt
DNSPosix/Responder.c
DNSPosix/Services.txt
DNSPosix/libnss_mdns.8
DNSPosix/mDNSPosix.c
DNSPosix/mDNSPosix.h
DNSPosix/mDNSUNP.c
DNSPosix/mDNSUNP.h
DNSPosix/mdnsd.sh
DNSPosix/nss_ReadMe.txt
DNSPosix/nss_mdns.c
DNSPosix/nss_mdns.conf
DNSPosix/nss_mdns.conf.5
DNSPosix/parselog.py
DNSResponder.sln
DNSShared/CommonServices.h
DNSShared/DebugServices.c
DNSShared/DebugServices.h
DNSShared/GenLinkedList.c
DNSShared/GenLinkedList.h
DNSShared/PlatformCommon.c
DNSShared/PlatformCommon.h
DNSShared/dns-sd.1
DNSShared/dns_sd.h
DNSShared/dnsextd.8
DNSShared/dnsextd.c
DNSShared/dnsextd.conf
DNSShared/dnsextd.h
DNSShared/dnsextd_lexer.l
DNSShared/dnsextd_parser.y
DNSShared/dnssd_clientlib.c
DNSShared/dnssd_clientshim.c
DNSShared/dnssd_clientstub.c
DNSShared/dnssd_ipc.c
DNSShared/dnssd_ipc.h
DNSShared/mDNS.1
DNSShared/mDNSDebug.c
DNSShared/mDNSResponder.8
DNSShared/uds_daemon.c
DNSShared/uds_daemon.h
c9efbc19057449cc86923b3eb9b30256de9dcee7 20-Mar-2012 Anatol Pomazau <anatol@google.com> Initial empty repository