X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=util.h;h=1a01fccd37b05eaeeccc29779e32dfd535374c70;hp=140e1da5534c74abe0b94453d4e0eaaf25156bee;hb=4059fe10c18e7ea7309198741f18cf71c6afc911;hpb=cef25024bc6d3948d1e4a164d82a63fa21414912 diff --git a/util.h b/util.h index 140e1da..1a01fcc 100644 --- a/util.h +++ b/util.h @@ -22,14 +22,14 @@ } while (0) #define MDNS_BUF_LEN (8 * 1024) +#define HOSTNAME_LEN 256 extern int debug; extern uint8_t mdns_buf[MDNS_BUF_LEN]; +extern char mdns_hostname[HOSTNAME_LEN]; +extern char mdns_hostname_local[HOSTNAME_LEN + 6]; -void *memdup(const void *d, int l); - -extern void signal_setup(void); -extern char* get_hostname(void); +extern void get_hostname(void); extern uint32_t rand_time_delta(uint32_t t); #endif