1 /* $Id: testifacewatcher.c,v 1.2 2012/05/21 08:55:10 nanard Exp $ */
6 OpenAndConfInterfaceWatchSocket(void);
9 ProcessInterfaceWatchNotify(int s
);
11 const char * ext_if_name
;
12 volatile sig_atomic_t should_send_public_address_change_notif
= 0;
14 int main(int argc
, char * * argv
)
19 openlog("testifacewatcher", LOG_CONS
|LOG_PERROR
, LOG_USER
);
21 syslog(LOG_DEBUG
, "test");
22 s
= OpenAndConfInterfaceWatchSocket();
24 if(should_send_public_address_change_notif
) {
25 syslog(LOG_DEBUG
, "should_send_public_address_change_notif !");
26 should_send_public_address_change_notif
= 0;
28 ProcessInterfaceWatchNotify(s
);