View previous topic :: View next topic |
Author |
Message |
dreijer
Joined: 16 Mar 2010 Posts: 7
|
Posted: Tue Mar 16, 2010 4:47 am Post subject: Duration on port mappings |
|
|
I've noticed that UPNP_GetGenericPortMappingEntry() can return the duration of a port mapping. Is there any way to set the duration when adding a port mapping through miniupnp? Also, what *is* the default duration when calling UPNP_AddPortMapping()? |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1587
|
Posted: Tue Mar 16, 2010 10:33 am Post subject: |
|
|
Most UPnP Internet Gateway Devices don't support duration.
So it is set to 0.
The default value is 0 I guess (or no value) which means illimited duration. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
dreijer
Joined: 16 Mar 2010 Posts: 7
|
Posted: Tue Mar 16, 2010 1:41 pm Post subject: |
|
|
Alright, thanks. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1587
|
Posted: Mon Jan 03, 2011 3:58 pm Post subject: |
|
|
Well in the version 2 of the IGD specification, infinite leaseDuration are forbidden, so I think I'll add arguments to set it.
Do someone has access to an IGD implementing the version 2 of the spec ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
shaidar
Joined: 05 Feb 2011 Posts: 5
|
|
Back to top |
|
 |
|