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 

natpmp.c index issue

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



Joined: 22 Sep 2016
Posts: 2
Location: Canada

PostPosted: Thu Sep 22, 2016 11:42 pm    Post subject: natpmp.c index issue Reply with quote

I've been working on getting miniupnpd working with the latest ipfw in Freebsd. So far the nat code works well and I am working on the pinhole code.

Noticed in pcpserver.c that there is a missing
Code:
index--;
when a redirect or pinhole is deleted. You can see the correct version in natpmp.c which has the decrement on deletion.
Back to top
View user's profile Send private message
Avernar



Joined: 22 Sep 2016
Posts: 2
Location: Canada

PostPosted: Fri Sep 23, 2016 1:45 am    Post subject: Reply with quote

Never mind. After staring at the code I noticed it exits the loop after finding a match.

The ifdefs and what was or wasn't part of the for loop threw me off.

Continuing to work on my pinhole code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd 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.