<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/net/dns.c, branch v2012.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>net: Refactor to separate the UDP handler from the ARP handler</title>
<updated>2012-05-23T22:52:53+00:00</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-05-23T07:59:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ece223b52ae9ab94f7ae83a9ac49b9f6319a94cb'/>
<id>ece223b52ae9ab94f7ae83a9ac49b9f6319a94cb</id>
<content type='text'>
Call a built-in dummy if none is registered... don't require
protocols to register a handler (eliminating dummies)
NetConsole now uses the ARP handler when waiting on arp
(instead of needing a #define hack in arp.c)
Clear handlers at the end of net loop

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Call a built-in dummy if none is registered... don't require
protocols to register a handler (eliminating dummies)
NetConsole now uses the ARP handler when waiting on arp
(instead of needing a #define hack in arp.c)
Clear handlers at the end of net loop

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Refactor to protect access to the NetState variable</title>
<updated>2012-05-23T22:46:21+00:00</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-05-23T07:59:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=22f6e99d5b0c54758646334c1153737a5585bd57'/>
<id>22f6e99d5b0c54758646334c1153737a5585bd57</id>
<content type='text'>
Changes to NetState now go through an accessor function called
net_set_state()

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changes to NetState now go through an accessor function called
net_set_state()

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: cosmetic: Un-typedef IP_t</title>
<updated>2012-05-23T22:46:00+00:00</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-05-23T07:58:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=594c26f8a7dbb83243a5168378a2164fa08d6dd8'/>
<id>594c26f8a7dbb83243a5168378a2164fa08d6dd8</id>
<content type='text'>
Rename IP header related things to IP_UDP. The existing definition
of IP_t includes UDP header, so name it to accurately describe the
structure.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename IP header related things to IP_UDP. The existing definition
of IP_t includes UDP header, so name it to accurately describe the
structure.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/dns.c: Fix endian conversion for big-endian in dns command</title>
<updated>2011-10-23T21:34:19+00:00</updated>
<author>
<name>Bernhard Kaindl</name>
<email>bernhard.kaindl@thalesgroup.com</email>
</author>
<published>2011-10-15T23:59:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6dc809f40721e5424367b09c8dbfe07da50b8ca9'/>
<id>6dc809f40721e5424367b09c8dbfe07da50b8ca9</id>
<content type='text'>
net/dns.c used endian conversion macros wrongly (shorts in reply
were put swapped into CPU, and then ntohs() was used to swap it
back, which broke on big-endian).

Fix this by using the correct linux conversion macro for reading
a unaligned short in network byte order: get_unaligned_be16()
Thanks to Mike Frysinger pointing at the best macro to use.

Tested on big and little endian qemu boards (mips and versatile)

Signed-off-by: Bernhard Kaindl &lt;bernhard.kaindl@thalesgroup.com&gt;
Cc: Pieter Voorthuijsen &lt;pieter.voorthuijsen@prodrive.nl&gt;
Cc: Robin Getz &lt;rgetz@blackfin.uclinux.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
net/dns.c used endian conversion macros wrongly (shorts in reply
were put swapped into CPU, and then ntohs() was used to swap it
back, which broke on big-endian).

Fix this by using the correct linux conversion macro for reading
a unaligned short in network byte order: get_unaligned_be16()
Thanks to Mike Frysinger pointing at the best macro to use.

Tested on big and little endian qemu boards (mips and versatile)

Signed-off-by: Bernhard Kaindl &lt;bernhard.kaindl@thalesgroup.com&gt;
Cc: Pieter Voorthuijsen &lt;pieter.voorthuijsen@prodrive.nl&gt;
Cc: Robin Getz &lt;rgetz@blackfin.uclinux.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NET: pass source IP address to packet handlers</title>
<updated>2011-05-12T17:38:19+00:00</updated>
<author>
<name>Luca Ceresoli</name>
<email>luca.ceresoli@comelit.it</email>
</author>
<published>2011-04-18T06:19:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=03eb129f8a37f7d7d222e02330cd806d3a0aef1d'/>
<id>03eb129f8a37f7d7d222e02330cd806d3a0aef1d</id>
<content type='text'>
This is needed for the upcoming TFTP server implementation.

This also simplifies PingHandler() and fixes rxhand_f documentation.

Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@comelit.it&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Acked-by: Detlev Zundel &lt;dzu@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed for the upcoming TFTP server implementation.

This also simplifies PingHandler() and fixes rxhand_f documentation.

Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@comelit.it&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Acked-by: Detlev Zundel &lt;dzu@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Coding Style cleanup; update CHANGELOG.</title>
<updated>2009-07-23T20:23:23+00:00</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2009-07-23T20:23:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=28958b8bea4c66629c5a22fd3c8b0d49df90383d'/>
<id>28958b8bea4c66629c5a22fd3c8b0d49df90383d</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add DNS support</title>
<updated>2009-07-23T05:53:44+00:00</updated>
<author>
<name>Robin Getz</name>
<email>rgetz@blackfin.uclinux.org</email>
</author>
<published>2009-07-20T18:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1a32bf41881b5dbe3119cb77a33572b4d462cabf'/>
<id>1a32bf41881b5dbe3119cb77a33572b4d462cabf</id>
<content type='text'>
On 04 Oct 2008 Pieter posted a dns implementation for U-Boot.

http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html
&gt;
&gt; DNS can be enabled by setting CFG_CMD_DNS. After performing a query,
&gt; the serverip environment var is updated.
&gt;
&gt; Probably there are some cosmetic issues with the patch. Unfortunatly I
&gt; do not have the time to correct these. So if anybody else likes DNS
&gt; support in U-Boot and has the time, feel free to patch it in the main tree.

Here it is again - slightly modified &amp; smaller:
  - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0)
  - README.dns is added
  - syntax is changed (now takes a third option, the env var to store
    the result in)
  - add a random port() function in net.c
  - sort Makefile in ./net/Makefile
  - dns just returns unless a env var is given
  - run through checkpatch, and clean up style issues
  - remove packet from stack
  - cleaned up some comments
  - failure returns much faster (if server responds, don't wait for
    timeout)
  - use built in functions (memcpy) rather than byte copy.

Signed-off-by: Robin Getz &lt;rgetz@blackfin.uclinux.org&gt;
Signed-off-by: Pieter Voorthuijsen &lt;pieter.voorthuijsen@prodrive.nl&gt;
Signed-off-by: Ben Warren &lt;biggerbadderben@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On 04 Oct 2008 Pieter posted a dns implementation for U-Boot.

http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html
&gt;
&gt; DNS can be enabled by setting CFG_CMD_DNS. After performing a query,
&gt; the serverip environment var is updated.
&gt;
&gt; Probably there are some cosmetic issues with the patch. Unfortunatly I
&gt; do not have the time to correct these. So if anybody else likes DNS
&gt; support in U-Boot and has the time, feel free to patch it in the main tree.

Here it is again - slightly modified &amp; smaller:
  - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0)
  - README.dns is added
  - syntax is changed (now takes a third option, the env var to store
    the result in)
  - add a random port() function in net.c
  - sort Makefile in ./net/Makefile
  - dns just returns unless a env var is given
  - run through checkpatch, and clean up style issues
  - remove packet from stack
  - cleaned up some comments
  - failure returns much faster (if server responds, don't wait for
    timeout)
  - use built in functions (memcpy) rather than byte copy.

Signed-off-by: Robin Getz &lt;rgetz@blackfin.uclinux.org&gt;
Signed-off-by: Pieter Voorthuijsen &lt;pieter.voorthuijsen@prodrive.nl&gt;
Signed-off-by: Ben Warren &lt;biggerbadderben@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
