summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Felix Fietkau [Tue, 3 Jun 2014 21:44:00 +0000 (23:44 +0200)]
util: constify memdup()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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>
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>
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>
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>
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>
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>
Felix Fietkau [Tue, 3 Jun 2014 21:12:59 +0000 (23:12 +0200)]
dns: reuse global name_buffer in dns_send_question()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Felix Fietkau [Tue, 3 Jun 2014 21:03:41 +0000 (23:03 +0200)]
dns: use bss instead of heap for buffers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Felix Fietkau [Tue, 3 Jun 2014 20:55:37 +0000 (22:55 +0200)]
dns: use compile time initialization for structs, remove unnecessary call to inet_aton
Also avoids excessive stack utilization for buffer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
John Crispin [Tue, 27 May 2014 17:16:10 +0000 (18:16 +0100)]
make the code work for bridge interfaces
Signed-off-by: John Crispin <blogic@openwrt.org>
John Crispin [Thu, 16 Jan 2014 02:46:46 +0000 (02:46 +0000)]
import v0.1
Signed-off-by: John Crispin <blogic@openwrt.org>