Monero
Loading...
Searching...
No Matches
Macros | Functions | Variables
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)   (SA_LEN(sa) ? ((SA_LEN(sa) + SALIGN) & ~SALIGN) : (SALIGN + 1))
 

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)    (SA_LEN(sa) ? ((SA_LEN(sa) + SALIGN) & ~SALIGN) : (SALIGN + 1))

◆ 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