project/mdnsd.git
4 years agocache: cache rdata of SRV-records as well
Steven Barth [Tue, 28 Oct 2014 10:57:09 +0000 (11:57 +0100)]
cache: cache rdata of SRV-records as well

Signed-off-by: Steven Barth <steven@midlink.org>
4 years agoUse monotonic clock for timeouts
Steven Barth [Tue, 28 Oct 2014 08:57:24 +0000 (09:57 +0100)]
Use monotonic clock for timeouts

Signed-off-by: Steven Barth <steven@midlink.org>
4 years agoAdd query ubus call
Steven Barth [Sun, 26 Oct 2014 19:00:21 +0000 (20:00 +0100)]
Add query ubus call

Signed-off-by: Steven Barth <steven@midlink.org>
4 years agoadd a basic cache refresh logic
John Crispin [Thu, 4 Sep 2014 20:37:41 +0000 (22:37 +0200)]
add a basic cache refresh logic

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd a iface pointer to services and records
John Crispin [Thu, 4 Sep 2014 20:35:48 +0000 (22:35 +0200)]
add a iface pointer to services and records

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoentry->service
John Crispin [Thu, 4 Sep 2014 19:23:07 +0000 (21:23 +0200)]
entry->service

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoprint ttl when receiving a PTR record
John Crispin [Thu, 4 Sep 2014 19:01:48 +0000 (21:01 +0200)]
print ttl when receiving a PTR record

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agobasic support for the cache flush bit
John Crispin [Thu, 4 Sep 2014 18:26:43 +0000 (20:26 +0200)]
basic support for the cache flush bit

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd src ip validation
John Crispin [Thu, 4 Sep 2014 17:34:18 +0000 (19:34 +0200)]
add src ip validation

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agosilently drop unicast questions that dont originate from port 5353
John Crispin [Thu, 4 Sep 2014 15:44:46 +0000 (17:44 +0200)]
silently drop unicast questions that dont originate from port 5353

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agopropagate sockaddr and port form the receive function to the parser
John Crispin [Thu, 4 Sep 2014 15:42:21 +0000 (17:42 +0200)]
propagate sockaddr and port form the receive function to the parser

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agofix free after use on shutdown
John Crispin [Tue, 2 Sep 2014 19:25:19 +0000 (21:25 +0200)]
fix free after use on shutdown

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd good bye messages
John Crispin [Tue, 2 Sep 2014 18:37:24 +0000 (20:37 +0200)]
add good bye messages

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd SO_BINDTODEVICE support
John Crispin [Tue, 2 Sep 2014 18:20:10 +0000 (20:20 +0200)]
add SO_BINDTODEVICE support

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agosaner debug output
John Crispin [Tue, 2 Sep 2014 18:15:43 +0000 (20:15 +0200)]
saner debug output

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoipv6 cleanup
John Crispin [Tue, 2 Sep 2014 14:41:51 +0000 (16:41 +0200)]
ipv6 cleanup

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agopropagate unicast bit
John Crispin [Tue, 2 Sep 2014 13:23:57 +0000 (15:23 +0200)]
propagate unicast bit

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agonicer debug output on rx
John Crispin [Tue, 2 Sep 2014 13:15:23 +0000 (15:15 +0200)]
nicer debug output on rx

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd unicast listener sockets
John Crispin [Tue, 2 Sep 2014 12:44:16 +0000 (14:44 +0200)]
add unicast listener sockets

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agointerface.c cleanup
John Crispin [Tue, 2 Sep 2014 12:24:12 +0000 (14:24 +0200)]
interface.c cleanup

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoremove debug code
John Crispin [Sat, 30 Aug 2014 11:55:03 +0000 (13:55 +0200)]
remove debug code

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agovalidate incoming interface
John Crispin [Sat, 30 Aug 2014 11:17:02 +0000 (13:17 +0200)]
validate incoming interface

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agosane error message when read fails
John Crispin [Sat, 30 Aug 2014 10:24:52 +0000 (12:24 +0200)]
sane error message when read fails

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd pktinfo to rx path
John Crispin [Fri, 29 Aug 2014 19:28:45 +0000 (21:28 +0200)]
add pktinfo to rx path

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd -4 and -6 options
John Crispin [Fri, 29 Aug 2014 19:24:35 +0000 (21:24 +0200)]
add -4 and -6 options

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoload service info from procd
John Crispin [Fri, 29 Aug 2014 12:02:31 +0000 (14:02 +0200)]
load service info from procd

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agosplit the service_load() function into 2. this allows us to reuse the parsing
John Crispin [Fri, 29 Aug 2014 11:53:11 +0000 (13:53 +0200)]
split the service_load() function into 2. this allows us to reuse the parsing
code when reading services via ubus

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agochange the service json format this allows one instance to register multiple services...
John Crispin [Fri, 29 Aug 2014 11:42:20 +0000 (13:42 +0200)]
change the service json format this allows one instance to register multiple services of the same kind but with different ports

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agosend unsolicitated answers when a new service appears
John Crispin [Fri, 29 Aug 2014 07:01:31 +0000 (09:01 +0200)]
send unsolicitated answers when a new service appears

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoremove some debug code
John Crispin [Thu, 28 Aug 2014 10:43:22 +0000 (12:43 +0200)]
remove some debug code

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agodont delete records but set ttl to 1
John Crispin [Thu, 28 Aug 2014 10:40:12 +0000 (12:40 +0200)]
dont delete records but set ttl to 1

