View previous topic :: View next topic |
Author |
Message |
ntadmin
Joined: 22 Jun 2016 Posts: 2 Location: England
|
Posted: Wed Jun 22, 2016 7:28 am Post subject: miniup reports an error when talking to miniupnpd: ai_flags |
|
|
Background:
* I have a router which is running miniupnpd (a fairly old version - 2008 or so).
* I have compiled the most recent upnpc to run on the router (2.0)
When I run on the router, I get the following report (info text trimmed):
Code: |
List of UPNP devices found on the network :
desc: http://192.168.1.254:56688/rootDesc.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
getaddrinfo() error : Bad value for ai_flags
No valid UPNP Internet Gateway Device found. |
I'm not sure if this an an issue with the client or the server, any suggestions?
Thanks |
|
Back to top |
|
 |
ntadmin
Joined: 22 Jun 2016 Posts: 2 Location: England
|
Posted: Thu Jun 23, 2016 7:27 am Post subject: |
|
|
The error is definitely being triggered in the miniupnpc code, connecthostport.c.
The value of ai_flags whcih is being rejected is: 0x00000400, ie AI_NUMERICSERV is set but nothing else. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Fri Jun 24, 2016 12:19 pm Post subject: |
|
|
This is a problem in the library or headers you're compiling miniupnpc against.
just remove the reference to AI_NUMERICSERV i _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|