Monero
Loading...
Searching...
No Matches
ifacewatcher.c File Reference
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/route.h>
#include <syslog.h>
#include <signal.h>
#include "config.h"
#include "../upnputils.h"
#include "../upnpglobalvars.h"
Include dependency graph for ifacewatcher.c:

Macros

#define SALIGN   (sizeof(long) - 1)
#define SA_RLEN(sa)

Functions

int OpenAndConfInterfaceWatchSocket (void)
void ProcessInterfaceWatchNotify (int s)

Variables

volatile sig_atomic_t should_send_public_address_change_notif

Macro Definition Documentation

◆ SA_RLEN

#define SA_RLEN ( sa)
Value:
(SA_LEN(sa) ? ((SA_LEN(sa) + SALIGN) & ~SALIGN) : (SALIGN + 1))
#define SALIGN
Definition ifacewatch.c:41
#define SA_LEN(sa)
Definition upnputils.h:54

◆ SALIGN

#define SALIGN   (sizeof(long) - 1)

Function Documentation

◆ OpenAndConfInterfaceWatchSocket()

int OpenAndConfInterfaceWatchSocket ( void )

◆ ProcessInterfaceWatchNotify()

void ProcessInterfaceWatchNotify ( int s)

Variable Documentation

◆ should_send_public_address_change_notif

volatile sig_atomic_t should_send_public_address_change_notif
extern