mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-11 14:44:16 +00:00
parent
9efd7fda66
commit
f0511d761b
@ -8,7 +8,7 @@ miniupnpd \- UPnP Internet Gateway Device Daemon
|
|||||||
.RB [ "\-u \fIuuid" "] [" "\-s \fIserial" "] [" "\-m \fImodel_number" ]
|
.RB [ "\-u \fIuuid" "] [" "\-s \fIserial" "] [" "\-m \fImodel_number" ]
|
||||||
.RB [ "\-t \fInotify_interval" "] [" "\-P \fIpid_filename" ]
|
.RB [ "\-t \fInotify_interval" "] [" "\-P \fIpid_filename" ]
|
||||||
.RB [ "\-B \fIdown up" "] [" "\-w \fIurl" "] [" "\-r \fIclean_ruleset_interval" ]
|
.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
|
.SH DESCRIPTION
|
||||||
miniupnpd act as a UPnP Internet Gateway Device. It is designed
|
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
|
to run on the gateway between the internet and a NAT'ed LAN. It provides
|
||||||
@ -81,6 +81,9 @@ examples :
|
|||||||
.TP
|
.TP
|
||||||
.BI \-b " BOOTID"
|
.BI \-b " BOOTID"
|
||||||
sets the value of BOOTID.UPNP.ORG SSDP header
|
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"
|
.SH "SEE ALSO"
|
||||||
minissdpd(1) miniupnpc(3)
|
minissdpd(1) miniupnpc(3)
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
|
@ -1328,6 +1328,11 @@ init(int argc, char * * argv, struct runtime_vars * v)
|
|||||||
}
|
}
|
||||||
else switch(argv[i][1])
|
else switch(argv[i][1])
|
||||||
{
|
{
|
||||||
|
#ifdef IGD_V2
|
||||||
|
case '1':
|
||||||
|
SETFLAG(FORCEIGDDESCV1MASK);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case 'b':
|
case 'b':
|
||||||
if(i+1 < argc) {
|
if(i+1 < argc) {
|
||||||
upnp_bootid = (unsigned int)strtoul(argv[++i], NULL, 10);
|
upnp_bootid = (unsigned int)strtoul(argv[++i], NULL, 10);
|
||||||
@ -1742,7 +1747,11 @@ print_usage:
|
|||||||
#ifdef ENABLE_NFQUEUE
|
#ifdef ENABLE_NFQUEUE
|
||||||
"\t\t[-Q queue] [-n name]\n"
|
"\t\t[-Q queue] [-n name]\n"
|
||||||
#endif
|
#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"
|
"\nNotes:\n\tThere can be one or several listening_ips.\n"
|
||||||
"\tNotify interval is in seconds. Default is 30 seconds.\n"
|
"\tNotify interval is in seconds. Default is 30 seconds.\n"
|
||||||
"\tDefault pid file is '%s'.\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 \"allow 1024-65535 192.168.1.0/24 1024-65535\"\n"
|
||||||
"\t \"deny 0-65535 0.0.0.0/0 0-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"
|
"\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"
|
"\t-h prints this help and quits.\n"
|
||||||
"", argv[0], pidfilename, DEFAULT_CONFIG);
|
"", argv[0], pidfilename, DEFAULT_CONFIG);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user