<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/iputils.git/rdisc.c, branch mdev_fix</title>
<subtitle>github.com: iputils/iputils.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/'/>
<entry>
<title>make `getaddrinfo()` and `getnameinfo()` usage consistent</title>
<updated>2015-06-17T22:45:02+00:00</updated>
<author>
<name>Pavel Šimerda</name>
<email>psimerda@redhat.com</email>
</author>
<published>2015-06-12T04:51:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=37953bfbe4bd1b4c2be26d837dcfa2934d5a4e16'/>
<id>37953bfbe4bd1b4c2be26d837dcfa2934d5a4e16</id>
<content type='text'>
Use modern name resolution functions and use them in a consistent
manner.

 * Avoid obsolete `gethostbyname()`, `gethostbyname2()` and `gethostbyaddr()`
 * Maintain consistency in variable names and error messages
 * Leave IDN handling up to name resolution functions

Note: This patch provides a primitive translation of calls to obsolete
functions to calls to modern functions but more changes are needed to
process the whole result lists instead of using just the first result.

Note: This patch skips functions that use jumps to avoid making more
damage than benefits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use modern name resolution functions and use them in a consistent
manner.

 * Avoid obsolete `gethostbyname()`, `gethostbyname2()` and `gethostbyaddr()`
 * Maintain consistency in variable names and error messages
 * Leave IDN handling up to name resolution functions

Note: This patch provides a primitive translation of calls to obsolete
functions to calls to modern functions but more changes are needed to
process the whole result lists instead of using just the first result.

Note: This patch skips functions that use jumps to avoid making more
damage than benefits.
</pre>
</div>
</content>
</entry>
<entry>
<title>rdisc: ifdef only apply on historic glibc &lt; 2</title>
<updated>2014-04-24T00:12:52+00:00</updated>
<author>
<name>David Heidelberger</name>
<email>david.heidelberger@ixit.cz</email>
</author>
<published>2014-04-24T00:02:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=cf8fa7aafa2a0fd6c99dfda1984a4e02a24bdebd'/>
<id>cf8fa7aafa2a0fd6c99dfda1984a4e02a24bdebd</id>
<content type='text'>
This fix compilation on uclibc accidentally broken by
commit c9ecbd72ff6787354111a47985b1bee5d699e39d.
Tested on uClibc 0.9.33.2 with 3.4 headers.

Signed-off-by: David Heidelberger &lt;david.heidelberger@ixit.cz&gt;
Tested-by: Gustavo Zacarias &lt;gustavo@zacarias.com.ar&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix compilation on uclibc accidentally broken by
commit c9ecbd72ff6787354111a47985b1bee5d699e39d.
Tested on uClibc 0.9.33.2 with 3.4 headers.

Signed-off-by: David Heidelberger &lt;david.heidelberger@ixit.cz&gt;
Tested-by: Gustavo Zacarias &lt;gustavo@zacarias.com.ar&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>replace u_TYPE with compilant unsigned TYPE</title>
<updated>2014-04-18T12:23:59+00:00</updated>
<author>
<name>David Heidelberger</name>
<email>david.heidelberger@ixit.cz</email>
</author>
<published>2014-03-08T22:34:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=cc6a2cb4097e47044dead9d02273c7429cd37588'/>
<id>cc6a2cb4097e47044dead9d02273c7429cd37588</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix ifdef to apply only on uclibc and old glibc</title>
<updated>2014-04-18T12:23:19+00:00</updated>
<author>
<name>David Heidelberger</name>
<email>david.heidelberger@ixit.cz</email>
</author>
<published>2014-03-08T22:31:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=c9ecbd72ff6787354111a47985b1bee5d699e39d'/>
<id>c9ecbd72ff6787354111a47985b1bee5d699e39d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix include paths, now compile with both glibc and musl</title>
<updated>2014-04-18T12:23:19+00:00</updated>
<author>
<name>David Heidelberger</name>
<email>david.heidelberger@ixit.cz</email>
</author>
<published>2014-03-08T22:30:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=3b72a8ed0942e0baeb23a6becc98680fe9dc8460'/>
<id>3b72a8ed0942e0baeb23a6becc98680fe9dc8460</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rdisc: Fix memory leakage in initifs() in error path.</title>
<updated>2013-01-25T10:44:37+00:00</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2013-01-25T10:44:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=b39a4fe05109364e8a08db1661b7cbc139c7f916'/>
<id>b39a4fe05109364e8a08db1661b7cbc139c7f916</id>
<content type='text'>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ping,rdisc: Use macro to get odd byte when checksumming.</title>
<updated>2012-11-28T11:28:11+00:00</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2012-11-28T11:28:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=83b1ff929d47621ba3fc826fae30bfde819a5dec'/>
<id>83b1ff929d47621ba3fc826fae30bfde819a5dec</id>
<content type='text'>
Commit 636727fd ("ping,rdisc: Optimize checksumming.") introduced
le16toh(), but it was not available on old systems.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 636727fd ("ping,rdisc: Optimize checksumming.") introduced
le16toh(), but it was not available on old systems.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ping,rdisc: Optimize checksumming.</title>
<updated>2012-11-28T03:02:18+00:00</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2012-11-27T17:48:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=636727fd0e719a6918f823fa4583b77683220643'/>
<id>636727fd0e719a6918f823fa4583b77683220643</id>
<content type='text'>
- On x86{-64}, htons(*(u_char *)w &lt;&lt; 8) generates shift 8 bits and
  rotate 8 bits (swap bytes), which does nothing.  This is not good.
- Calculate checksum on properly-aligned buffer, instead of byte-aligned
  buffer.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- On x86{-64}, htons(*(u_char *)w &lt;&lt; 8) generates shift 8 bits and
  rotate 8 bits (swap bytes), which does nothing.  This is not good.
- Calculate checksum on properly-aligned buffer, instead of byte-aligned
  buffer.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rdisc: Missing new line after usage.</title>
<updated>2012-11-20T11:43:23+00:00</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2012-11-20T11:43:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=3fc770190b62ada8357df909bb755377f726c1ac'/>
<id>3fc770190b62ada8357df909bb755377f726c1ac</id>
<content type='text'>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rdisc_srv,Makefile: Fix build.</title>
<updated>2012-11-15T18:21:14+00:00</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
<email>yoshfuji@linux-ipv6.org</email>
</author>
<published>2012-11-15T18:13:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/iputils.git/commit/?id=9eb5ba2d3b495f354d9db19f05f0746968710d99'/>
<id>9eb5ba2d3b495f354d9db19f05f0746968710d99</id>
<content type='text'>
With "make rdisc_src.o", we got
| rdisc.c: In function 'pr_pack':
| rdisc.c:889:17: error: incompatible types when assigning to type 'struct in_addr' from type 'u_int32_t'
| rdisc.c: In function 'finish':
| rdisc.c:959:7: warning: unused variable 'i' [-Wunused-variable]

With "make rdisc_srv", we got many multiple definition errors because -c was
missing to make rdisc_srv.o.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With "make rdisc_src.o", we got
| rdisc.c: In function 'pr_pack':
| rdisc.c:889:17: error: incompatible types when assigning to type 'struct in_addr' from type 'u_int32_t'
| rdisc.c: In function 'finish':
| rdisc.c:959:7: warning: unused variable 'i' [-Wunused-variable]

With "make rdisc_srv", we got many multiple definition errors because -c was
missing to make rdisc_srv.o.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
