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 

Eventing Syste, Integrating miniupnpc and miniupnpc-libevent

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



Joined: 18 Jul 2016
Posts: 13

PostPosted: Mon Jul 25, 2016 2:25 am    Post subject: Eventing Syste, Integrating miniupnpc and miniupnpc-libevent Reply with quote

Could you please advise what needs to be done to support eventing as this is functionality specified by the WANIPConnection:2 Service For UPnP Version 1.0 Status: Standardized DCP (SDCP) Date: September 10, 2010
I did not find (Eventing of ) SystemUpdateID (see definition below) and found your replay :

"No, MiniUPnPc is not implementoing UPnP eventing.
miniupnpc-libevent does react to new devices and even implement upnp events !
https://github.com/miniupnp/miniupnp/tree/master/miniupnpc-libevent

So what would be necessary to get support for this variable in UPnP client (Control point)?
I see 2 relevant projects:
miniupnpc-async igd_desc_parse.c: fix buffer overflow 11 months ago
miniupnpc-libevent add a few checks 4 months ag

Which one would be easier to integrate which one has SUBSCRIBE already implemented?
--
Eventing of SystemUpdateID
This variable is evented when NAT or firewall rules have been changed. The eventing of this variable MUST be done in the same time when PortMappingNumberofEntries is evented.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

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

I'm sorry I cannot answer your questions, I can't tell how you can implement UPnP eventing on Control point side.

miniupnpc-libevent depends on patched libevent
_________________
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 5:45 pm    Post subject: Eventing Syste, Integrating miniupnpc and miniupnpc-libevent Reply with quote

miniupnp wrote:
I'm sorry I cannot answer your questions, I can't tell how you can implement UPnP eventing on Control point side.

miniupnpc-libevent depends on patched libevent

Could you please advise what is miniupnpc-libevent for and relationship with miniupnpc ?
It is not described on http://miniupnp.free.fr/files/ , but ist code is under miniupnp/miniupnpc-libevent/
It looks like alternative implementation of M-SEARCH but using libevent. Since "miniupnpc" is used Does this code support all Control Point client UPnP IGD GENA interface events or some specific list?
TODO does not indicate any missing events, but objective is not described (REDAME?).
Also I see miniupnpd/upnpdescgen.c defines events like #define SYSTEMUPDATEID_MAGICALVALUE (252) but I do not see it is used
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Fri Aug 05, 2016 10:23 pm    Post subject: Reply with quote

the README https://github.com/miniupnp/miniupnp/blob/master/miniupnpc-libevent/README describes what miniupnpc-libevent is.
This is a work in progress, please study code to know more.
All events are supposed to be processed the same way. see upnpc_set_event_callback()
https://github.com/miniupnp/miniupnp/blob/master/miniupnpc-libevent/miniupnpc-libevent.c#L818
_________________
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 Feature Request 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.