View previous topic :: View next topic |
Author |
Message |
yakovmotog
Joined: 18 Jul 2016 Posts: 13
|
Posted: Tue Jul 26, 2016 9:01 pm Post subject: is UPNP_GetPortMappingNumberOfEntries fully supported? |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Jul 29, 2016 7:34 pm Post subject: |
|
|
because most IGD do not support that method _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
yakovmotog
Joined: 18 Jul 2016 Posts: 13
|
Posted: Mon Aug 01, 2016 4:31 pm Post subject: is UPNP_GetPortMappingNumberOfEntries fully supported? |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Aug 05, 2016 10:13 pm Post subject: Re: is UPNP_GetPortMappingNumberOfEntries fully supported? |
|
|
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.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|