Signed-off-by: John Crispin <blogic@openwrt.org>
} __attribute__((packed, aligned(2)));
struct interface;
+extern int cfg_proto;
void dns_send_question(struct interface *iface, const char *question, int type);
void dns_init_answer(void);
#include "announce.h"
#include "interface.h"
+int cfg_proto = 0;
+
static void
signal_shutdown(int signal)
{
uloop_init();
- while ((ch = getopt(argc, argv, "t:i:d")) != -1) {
+ while ((ch = getopt(argc, argv, "t:i:d46")) != -1) {
switch (ch) {
case 't':
ttl = atoi(optarg);
case 'i':
interface_add(optarg);
break;
+ case '4':
+ fprintf(stderr, "%s:%s[%d]\n", __FILE__, __func__, __LINE__);
+ cfg_proto = 4;
+ break;
+ case '6':
+ cfg_proto = 6;
+ break;
default:
return -1;
}