Annotation of embedaddon/miniupnpd/upnpglobalvars.h, revision 1.1.1.2

1.1.1.2 ! misho       1: /* $Id: upnpglobalvars.h,v 1.29 2011/05/27 21:36:22 nanard Exp $ */
1.1       misho       2: /* MiniUPnP project
                      3:  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
1.1.1.2 ! misho       4:  * (c) 2006-2011 Thomas Bernard 
1.1       misho       5:  * This software is subject to the conditions detailed
                      6:  * in the LICENCE file provided within the distribution */
                      7: 
                      8: #ifndef __UPNPGLOBALVARS_H__
                      9: #define __UPNPGLOBALVARS_H__
                     10: 
                     11: #include <time.h>
                     12: #include "upnppermissions.h"
                     13: #include "miniupnpdtypes.h"
                     14: #include "config.h"
                     15: 
                     16: /* name of the network interface used to acces internet */
                     17: extern const char * ext_if_name;
                     18: 
                     19: /* file to store all leases */
                     20: #ifdef ENABLE_LEASEFILE
                     21: extern const char * lease_file;
                     22: #endif
                     23: 
                     24: /* forced ip address to use for this interface
                     25:  * when NULL, getifaddr() is used */
                     26: extern const char * use_ext_ip_addr;
                     27: 
                     28: /* parameters to return to upnp client when asked */
                     29: extern unsigned long downstream_bitrate;
                     30: extern unsigned long upstream_bitrate;
                     31: 
                     32: /* statup time */
                     33: extern time_t startup_time;
                     34: 
                     35: /* runtime boolean flags */
                     36: extern int runtime_flags;
                     37: #define LOGPACKETSMASK         0x0001
                     38: #define SYSUPTIMEMASK          0x0002
                     39: #ifdef ENABLE_NATPMP
                     40: #define ENABLENATPMPMASK       0x0004
                     41: #endif
                     42: #define CHECKCLIENTIPMASK      0x0008
                     43: #define SECUREMODEMASK         0x0010
                     44: 
                     45: #define ENABLEUPNPMASK         0x0020
                     46: 
                     47: #ifdef PF_ENABLE_FILTER_RULES
                     48: #define PFNOQUICKRULESMASK     0x0040
                     49: #endif
                     50: 
                     51: #define SETFLAG(mask)  runtime_flags |= mask
1.1.1.2 ! misho      52: #define GETFLAG(mask)  (runtime_flags & mask)
1.1       misho      53: #define CLEARFLAG(mask)        runtime_flags &= ~mask
                     54: 
                     55: extern const char * pidfilename;
                     56: 
                     57: extern char uuidvalue[];
                     58: 
                     59: #define SERIALNUMBER_MAX_LEN (10)
                     60: extern char serialnumber[];
                     61: 
                     62: #define MODELNUMBER_MAX_LEN (48)
                     63: extern char modelnumber[];
                     64: 
                     65: #define PRESENTATIONURL_MAX_LEN (64)
                     66: extern char presentationurl[];
                     67: 
                     68: /* UPnP permission rules : */
                     69: extern struct upnpperm * upnppermlist;
                     70: extern unsigned int num_upnpperm;
                     71: 
                     72: #ifdef ENABLE_NATPMP
                     73: /* NAT-PMP */
1.1.1.2 ! misho      74: #if 0
1.1       misho      75: extern unsigned int nextnatpmptoclean_timestamp;
                     76: extern unsigned short nextnatpmptoclean_eport;
                     77: extern unsigned short nextnatpmptoclean_proto;
                     78: #endif
1.1.1.2 ! misho      79: #endif
        !            80: 
        !            81: /* For automatic removal of expired rules (with LeaseDuration) */
        !            82: extern unsigned int nextruletoclean_timestamp;
1.1       misho      83: 
                     84: #ifdef USE_PF
                     85: /* queue and tag for PF rules */
                     86: extern const char * queue;
                     87: extern const char * tag;
                     88: #endif
                     89: 
                     90: #ifdef USE_NETFILTER
                     91: extern const char * miniupnpd_nat_chain;
                     92: extern const char * miniupnpd_forward_chain;
                     93: #endif
                     94: 
                     95: #ifdef ENABLE_NFQUEUE
                     96: extern int nfqueue;
                     97: extern int n_nfqix;
                     98: extern unsigned nfqix[];
                     99: #endif
1.1.1.2 ! misho     100: 
        !           101: /* lan addresses to listen to SSDP traffic */
        !           102: extern struct lan_addr_list lan_addrs;
        !           103: 
        !           104: #ifdef ENABLE_IPV6
        !           105: /* ipv6 address used for HTTP */
        !           106: extern char ipv6_addr_for_http_with_brackets[64];
        !           107: #endif
1.1       misho     108: 
                    109: extern const char * minissdpdsocketpath;
                    110: 
1.1.1.2 ! misho     111: /* BOOTID.UPNP.ORG and CONFIGID.UPNP.ORG */
        !           112: extern unsigned int upnp_bootid;
        !           113: extern unsigned int upnp_configid;
        !           114: 
        !           115: #ifdef ENABLE_6FC_SERVICE
        !           116: extern int ipv6fc_firewall_enabled;
        !           117: extern int ipv6fc_inbound_pinhole_allowed;
        !           118: #endif
        !           119: 
1.1       misho     120: #endif
                    121: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>