diff --git a/minissdpd/minissdpd.c b/minissdpd/minissdpd.c index 5e79293..86bca93 100644 --- a/minissdpd/minissdpd.c +++ b/minissdpd/minissdpd.c @@ -261,6 +261,7 @@ processMSEARCH(int s, const char * st, int st_len, ntohs(((const struct sockaddr_in *)addr)->sin_port), st_len, st); #endif + /* TODO : ignore packet if not coming from a LAN */ if(st_len==8 && (0==memcmp(st, "ssdp:all", 8))) { /* send a response for all services */ for(serv = servicelisthead.lh_first; diff --git a/miniupnpd/upnpdescgen.c b/miniupnpd/upnpdescgen.c index 5e5ebfb..7b0398a 100644 --- a/miniupnpd/upnpdescgen.c +++ b/miniupnpd/upnpdescgen.c @@ -368,9 +368,9 @@ static const struct argument GetExternalIPAddressArgs[] = static const struct argument DeletePortMappingArgs[] = { - {1, 11}, - {1, 12}, - {1, 14}, + {1, 11}, /* RemoteHost */ + {1, 12}, /* ExternalPort */ + {1, 14}, /* PortMappingProtocol */ {0, 0} };