34#include <netinet/in.h>
42#define NELEMS(array) (sizeof(array) / sizeof((array)[0]))
46#define IN_ZERONET(addr) ((addr & IN_CLASSA_NET) == 0)
50#define IN_LOOPBACK(addr) ((addr & IN_CLASSA_NET) == 0x7f000000)
54#define IN_LINKLOCALNETNUM 0xa9fe0000
55#define IN_LINKLOCAL(addr) ((addr & IN_CLASSB_NET) == IN_LINKLOCALNETNUM)
99static inline int is_linklocal(
struct in_addr *ina)
104static inline int is_zeronet(
struct in_addr *ina)
109static inline int is_add_valid(
struct in_addr *ina)
113 addr = ntohl(ina->s_addr);
struct mdns_daemon mdns_daemon_t
Main daemon data.
#define TAILQ_ENTRY(type)
void iface_init(char *ifname)
int conf_init(struct iface *iface, const char *path, const char *hostnm)
conf.c
void iface_free(struct iface *iface)
struct iface * iface_find(const char *ifname)
#define IN_LINKLOCAL(addr)
#define IN_LOOPBACK(addr)
struct iface * iface_iterator(int first)
addr.c
void mdnsd_conflict(char *name, int type, void *arg)
size_t strlcpy(char *dst, const char *src, size_t siz)
int pidfile(const char *basename)
replacement functions for systems that don't have them
struct in6_addr in6addr_old
struct in_addr inaddr_old