Electroneum
upnpglobalvars.h File Reference
#include <time.h>
#include "upnppermissions.h"
#include "miniupnpdtypes.h"
#include "config.h"
Include dependency graph for upnpglobalvars.h:

Go to the source code of this file.

Macros

#define LOGPACKETSMASK   0x0001
 
#define SYSUPTIMEMASK   0x0002
 
#define CHECKCLIENTIPMASK   0x0008
 
#define SECUREMODEMASK   0x0010
 
#define ENABLEUPNPMASK   0x0020
 
#define SETFLAG(mask)   runtime_flags |= mask
 
#define GETFLAG(mask)   (runtime_flags & mask)
 
#define CLEARFLAG(mask)   runtime_flags &= ~mask
 
#define SERIALNUMBER_MAX_LEN   (10)
 
#define MODELNUMBER_MAX_LEN   (48)
 
#define PRESENTATIONURL_MAX_LEN   (64)
 

Variables

const char * ext_if_name
 
const char * use_ext_ip_addr
 
unsigned long downstream_bitrate
 
unsigned long upstream_bitrate
 
time_t startup_time
 
unsigned long int min_lifetime
 
unsigned long int max_lifetime
 
int runtime_flags
 
const char * pidfilename
 
char uuidvalue_igd []
 
char uuidvalue_wan []
 
char uuidvalue_wcd []
 
char serialnumber []
 
char modelnumber []
 
char presentationurl []
 
struct upnppermupnppermlist
 
unsigned int num_upnpperm
 
unsigned int nextruletoclean_timestamp
 
struct lan_addr_list lan_addrs
 
const char * minissdpdsocketpath
 
unsigned int upnp_bootid
 
unsigned int upnp_configid
 

Macro Definition Documentation

◆ CHECKCLIENTIPMASK

#define CHECKCLIENTIPMASK   0x0008

Definition at line 50 of file upnpglobalvars.h.

◆ CLEARFLAG

#define CLEARFLAG (   mask)    runtime_flags &= ~mask

Definition at line 74 of file upnpglobalvars.h.

◆ ENABLEUPNPMASK

#define ENABLEUPNPMASK   0x0020

Definition at line 53 of file upnpglobalvars.h.

◆ GETFLAG

#define GETFLAG (   mask)    (runtime_flags & mask)

Definition at line 73 of file upnpglobalvars.h.

◆ LOGPACKETSMASK

#define LOGPACKETSMASK   0x0001

Definition at line 45 of file upnpglobalvars.h.

◆ MODELNUMBER_MAX_LEN

#define MODELNUMBER_MAX_LEN   (48)

Definition at line 85 of file upnpglobalvars.h.

◆ PRESENTATIONURL_MAX_LEN

#define PRESENTATIONURL_MAX_LEN   (64)

Definition at line 88 of file upnpglobalvars.h.

◆ SECUREMODEMASK

#define SECUREMODEMASK   0x0010

Definition at line 51 of file upnpglobalvars.h.

◆ SERIALNUMBER_MAX_LEN

#define SERIALNUMBER_MAX_LEN   (10)

Definition at line 82 of file upnpglobalvars.h.

◆ SETFLAG

#define SETFLAG (   mask)    runtime_flags |= mask

Definition at line 72 of file upnpglobalvars.h.

◆ SYSUPTIMEMASK

#define SYSUPTIMEMASK   0x0002

Definition at line 46 of file upnpglobalvars.h.

Variable Documentation

◆ downstream_bitrate

unsigned long downstream_bitrate

◆ ext_if_name

const char* ext_if_name

◆ lan_addrs

struct lan_addr_list lan_addrs

◆ max_lifetime

unsigned long int max_lifetime

◆ min_lifetime

unsigned long int min_lifetime

◆ minissdpdsocketpath

const char* minissdpdsocketpath

◆ modelnumber

char modelnumber[]

◆ nextruletoclean_timestamp

unsigned int nextruletoclean_timestamp

◆ num_upnpperm

unsigned int num_upnpperm

◆ pidfilename

const char* pidfilename

◆ presentationurl

char presentationurl[]

◆ runtime_flags

int runtime_flags

◆ serialnumber

char serialnumber[]

◆ startup_time

time_t startup_time

◆ upnp_bootid

unsigned int upnp_bootid

◆ upnp_configid

unsigned int upnp_configid

◆ upnppermlist

struct upnpperm* upnppermlist

◆ upstream_bitrate

unsigned long upstream_bitrate

◆ use_ext_ip_addr

const char* use_ext_ip_addr

◆ uuidvalue_igd

char uuidvalue_igd[]

◆ uuidvalue_wan

char uuidvalue_wan[]

◆ uuidvalue_wcd

char uuidvalue_wcd[]