-> 10.2.  Announcements to Flush Outdated Cache Entries

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd the rfc
John Crispin [Thu, 28 Aug 2014 10:29:41 +0000 (12:29 +0200)]
add the rfc

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd goodbye messages when service disappear
John Crispin [Thu, 28 Aug 2014 10:29:01 +0000 (12:29 +0200)]
add goodbye messages when service disappear

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agomore ttl related changes. prereq for goodbye messages
John Crispin [Thu, 28 Aug 2014 10:14:37 +0000 (12:14 +0200)]
more ttl related changes. prereq for goodbye messages

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agodns_add_answer() now has a ttl parameter
John Crispin [Thu, 28 Aug 2014 08:15:21 +0000 (10:15 +0200)]
dns_add_answer() now has a ttl parameter

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoproperly announce all ips of an interface when asked
John Crispin [Thu, 28 Aug 2014 08:01:33 +0000 (10:01 +0200)]
properly announce all ips of an interface when asked

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoadd ipv6 support
John Crispin [Thu, 28 Aug 2014 02:20:58 +0000 (04:20 +0200)]
add ipv6 support

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agofix potential null pointer deref when packets are forged
John Crispin [Wed, 27 Aug 2014 17:51:07 +0000 (19:51 +0200)]
fix potential null pointer deref when packets are forged

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agofix potential buffer overflow when txt records are forged
John Crispin [Wed, 27 Aug 2014 17:49:04 +0000 (19:49 +0200)]
fix potential buffer overflow when txt records are forged

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoabort the reply parsing if an error is encountered
John Crispin [Wed, 27 Aug 2014 16:10:20 +0000 (18:10 +0200)]
abort the reply parsing if an error is encountered

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agogracefully exit if the cmdline is bogus
John Crispin [Wed, 27 Aug 2014 14:09:08 +0000 (16:09 +0200)]
gracefully exit if the cmdline is bogus

Signed-off-by: John Crispin <blogic@openwrt.org>
4 years agoremove now unused service-types index
John Crispin [Fri, 27 Jun 2014 01:07:17 +0000 (02:07 +0100)]
remove now unused service-types index

Signed-off-by: John Crispin <blogic@openwrt.org>
5 years agofix entry duplication bug
John Crispin [Wed, 25 Jun 2014 03:06:54 +0000 (04:06 +0100)]
fix entry duplication bug

Signed-off-by: John Crispin <blogic@openwrt.org>
5 years agofix off by one in record find code
John Crispin [Wed, 25 Jun 2014 02:32:22 +0000 (03:32 +0100)]
fix off by one in record find code

Signed-off-by: John Crispin <blogic@openwrt.org>
5 years agofix use after free
John Crispin [Wed, 25 Jun 2014 01:09:02 +0000 (02:09 +0100)]
fix use after free

