Monero
Loading...
Searching...
No Matches
ifacewatch.c File Reference
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/route.h>
#include <syslog.h>
#include <inttypes.h>
#include "openssdpsocket.h"
#include "upnputils.h"
#include "minissdpdtypes.h"
Include dependency graph for ifacewatch.c:

Macros

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

Functions

int OpenAndConfInterfaceWatchSocket (void)
int ProcessInterfaceWatch (int s, int s_ssdp, int s_ssdp6)

Variables

struct lan_addr_list lan_addrs

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(int32_t) - 1)

Function Documentation

◆ OpenAndConfInterfaceWatchSocket()

int OpenAndConfInterfaceWatchSocket ( void )

◆ ProcessInterfaceWatch()

int ProcessInterfaceWatch ( int s,
int s_ssdp,
int s_ssdp6 )

Process the message and add/drop multicast membership if needed

Variable Documentation

◆ lan_addrs

struct lan_addr_list lan_addrs
extern