Annotation of embedaddon/miniupnpd/options.h, revision 1.1
1.1 ! misho 1: /* $Id: options.h,v 1.15 2008/10/06 13:22:02 nanard Exp $ */
! 2: /* MiniUPnP project
! 3: * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
! 4: * author: Ryan Wagoner
! 5: * (c) 2006 Thomas Bernard
! 6: * This software is subject to the conditions detailed
! 7: * in the LICENCE file provided within the distribution */
! 8:
! 9: #ifndef __OPTIONS_H__
! 10: #define __OPTIONS_H__
! 11:
! 12: #include "config.h"
! 13:
! 14: /* enum of option available in the miniupnpd.conf */
! 15: enum upnpconfigoptions {
! 16: UPNP_INVALID = 0,
! 17: UPNPEXT_IFNAME = 1, /* ext_ifname */
! 18: UPNPEXT_IP, /* ext_ip */
! 19: UPNPLISTENING_IP, /* listening_ip */
! 20: UPNPPORT, /* "port" */
! 21: UPNPBITRATE_UP, /* "bitrate_up" */
! 22: UPNPBITRATE_DOWN, /* "bitrate_down" */
! 23: UPNPPRESENTATIONURL, /* presentation_url */
! 24: UPNPNOTIFY_INTERVAL, /* notify_interval */
! 25: UPNPSYSTEM_UPTIME, /* "system_uptime" */
! 26: UPNPPACKET_LOG, /* "packet_log" */
! 27: UPNPUUID, /* uuid */
! 28: UPNPSERIAL, /* serial */
! 29: UPNPMODEL_NUMBER, /* model_number */
! 30: UPNPCLEANTHRESHOLD, /* clean_ruleset_threshold */
! 31: UPNPCLEANINTERVAL, /* clean_ruleset_interval */
! 32: UPNPENABLENATPMP, /* enable_natpmp */
! 33: #ifdef USE_NETFILTER
! 34: UPNPFORWARDCHAIN,
! 35: UPNPNATCHAIN,
! 36: #endif
! 37: #ifdef USE_PF
! 38: UPNPQUEUE, /* queue */
! 39: UPNPTAG, /* tag */
! 40: #endif
! 41: #ifdef PF_ENABLE_FILTER_RULES
! 42: UPNPQUICKRULES, /* quickrules */
! 43: #endif
! 44: UPNPSECUREMODE, /* secure_mode */
! 45: #ifdef ENABLE_LEASEFILE
! 46: UPNPLEASEFILE, /* lease_file */
! 47: #endif
! 48: UPNPMINISSDPDSOCKET, /* minissdpdsocket */
! 49: UPNPENABLE /* enable_upnp */
! 50: };
! 51:
! 52: /* readoptionsfile()
! 53: * parse and store the option file values
! 54: * returns: 0 success, -1 failure */
! 55: int
! 56: readoptionsfile(const char * fname);
! 57:
! 58: /* freeoptions()
! 59: * frees memory allocated to option values */
! 60: void
! 61: freeoptions(void);
! 62:
! 63: #define MAX_OPTION_VALUE_LEN (80)
! 64: struct option
! 65: {
! 66: enum upnpconfigoptions id;
! 67: char value[MAX_OPTION_VALUE_LEN];
! 68: };
! 69:
! 70: extern struct option * ary_options;
! 71: extern int num_options;
! 72:
! 73: #endif
! 74:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>