Signed-off-by: John Crispin <blogic@openwrt.org>
5 years agoremove linux specific includes
Felix Fietkau [Wed, 25 Jun 2014 08:02:11 +0000 (10:02 +0200)]
remove linux specific includes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomdns: remove dependencies on asm/byteorder.h, fix constant endian swap initialization
Felix Fietkau [Wed, 25 Jun 2014 08:00:25 +0000 (10:00 +0200)]
mdns: remove dependencies on asm/byteorder.h, fix constant endian swap initialization

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice.c: remove unused service_attr_list
Felix Fietkau [Wed, 25 Jun 2014 07:58:13 +0000 (09:58 +0200)]
service.c: remove unused service_attr_list

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agorename set_interfaces to set_config, more stuff can be added here
Felix Fietkau [Wed, 11 Jun 2014 14:58:19 +0000 (16:58 +0200)]
rename set_interfaces to set_config, more stuff can be added here

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoallow starting without an active interface
Felix Fietkau [Wed, 11 Jun 2014 14:40:38 +0000 (16:40 +0200)]
allow starting without an active interface

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoadd support for dynamic reconfiguration of interfaces
Felix Fietkau [Wed, 11 Jun 2014 14:40:24 +0000 (16:40 +0200)]
add support for dynamic reconfiguration of interfaces

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agofix segfault while dumping records
Felix Fietkau [Mon, 9 Jun 2014 22:42:10 +0000 (00:42 +0200)]
fix segfault while dumping records

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agosimplify memory management for dns answers: use a blob_buf to cache entries
Felix Fietkau [Mon, 9 Jun 2014 22:35:52 +0000 (00:35 +0200)]
simplify memory management for dns answers: use a blob_buf to cache entries

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agouse lookup array for dns_type_string()
Felix Fietkau [Mon, 9 Jun 2014 22:11:50 +0000 (00:11 +0200)]
use lookup array for dns_type_string()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoreuse mdns_buf for cache_answer()
Felix Fietkau [Mon, 9 Jun 2014 22:07:49 +0000 (00:07 +0200)]
reuse mdns_buf for cache_answer()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomove signal_setup() to main.c
Felix Fietkau [Mon, 9 Jun 2014 22:00:08 +0000 (00:00 +0200)]
move signal_setup() to main.c

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomake iface_name static
Felix Fietkau [Mon, 9 Jun 2014 21:58:46 +0000 (23:58 +0200)]
make iface_name static

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoclean up hostname handling, make service_name() static
Felix Fietkau [Mon, 9 Jun 2014 21:58:10 +0000 (23:58 +0200)]
clean up hostname handling, make service_name() static

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agofix excessive stack usage
Felix Fietkau [Mon, 9 Jun 2014 21:40:59 +0000 (23:40 +0200)]
fix excessive stack usage

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agofix a few format string bugs
Felix Fietkau [Mon, 9 Jun 2014 21:34:24 +0000 (23:34 +0200)]
fix a few format string bugs

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: simplify and remove more code duplication
Felix Fietkau [Mon, 9 Jun 2014 21:14:53 +0000 (23:14 +0200)]
service: simplify and remove more code duplication

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: get rid of some code duplication
Felix Fietkau [Mon, 9 Jun 2014 21:08:55 +0000 (23:08 +0200)]
service: get rid of some code duplication

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: free the blob_buf on exit
Felix Fietkau [Mon, 9 Jun 2014 21:06:38 +0000 (23:06 +0200)]
service: free the blob_buf on exit

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoremove a few TODO items
Felix Fietkau [Mon, 9 Jun 2014 21:05:59 +0000 (23:05 +0200)]
remove a few TODO items

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomake the "records" avl tree static
Felix Fietkau [Mon, 9 Jun 2014 20:49:08 +0000 (22:49 +0200)]
make the "records" avl tree static

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agorename mdns_add_records to cache_dump_records and move it to cache.c
Felix Fietkau [Mon, 9 Jun 2014 20:46:54 +0000 (22:46 +0200)]
rename mdns_add_records to cache_dump_records and move it to cache.c

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoremove unused avl tree hosts
Felix Fietkau [Mon, 9 Jun 2014 20:37:55 +0000 (22:37 +0200)]
remove unused avl tree hosts

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agostore ip address as struct in_addr instead of a string
Felix Fietkau [Mon, 9 Jun 2014 20:34:30 +0000 (22:34 +0200)]
store ip address as struct in_addr instead of a string

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomake interface_socket_setup static
Felix Fietkau [Mon, 9 Jun 2014 20:20:33 +0000 (22:20 +0200)]
make interface_socket_setup static

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomove rdata_buffer to cache_answer()
Felix Fietkau [Mon, 9 Jun 2014 19:46:25 +0000 (21:46 +0200)]
move rdata_buffer to cache_answer()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoclean up interfaces on exit
Felix Fietkau [Mon, 9 Jun 2014 19:44:30 +0000 (21:44 +0200)]
clean up interfaces on exit

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomove interface connect/read handling to interface.c
Felix Fietkau [Mon, 9 Jun 2014 19:43:06 +0000 (21:43 +0200)]
move interface connect/read handling to interface.c

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocall announce_free from interface_free
Felix Fietkau [Mon, 9 Jun 2014 19:35:47 +0000 (21:35 +0200)]
call announce_free from interface_free

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomove dns packet processing to dns.c
Felix Fietkau [Mon, 9 Jun 2014 19:23:59 +0000 (21:23 +0200)]
move dns packet processing to dns.c

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: add support for scanning on multiple interfaces
Felix Fietkau [Mon, 9 Jun 2014 19:15:19 +0000 (21:15 +0200)]
cache: add support for scanning on multiple interfaces

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agomove announce state to struct interface
Felix Fietkau [Mon, 9 Jun 2014 19:13:38 +0000 (21:13 +0200)]
move announce state to struct interface

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agouse struct interface internally instead of struct uloop_fd
Felix Fietkau [Mon, 9 Jun 2014 19:09:33 +0000 (21:09 +0200)]
use struct interface internally instead of struct uloop_fd

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoinitial code refactoring to prepare for adding dynamic interface support
Felix Fietkau [Mon, 9 Jun 2014 18:38:27 +0000 (20:38 +0200)]
initial code refactoring to prepare for adding dynamic interface support

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoubus: implement the reload command
Felix Fietkau [Thu, 5 Jun 2014 13:30:13 +0000 (15:30 +0200)]
ubus: implement the reload command

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: convert to vlist
Felix Fietkau [Thu, 5 Jun 2014 13:29:19 +0000 (15:29 +0200)]
service: convert to vlist

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: remove service descriptions for now, they belong in the UI layer
Felix Fietkau [Thu, 5 Jun 2014 12:39:48 +0000 (14:39 +0200)]
cache: remove service descriptions for now, they belong in the UI layer

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: fix host length calculation
Felix Fietkau [Tue, 3 Jun 2014 23:17:46 +0000 (01:17 +0200)]
cache: fix host length calculation

