2020-06-06 20:21:43 +00:00
|
|
|
/* $Id: config.h,v 1.12 2020/06/06 20:20:47 nanard Exp $ */
|
2011-09-28 19:14:08 +00:00
|
|
|
/* MiniUPnP project
|
2020-06-06 19:55:44 +00:00
|
|
|
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
|
|
|
* (c) 2006-2020 Thomas Bernard
|
2011-09-28 19:14:08 +00:00
|
|
|
* This software is subject to the conditions detailed
|
|
|
|
* in the LICENCE file provided within the distribution */
|
2012-09-20 20:52:51 +00:00
|
|
|
#ifndef CONFIG_H_INCLUDED
|
|
|
|
#define CONFIG_H_INCLUDED
|
2011-09-28 19:14:08 +00:00
|
|
|
|
2018-02-23 14:00:18 +00:00
|
|
|
#define MINISSDPD_VERSION "1.5"
|
2015-08-06 13:20:30 +00:00
|
|
|
|
2011-09-28 19:14:08 +00:00
|
|
|
/* use BSD daemon() ? */
|
|
|
|
#define USE_DAEMON
|
|
|
|
|
|
|
|
/* set the syslog facility to use. See man syslog(3) and syslog.conf(5). */
|
|
|
|
#define LOG_MINISSDPD LOG_DAEMON
|
|
|
|
|
|
|
|
/* enable IPv6 */
|
|
|
|
#define ENABLE_IPV6
|
|
|
|
|
2015-05-26 16:50:14 +00:00
|
|
|
/* The size of unix socket response buffer */
|
|
|
|
#define RESPONSE_BUFFER_SIZE (1024 * 4)
|
|
|
|
|
2014-11-28 14:50:06 +00:00
|
|
|
/* Uncomment the following line in order to make minissdpd
|
|
|
|
* listen on 1.2.3.4:1900 instead of *:1900
|
2018-02-23 14:00:18 +00:00
|
|
|
* FOR TESTING PURPOSE ONLY
|
|
|
|
* Note : it prevents multicast packets to be received,
|
|
|
|
* at least with linux
|
|
|
|
* As miniSSDPd needs to receive SSDP packets both multicasted
|
|
|
|
* and unicasted, we cannot bind to 239.255.255.250 neither */
|
2014-11-28 14:50:06 +00:00
|
|
|
/*#define SSDP_LISTEN_ON_SPECIFIC_ADDR*/
|
|
|
|
|
2020-06-06 19:55:44 +00:00
|
|
|
/* When NO_BACKGROUND_NO_PIDFILE is defined, minissdpd does not go to
|
|
|
|
* background and does not create any pidfile */
|
|
|
|
/*#define NO_BACKGROUND_NO_PIDFILE*/
|
|
|
|
|
2020-06-06 20:21:43 +00:00
|
|
|
/* define HAVE_IP_MREQN to use struct ip_mreqn instead of struct ip_mreq
|
|
|
|
* for setsockopt(IP_MULTICAST_IF). Available with Linux 2.4+,
|
|
|
|
* FreeBSD, etc. */
|
|
|
|
#define HAVE_IP_MREQN
|
|
|
|
|
2011-09-28 19:14:08 +00:00
|
|
|
#endif
|