#ifndef secnet_h
#define secnet_h
+#define ADNS_FEATURE_MANYAF
+
#include "config.h"
#include <stdlib.h>
#include <stdarg.h>
actually found in the DNS, which may be bigger if addrs is equal
to MAX_PEER_ADDRS (ie there were too many). */
typedef void resolve_answer_fn(void *st, const struct comm_addr *addrs,
- int naddrs, int was_naddrs);
+ int naddrs, int was_naddrs,
+ const char *failwhy);
typedef bool_t resolve_request_fn(void *st, cstring_t name,
int remoteport, struct comm_if *comm,
resolve_answer_fn *cb, void *cst);
freely copy it. */
struct comm_if *comm;
union iaddr ia;
+ int ix; /* see comment `Re comm_addr.ix' in udp.c */
};
/* Return True if the packet was processed, and shouldn't be passed to
#define STRING(x) STRING2(x)
#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
+#define ARRAY_SIZE(ary) (sizeof((ary))/sizeof((ary)[0]))
/*
* void COPY_OBJ( OBJECT& dst, const OBJECT& src);