miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Duration on port mappings

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Tue Mar 16, 2010 4:47 am    Post subject: Duration on port mappings Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Mar 16, 2010 10:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dreijer



Joined: 16 Mar 2010
Posts: 7

PostPosted: Tue Mar 16, 2010 1:41 pm    Post subject: Reply with quote

Alright, thanks.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jan 03, 2011 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
shaidar



Joined: 05 Feb 2011
Posts: 5

PostPosted: Sat Feb 19, 2011 2:01 pm    Post subject: Reply with quote

There is an implementation of an IGD:2 here: http://gitorious.org/igd2-for-linux
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.