move SSDP_PACKET_MAX_LEN to config.h
also set it to 1024 by default. See #129
This commit is contained in:
parent
95a75b6dd0
commit
3bd1886d2a
|
@ -551,6 +551,14 @@ cat >> ${CONFIGFILE} <<EOF
|
|||
/* Uncomment the following line if your device does not have a proper clock
|
||||
* BOOTID.UPNP.ORG can be set with command line */
|
||||
#define USE_TIME_AS_BOOTID
|
||||
|
||||
EOF
|
||||
|
||||
cat >> ${CONFIGFILE} <<EOF
|
||||
/* maximum lenght of SSDP packets we are generating
|
||||
* (reception is done in a 1500byte buffer) */
|
||||
#define SSDP_PACKET_MAX_LEN 1024
|
||||
|
||||
EOF
|
||||
|
||||
echo "#endif /* ${CONFIGMACRO} */" >> ${CONFIGFILE}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue