1 /* $Id: upnpglobalvars.c,v 1.18 2008/10/06 13:22:02 nanard Exp $ */
3 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4 * (c) 2006 Thomas Bernard
5 * This software is subject to the conditions detailed
6 * in the LICENCE file provided within the distribution */
9 #include <netinet/in.h>
12 #include "upnpglobalvars.h"
14 /* network interface for internet */
15 const char * ext_if_name
= 0;
17 /* file to store leases */
18 #ifdef ENABLE_LEASEFILE
19 const char* lease_file
= 0;
22 /* forced ip address to use for this interface
23 * when NULL, getifaddr() is used */
24 const char * use_ext_ip_addr
= 0;
27 /*const char * listen_addr = 0;*/
29 unsigned long downstream_bitrate
= 0;
30 unsigned long upstream_bitrate
= 0;
33 time_t startup_time
= 0;
36 /* use system uptime */
39 /* log packets flag */
47 int runtime_flags
= 0;
49 const char * pidfilename
= "/var/run/miniupnpd.pid";
51 char uuidvalue
[] = "uuid:00000000-0000-0000-0000-000000000000";
52 char serialnumber
[SERIALNUMBER_MAX_LEN
] = "00000000";
54 char modelnumber
[MODELNUMBER_MAX_LEN
] = "1";
57 * http://nnn.nnn.nnn.nnn:ppppp/ => max 30 bytes including terminating 0 */
58 char presentationurl
[PRESENTATIONURL_MAX_LEN
];
60 /* UPnP permission rules : */
61 struct upnpperm
* upnppermlist
= 0;
62 unsigned int num_upnpperm
= 0;
66 unsigned int nextnatpmptoclean_timestamp
= 0;
67 unsigned short nextnatpmptoclean_eport
= 0;
68 unsigned short nextnatpmptoclean_proto
= 0;
72 const char * queue
= 0;
77 /* chain name to use, both in the nat table
78 * and the filter table */
79 const char * miniupnpd_nat_chain
= "MINIUPNPD";
80 const char * miniupnpd_forward_chain
= "MINIUPNPD";
84 struct lan_addr_s lan_addr
[MAX_LAN_ADDR
];
86 /* Path of the Unix socket used to communicate with MiniSSDPd */
87 const char * minissdpdsocketpath
= "/var/run/minissdpd.sock";