The previous version was returning negative values for some records due
to unchecked name matching

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: constify struct service fields
Felix Fietkau [Tue, 3 Jun 2014 22:21:35 +0000 (00:21 +0200)]
service: constify struct service fields

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: constify function arguments
Felix Fietkau [Tue, 3 Jun 2014 22:19:28 +0000 (00:19 +0200)]
service: constify function arguments

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: make the service txt field const uint8_t to reflect its use more accurately
Felix Fietkau [Tue, 3 Jun 2014 22:15:44 +0000 (00:15 +0200)]
service: make the service txt field const uint8_t to reflect its use more accurately

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: get rid of extra useless malloc for txt data
Felix Fietkau [Tue, 3 Jun 2014 22:14:08 +0000 (00:14 +0200)]
service: get rid of extra useless malloc for txt data

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoservice: use calloc instead of malloc+memset
Felix Fietkau [Tue, 3 Jun 2014 22:11:03 +0000 (00:11 +0200)]
service: use calloc instead of malloc+memset

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: constify cache_record fields
Felix Fietkau [Tue, 3 Jun 2014 22:08:01 +0000 (00:08 +0200)]
cache: constify cache_record fields

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: remove now unused rem argument to cache_record_free()
Felix Fietkau [Tue, 3 Jun 2014 22:06:45 +0000 (00:06 +0200)]
cache: remove now unused rem argument to cache_record_free()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: reduce allocation of cache records to one chunk of memory, using calloc_a
Felix Fietkau [Tue, 3 Jun 2014 22:06:10 +0000 (00:06 +0200)]
cache: reduce allocation of cache records to one chunk of memory, using calloc_a

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: constify entry and host pointers in struct cache_entry
Felix Fietkau [Tue, 3 Jun 2014 21:45:19 +0000 (23:45 +0200)]
cache: constify entry and host pointers in struct cache_entry

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoubus: constify name argument to mdns_add_records
Felix Fietkau [Tue, 3 Jun 2014 21:45:04 +0000 (23:45 +0200)]
ubus: constify name argument to mdns_add_records

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agodns: constify various functions
Felix Fietkau [Tue, 3 Jun 2014 21:44:19 +0000 (23:44 +0200)]
dns: constify various functions

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agoutil: constify memdup()
Felix Fietkau [Tue, 3 Jun 2014 21:44:00 +0000 (23:44 +0200)]
util: constify memdup()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: remove struct cache_type
Felix Fietkau [Tue, 3 Jun 2014 21:40:26 +0000 (23:40 +0200)]
cache: remove struct cache_type

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: reduce allocation of cache entries to one chunk of memory, using calloc_a
Felix Fietkau [Tue, 3 Jun 2014 21:39:40 +0000 (23:39 +0200)]
cache: reduce allocation of cache entries to one chunk of memory, using calloc_a

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: use proper avl lookup for entries
Felix Fietkau [Tue, 3 Jun 2014 21:32:41 +0000 (23:32 +0200)]
cache: use proper avl lookup for entries

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agocache: convert types to kvlist
Felix Fietkau [Tue, 3 Jun 2014 21:30:31 +0000 (23:30 +0200)]
cache: convert types to kvlist

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agodns: use alloca instead of malloc to fix memleak in dns_send_answer()
Felix Fietkau [Tue, 3 Jun 2014 21:23:12 +0000 (23:23 +0200)]
dns: use alloca instead of malloc to fix memleak in dns_send_answer()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
5 years agodns: use common function for sending packets
Felix Fietkau [Tue, 3 Jun 2014 21:21:50 +0000 (23:21 +0200)]
dns: use common function for sending packets

Signed-off-by: Felix Fietkau <nbd@openwrt.org>