diff --git a/miniupnpd/miniupnpd.8 b/miniupnpd/miniupnpd.8 index 0073f18..83123c4 100644 --- a/miniupnpd/miniupnpd.8 +++ b/miniupnpd/miniupnpd.8 @@ -8,7 +8,7 @@ miniupnpd \- UPnP Internet Gateway Device Daemon .RB [ "\-u \fIuuid" "] [" "\-s \fIserial" "] [" "\-m \fImodel_number" ] .RB [ "\-t \fInotify_interval" "] [" "\-P \fIpid_filename" ] .RB [ "\-B \fIdown up" "] [" "\-w \fIurl" "] [" "\-r \fIclean_ruleset_interval" ] -.RB [ "\-A \fIpermission rule" "] [" "\-b \fIBOOTID" ] +.RB [ "\-A \fIpermission rule" "] [" "\-b \fIBOOTID" "] [" \-1 ] .SH DESCRIPTION miniupnpd act as a UPnP Internet Gateway Device. It is designed to run on the gateway between the internet and a NAT'ed LAN. It provides @@ -81,6 +81,9 @@ examples : .TP .BI \-b " BOOTID" sets the value of BOOTID.UPNP.ORG SSDP header +.TP +.B \-1 +force reporting IGDv1 in rootDesc when compiled as IGDv2 *use with care* .SH "SEE ALSO" minissdpd(1) miniupnpc(3) .SH BUGS diff --git a/miniupnpd/miniupnpd.c b/miniupnpd/miniupnpd.c index b291a31..7d32f86 100644 --- a/miniupnpd/miniupnpd.c +++ b/miniupnpd/miniupnpd.c @@ -1328,6 +1328,11 @@ init(int argc, char * * argv, struct runtime_vars * v) } else switch(argv[i][1]) { +#ifdef IGD_V2 + case '1': + SETFLAG(FORCEIGDDESCV1MASK); + break; +#endif case 'b': if(i+1 < argc) { upnp_bootid = (unsigned int)strtoul(argv[++i], NULL, 10); @@ -1742,7 +1747,11 @@ print_usage: #ifdef ENABLE_NFQUEUE "\t\t[-Q queue] [-n name]\n" #endif - "\t\t[-A \"permission rule\"] [-b BOOTID]\n" + "\t\t[-A \"permission rule\"] [-b BOOTID]" +#ifdef IGD_V2 + " [-1]" +#endif + "\n" "\nNotes:\n\tThere can be one or several listening_ips.\n" "\tNotify interval is in seconds. Default is 30 seconds.\n" "\tDefault pid file is '%s'.\n" @@ -1773,6 +1782,9 @@ print_usage: "\t \"allow 1024-65535 192.168.1.0/24 1024-65535\"\n" "\t \"deny 0-65535 0.0.0.0/0 0-65535\"\n" "\t-b sets the value of BOOTID.UPNP.ORG SSDP header\n" +#ifdef IGD_V2 + "\t-1 force reporting IGDv1 in rootDesc *use with care*\n" +#endif "\t-h prints this help and quits.\n" "", argv[0], pidfilename, DEFAULT_CONFIG); return 1;