From 3bd1886d2a5830a37832a95772c7d3125b27b897 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 24 Oct 2015 13:11:31 +0200 Subject: [PATCH] move SSDP_PACKET_MAX_LEN to config.h also set it to 1024 by default. See #129 --- miniupnpd/genconfig.sh | 8 ++++++++ miniupnpd/minissdp.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index 7521ed0..14485c3 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -551,6 +551,14 @@ cat >> ${CONFIGFILE} <> ${CONFIGFILE} <> ${CONFIGFILE} diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index ddc33dc..e879d15 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -35,14 +35,6 @@ #define SL_SSDP_MCAST_ADDR "FF05::C" #define GL_SSDP_MCAST_ADDR "FF0E::C" -/* maximum lenght of SSDP packets we are generating - * (reception is done in a 1500byte buffer) */ -#ifdef ENABLE_HTTPS -#define SSDP_PACKET_MAX_LEN 768 -#else -#define SSDP_PACKET_MAX_LEN 512 -#endif - /* AddMulticastMembership() * param s socket * param lan_addr lan address