<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/stun/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/stun/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/stun/bugs/</id><updated>2010-09-23T19:18:44Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>some typos in stun-client-0-96.exe</title><link href="https://sourceforge.net/p/stun/bugs/23/" rel="alternate"/><published>2010-09-23T19:18:44Z</published><updated>2010-09-23T19:18:44Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net927c87f01619a8106a17347cabe31e6edc0f7cd6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;for example:&lt;br /&gt;
Primary: Independedt Mapping, Address Dependendent Filter,&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Wrong Attribute: SOURCE-ADDRESS</title><link href="https://sourceforge.net/p/stun/bugs/22/" rel="alternate"/><published>2009-08-28T10:03:49Z</published><updated>2009-08-28T10:03:49Z</updated><author><name>Razvan</name><uri>https://sourceforge.net/u/rpistolea/</uri></author><id>https://sourceforge.net636c2c173450a21987e0de72d0aa355bc29c7e67</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Problem occures when then server receives a message on the alternate ip.&lt;br /&gt;
The port on which it sends the message is ok; but the field in the SOURCE-ADDRESS is wrong.&lt;/p&gt;
&lt;p&gt;I have tested this on some public servers with twinkle as a client.&lt;/p&gt;
&lt;p&gt;I have attached a wireshark output; see frame 18 (line 296 and line 280):&lt;br /&gt;
Src Port: stun (3478)     as reported by wireshark and is correct behavior&lt;br /&gt;
Port: 3479                     as reported by SOURCE_ADDRESS and is wrong&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Client hangs if no answer comes from the server</title><link href="https://sourceforge.net/p/stun/bugs/21/" rel="alternate"/><published>2008-11-04T01:54:31Z</published><updated>2008-11-04T01:54:31Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd70ac145ad3c7db2398b77315ae066112c405a46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm using the stun client to monitor public IP changes in a modem-router. I found that if no answer arrives from the stun server, the client "hangs" inside getMessage() in udp.cxx. The reason is this function calls recvfrom() to wait INDEFINITELY for the packet from the server.&lt;br /&gt;
I believe a "reasonable" timeout should be used in this function. What do you think? Do you want me to introduce the change? Is there a CVS for this project?&lt;br /&gt;
I wait for your comments. Bye,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>-p option not working in stun client</title><link href="https://sourceforge.net/p/stun/bugs/20/" rel="alternate"/><published>2007-08-28T09:05:46Z</published><updated>2007-08-28T09:05:46Z</updated><author><name>Hansson</name><uri>https://sourceforge.net/u/hanssonj/</uri></author><id>https://sourceforge.netd8901ee1a16b4a80fd1a035e496793192e0a8719</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hardcoded value of port used instead of STUN_PORT&lt;/p&gt;
&lt;p&gt;Line number 969 in stun.cxx&lt;/p&gt;
&lt;p&gt;Please fix&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>compilation error: stun.cxx:681:7: error: #error Need some w</title><link href="https://sourceforge.net/p/stun/bugs/19/" rel="alternate"/><published>2007-03-12T08:47:13Z</published><updated>2007-03-12T08:47:13Z</updated><author><name>Tomasz Zieleniewski</name><uri>https://sourceforge.net/u/tzieleniewski/</uri></author><id>https://sourceforge.net15067792aff1fc657ccf1c0092ad77a212a8eda6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried to compile server under 32 bit and 64 CPU machine under Debian OS.&lt;br /&gt;
On the first 32 bit machine there was no error but on the second 64 bit CPU there was the following one:&lt;/p&gt;
&lt;p&gt;stun.cxx:681:7: error: #error Need some way to seed the random number generator&lt;br /&gt;
stun.cxx: In function ‘int stunRand()’:&lt;br /&gt;
stun.cxx:683: warning: ‘tick’ is used uninitialized in this function&lt;br /&gt;
make: *** [stun.o]&lt;/p&gt;
&lt;p&gt;My machine:&lt;/p&gt;
&lt;p&gt;stun@sen:~/src/stund$ uname -a&lt;br /&gt;
Linux sen 2.6.18-4-amd64 #1 SMP Wed Feb 21 14:29:38 UTC 2007 x86_64 GNU/Linux&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File descriptors not closed</title><link href="https://sourceforge.net/p/stun/bugs/18/" rel="alternate"/><published>2007-02-09T18:38:08Z</published><updated>2007-02-09T18:38:08Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb5f3a48f624b74823d9921edfb3dc35c4c921ff4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The file descriptors for client sockets (from where stun requests are sent) are not closed. This causes a problem when this the utility is invoked as a library call rather than a standalone app.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>License text missing</title><link href="https://sourceforge.net/p/stun/bugs/17/" rel="alternate"/><published>2006-10-16T15:24:28Z</published><updated>2006-10-16T15:24:28Z</updated><author><name>Sven M.</name><uri>https://sourceforge.net/u/smu/</uri></author><id>https://sourceforge.net0951976b649d412480bf94c3ef4cf487a3966f0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The project page states the license to be the Vovida&lt;br /&gt;
Software License 1.0, but neither the source archive&lt;br /&gt;
nor the SF.net pages show the content of the license.&lt;br /&gt;
What's worse is that no source code file shows a&lt;br /&gt;
copyright notice and especially no copyright notice&lt;br /&gt;
referencing the license text. What this essentially&lt;br /&gt;
means is that depending on local law, the source code&lt;br /&gt;
either can't be used or distributed at all or is put&lt;br /&gt;
into the public domain (i.e. absolutely no liability&lt;br /&gt;
but also no use or distribution restrictions).&lt;/p&gt;
&lt;p&gt;Please fix this. Hints on how to fix this can be taken&lt;br /&gt;
from the GNU docs of how to apply the GPL to some code&lt;br /&gt;
(though taking the instructions with a grain of salt,&lt;br /&gt;
i.e. replacing the GPL with the Vovida Software License&lt;br /&gt;
1.0)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Sven&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>background option -b not working on linux</title><link href="https://sourceforge.net/p/stun/bugs/16/" rel="alternate"/><published>2006-02-27T17:29:46Z</published><updated>2006-02-27T17:29:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd58c6d23323461c26748b68b9eda2b51a6153c4d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;concearning STUN server version 0.96 &lt;/p&gt;
&lt;p&gt;When running the stun server with the -b option the&lt;br /&gt;
child process created is killed after a few seconds. &lt;br /&gt;
Reason of this is that a child process is created and&lt;br /&gt;
the parent stopped after that. &lt;br /&gt;
In Linux when a parent is killed (or stopped) all its&lt;br /&gt;
child processes are killed as wel. &lt;br /&gt;
This has as result that the child process to run in&lt;br /&gt;
background is terminated a few seconds after it is&lt;br /&gt;
created. &lt;/p&gt;
&lt;p&gt;To fix this the child should be daemonized. &lt;br /&gt;
this can be done by adding the following code in&lt;br /&gt;
server.cxx: &lt;/p&gt;
&lt;p&gt;#ifndef WIN32 &lt;br /&gt;
... &lt;br /&gt;
/* adding following includes after line 12 in server.cxx*/ &lt;br /&gt;
#include &amp;lt;fcntl.h&amp;gt; &lt;br /&gt;
... &lt;br /&gt;
#endif &lt;/p&gt;
&lt;p&gt;... &lt;br /&gt;
/* in the main function (line 214 file server.cxx) */ &lt;br /&gt;
if (pid == 0) //child or not using background &lt;br /&gt;
{ &lt;br /&gt;
if(background) &lt;br /&gt;
{ &lt;br /&gt;
pid_t sid; &lt;/p&gt;
&lt;p&gt;/* Create a new SID for the&lt;br /&gt;
child process */ &lt;br /&gt;
sid = setsid(); &lt;br /&gt;
if (sid &amp;lt; 0) &lt;br /&gt;
{ &lt;br /&gt;
exit(-1); &lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;verbose = false; &lt;/p&gt;
&lt;p&gt;/* close standard file&lt;br /&gt;
descriptors and redirect them to /dev/null */ &lt;br /&gt;
close(0); &lt;br /&gt;
close(1); &lt;br /&gt;
close(2); &lt;br /&gt;
int si = open("/dev/null",&lt;br /&gt;
O_RDWR); &lt;br /&gt;
dup(si); &lt;br /&gt;
dup(si); &lt;br /&gt;
} &lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;StunServerInfo info; &lt;br /&gt;
bool ok = stunInitServer(info, myAddr, altAddr,&lt;br /&gt;
myMediaPort, verbose); &lt;/p&gt;
&lt;p&gt;... &lt;/p&gt;
&lt;p&gt;With this it can be used in a script in the /etc/init.d&lt;br /&gt;
directory to automatically start it up when the linux&lt;br /&gt;
server is restarted. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>stunServer can't work for long time?</title><link href="https://sourceforge.net/p/stun/bugs/15/" rel="alternate"/><published>2005-11-29T07:47:48Z</published><updated>2005-11-29T07:47:48Z</updated><author><name>oldfriend2001</name><uri>https://sourceforge.net/u/oldfriend2001/</uri></author><id>https://sourceforge.net266fd262a51e1226e9482f41baad4f8f956622f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when stunServer working for long time,then it can't &lt;br /&gt;
ack to stunClient? why?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>stunServerProcessMsg incorrect in stun.h</title><link href="https://sourceforge.net/p/stun/bugs/14/" rel="alternate"/><published>2005-11-08T09:36:35Z</published><updated>2005-11-08T09:36:35Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netf2ca20248c826df9f0512d9f17c4be7577493805</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;stunServerProcessMsg declaration in stun.h takes 11&lt;br /&gt;
parameters whereas the actual implementation in&lt;br /&gt;
stun.cxx takes 12.&lt;/p&gt;
&lt;p&gt;stun.h:&lt;br /&gt;
bool&lt;br /&gt;
stunServerProcessMsg( char* buf,&lt;br /&gt;
unsigned int bufLen,&lt;br /&gt;
StunAddress4&amp;amp; from, &lt;br /&gt;
StunAddress4&amp;amp; myAddr,&lt;br /&gt;
StunAddress4&amp;amp; altAddr, &lt;br /&gt;
StunMessage* resp,&lt;br /&gt;
StunAddress4* destination,&lt;br /&gt;
StunAtrString* hmacPassword,&lt;br /&gt;
bool* changePort,&lt;br /&gt;
bool* changeIp,&lt;br /&gt;
bool verbose);&lt;/p&gt;
&lt;p&gt;stun.cxx:&lt;br /&gt;
bool&lt;br /&gt;
stunServerProcessMsg( char* buf,&lt;br /&gt;
unsigned int bufLen,&lt;br /&gt;
StunAddress4&amp;amp; from, &lt;br /&gt;
StunAddress4&amp;amp; secondary,&lt;br /&gt;
StunAddress4&amp;amp; myAddr,&lt;br /&gt;
StunAddress4&amp;amp; altAddr, &lt;br /&gt;
StunMessage* resp,&lt;br /&gt;
StunAddress4* destination,&lt;br /&gt;
StunAtrString* hmacPassword,&lt;br /&gt;
bool* changePort,&lt;br /&gt;
bool* changeIp,&lt;br /&gt;
bool verbose)&lt;/p&gt;
&lt;p&gt;The missing parameter is: StunAddress4&amp;amp; secondary.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>