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 

is UPNP_GetPortMappingNumberOfEntries fully supported?

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs
View previous topic :: View next topic  
Author Message
yakovmotog



Joined: 18 Jul 2016
Posts: 13

PostPosted: Tue Jul 26, 2016 9:01 pm    Post subject: is UPNP_GetPortMappingNumberOfEntries fully supported? Reply with quote

The call to UPNP_GetPortMappingNumberOfEntries is commented out in ListRedirections upnpc.c . Could you please advise if there is a technical reason not to include it into a library demo/test ?


miniupnpc-2.0\upnpc.c(146): UPNP_GetPortMappingNumberOfEntries(urls->controlURL, data->servicetype, &num);

ListRedirections(struct UPNPUrls * urls, struct IGDdatas * data)
...
/*unsigned int num=0;
UPNP_GetPortMappingNumberOfEntries(urls->controlURL, data->servicetype, &num);
printf("PortMappingNumberOfEntries : %u\n", num);*/
...

Thanks
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1469

PostPosted: Fri Jul 29, 2016 7:34 pm    Post subject: Reply with quote

because most IGD do not support that method
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
yakovmotog



Joined: 18 Jul 2016
Posts: 13

PostPosted: Mon Aug 01, 2016 4:31 pm    Post subject: is UPNP_GetPortMappingNumberOfEntries fully supported? Reply with quote

miniupnp wrote:
because most IGD do not support that method

The issues is that

returned_value = UPNP_GetPortMappingNumberOfEntries(urls->controlURL, data->servicetype, &num);
refers to data->servicetype whidch is not in IGDdatas. So should it be
data->first.servicetype ?
Thanks
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1469

PostPosted: Fri Aug 05, 2016 10:13 pm    Post subject: Re: is UPNP_GetPortMappingNumberOfEntries fully supported? Reply with quote

yakovmotog wrote:
miniupnp wrote:
because most IGD do not support that method

The issues is that

returned_value = UPNP_GetPortMappingNumberOfEntries(urls->controlURL, data->servicetype, &num);
refers to data->servicetype whidch is not in IGDdatas. So should it be
data->first.servicetype ?

I guess. But that wouldn't change anything to the fact that most IGD do not support that method.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Bugs 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.