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 

miniup reports an error when talking to miniupnpd: ai_flags

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



Joined: 22 Jun 2016
Posts: 2
Location: England

PostPosted: Wed Jun 22, 2016 7:28 am    Post subject: miniup reports an error when talking to miniupnpd: ai_flags Reply with quote

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
Code:
upnpc -l
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
View user's profile Send private message
ntadmin



Joined: 22 Jun 2016
Posts: 2
Location: England

PostPosted: Thu Jun 23, 2016 7:27 am    Post subject: Reply with quote

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


Joined: 14 Apr 2007
Posts: 1469

PostPosted: Fri Jun 24, 2016 12:19 pm    Post subject: Reply with quote

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.
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.