- May 12, 2011
-
-
Luca Ceresoli authored
This removes the following checkpatch issues: - WARNING: braces {} are not necessary for single statement blocks - WARNING: braces {} are not necessary for any arm of this statement Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com>
-
Luca Ceresoli authored
This removes the following checkpatch issues: - ERROR: space prohibited after that open parenthesis '(' - ERROR: space prohibited before that close parenthesis ')' - ERROR: space prohibited after that open square bracket '[' - ERROR: space prohibited after that '&' (ctx:WxW) - ERROR: spaces required around that '=' (ctx:VxW) - ERROR: space required before the open parenthesis '(' - ERROR: space required after that ',' (ctx:VxV) - ERROR: need consistent spacing around '+' (ctx:WxV) - WARNING: unnecessary whitespace before a quoted newline - WARNING: please, no spaces at the start of a line - WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
-
Luca Ceresoli authored
This removes the following checkpatch errors: - ERROR: do not initialise globals to 0 or NULL - ERROR: spaces required around that '=' (ctx:VxV) - ERROR: that open brace { should be on the previous line Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
-
Luca Ceresoli authored
This removes the following checkpatch warning: - WARNING: line over 80 characters There are three such warnings left. The first is hard to fix with cosmetic-only changes without compromising code readability, so I'm leaving it as it is for now: WARNING: line over 80 characters #1537: FILE: net.c:1537: + [4 tabs] memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, ... The other two cannot be fixed without splitting string literals, so it is preferred to keep them longer than 80 characters. Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
-
Luca Ceresoli authored
This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by:
Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by:
Detlev Zundel <dzu@denx.de>
-
Simon Guinot authored
Netconsole use the environment variable `ncip' to configure the destination IP. `serverip' don't need to be defined. Signed-off-by:
Simon Guinot <sguinot@lacie.com>
-
- Apr 27, 2011
-
-
Gray Remlin authored
If neither CONFIG_CMD_PING or CONFIG_CMD_SNTP are defined but CONFIG_CMD_DNS is, a compile-time error will occur due to the absence of a goto label. Signed-off-by:
Gray Remlin <gryrmln@gmail.com>
-
- Nov 28, 2010
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Oct 12, 2010
-
-
Peter Tyser authored
Most people don't use the 'rarpboot' command, so only enable it when CONFIG_CMD_RARP is defined. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jun 21, 2010
-
-
Fillod Stephane authored
TFTP'ing a file of size 1747851 bytes with CONFIG_IP_DEFRAG and CONFIG_TFTP_BLOCKSIZE set to 4096 fails with a timeout, because the last fragment is not taken into account. This patch fixes IP fragments having less than 8 bytes of payload. Signed-off-by:
Stephane Fillod <stephane.fillod@grassvalley.com> Acked-by:
Alessandro Rubini <rubini@gnudd.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- May 03, 2010
-
-
Robin Getz authored
For some reason, (which I can't find any documentation on), if U-Boot gives a port number higher than 17500 to a Microsoft DNS server, the server will reply to port 17500, and U-Boot will ignore things (since that isn't the port it asked the DNS server to reply to). This fixes that by ensuring the random port number is less than 17500. Signed-off-by:
Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jan 17, 2010
-
-
Dirk Behme authored
There are boards out there that do not have network support in U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This makes it desirable to be able to port network configuration (like the IP address) to the Linux kernel. We should not make the passing of the IP configuration to Linux dependent on U-Boot features / settings. For this, make getenv_IPaddr() global. This fixes build error u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr' on various architectures. Signed-off-by:
Dirk Behme <dirk.behme@googlemail.com> Acked-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Dec 14, 2009
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Nov 24, 2009
-
-
Remy Bohmer authored
'netretry = once' does the same as 'netretry = yes', because it is not stored when it was tried once. Signed-off-by:
Remy Bohmer <linux@bohmer.net> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Aug 25, 2009
-
-
Alessandro Rubini authored
The defragmenting code is enabled by CONFIG_IP_DEFRAG; the code is useful for TFTP and NFS transfers. The user can specify the maximum defragmented payload as CONFIG_NET_MAXDEFRAG (default 16k). Since NFS has a bigger per-packet overhead than TFTP, the static reassembly buffer can hold CONFIG_NET_MAXDEFRAG + the NFS overhead. The packet buffer is used as an array of "hole" structures, acting as a double-linked list. Each new fragment can split a hole in two, reduce a hole or fill a hole. No support is there for a fragment overlapping two diffrent holes (i.e., thre new fragment is across an already-received fragment). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Aug 08, 2009
-
-
Robin Getz authored
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by:
Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jul 23, 2009
-
-
Robin Getz authored
Linux's netconsole works much better when you can pass it the MAC address of the server. (otherwise it just uses broadcast, which everyone else on my network complains about :) This sets the env var "serveraddr" (to match ethaddr), so that you can pass it to linux with whatever bootargs you want to.... addnetconsole=set bootargs $(bootargs) netconsole=@$(ipaddr)/eth0,@$(serverip)/$(serveraddr) Signed-of-by:
Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Michael Zaidman authored
Fixed the DHCP/BOOTP/RARP regression introduced in u-boot-2009.06 by initializing our IP addr to 0 in order to accept any IP addr assigned to us by the DHCP/BOOTP/RARP server. Ack-by:
Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by:
Michael Zaidman <michael.zaidman@gmail.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Robin Getz authored
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 > > DNS can be enabled by setting CFG_CMD_DNS. After performing a query, > the serverip environment var is updated. > > Probably there are some cosmetic issues with the patch. Unfortunatly I > do not have the time to correct these. So if anybody else likes DNS > support in U-Boot and has the time, feel free to patch it in the main tree. Here it is again - slightly modified & 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 <rgetz@blackfin.uclinux.org> Signed-off-by:
Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Mike Frysinger authored
The net code is mostly consistent in using 'Packet' rather than 'Pkt', so rename the minor detractor to follow suite. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- May 15, 2009
-
-
Heiko Schocher authored
Fix some issues introduced from commit: 2f70c49e suggested by Mike Frysinger. - added some comment for the env_id variable in common_cmd_nvedit.c - moved some variables in fn scope instead of file scope - NetInitLoop now static void Signed-off-by:
Heiko Schocher <hs@denx.de> Acked-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Apr 20, 2009
-
-
Michael Zaidman authored
The patch fixes the bug of partial initialization of global network parameters. Upon u-boot's start up the first ping command causes a failure of the consequent TFTP command. It happens in the recently added mechanism of the NetLoop initialization where initialization of global network parameters is separated in the NetInitLoop routine which is called per env_id change. Thus, ping request will initialize the network parameters necessary for ping operation only, afterwards the env_changed_id will be set to the env_id that will prevent all following initialization requests from other protocols. The problem is that the initialized by ping subset of network parameters is not sufficient for other protocols and particularly for TFTP which requires the NetServerIp also. Signed-off-by:
Michael Zaidman <michael.zaidman@gmail.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Mar 20, 2009
-
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
Mike Frysinger authored
Now that our printf functions support the %pI4 modifier like the kernel, let's drop the inflexible print_IPaddr() function and covert over to the %pI4 modifier. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
- Feb 23, 2009
-
-
Heiko Schocher authored
NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init part of the NetLoop function in a seperate function. Signed-off-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jan 29, 2009
-
-
Olav Morken authored
This patch removes volatile from: volatile IP_t *ip = (IP_t *)xip; Due to a bug, avr32-gcc will assume that ip is aligned on a word boundary when using volatile, which causes an exception since xip isn't aligned on a word boundary. Signed-off-by:
Gunnar Rangoy <gunnar@rangoy.com> Signed-off-by:
Paul Driveklepp <pauldriveklepp@gmail.com> Signed-off-by:
Olav Morken <olavmrk@gmail.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Dec 06, 2008
-
-
Peter Tyser authored
Use the GNU 'date' command to auto-generate a new U-Boot timestamp on every compile. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Dec 05, 2008
-
-
Peter Tyser authored
Ignore IP packets which have the "more fragments" flag bit set. This flag indicates the IP packet is fragmented and must be ignored by U-Boot. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Peter Tyser authored
These defines were pulled from the "Add simple IP/UDP fragmentation support" patch from Frank Haverkamp <haver@vnet.ibm.com>. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Oct 18, 2008
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
Bartlomiej Sieka authored
Enforce millisecond semantics of the first argument to NetSetTimeout() -- the change is transparent for well-behaving boards (CFG_HZ == 1000 and get_timer() countiing in milliseconds). Rationale for this patch is to enable millisecond granularity for network-related timeouts, which is needed for the upcoming automatic software update feature. Summary of changes: - do not scale the first argument to NetSetTimeout() by CFG_HZ - change timeout values used in the networking code to milliseconds Signed-off-by:
Rafal Czubak <rcz@semihalf.com> Signed-off-by:
Bartlomiej Sieka <tur@semihalf.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jul 13, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Jean-Christophe PLAGNIOL-VILLARD authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Jul 10, 2008
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jun 05, 2008
-
-
Remy Bohmer authored
U-boot can complain a lot about 'checksum bad' when it is attached to the network. It is annoying for ordinary users who start to doubt the network connection in general when they see messages like this. This is caused by the routine NetCksumOk() which cannot handle IP-headers longer than 20 bytes. Those packages can be ignored anyway by U-boot, so we trash them now before checking the checksum. Signed-off-by:
Remy Bohmer <linux@bohmer.net> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- May 20, 2008
-
-
Wolfgang Denk authored
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Apr 29, 2008
-
-
Guennadi Liakhovetski authored
Currently the timeout waiting for an ARP reply is hard set to 5 seconds. On i.MX31ADS due to a hardware "strangeness" up to four first IP packets to the boards get lost, which typically are ARP replies. By configuring the timeout to a lower value we significantly improve the first network transfer time on this board. The timeout is specified in milliseconds, later internally it is converted to deciseconds, because it has to be converted to hardware ticks, and CFG_HZ ranges from 900 to 27000000 on different boards. Signed-off-by:
Guennadi Liakhovetski <lg@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jan 04, 2008
-
-
Matthias Fuchs authored
When CONFIG_NET_DO_NOT_TRY_ANOTHER is defined U-Boot's networking stack does not automatically switch to another interface. This patch does not touch the default behavior. Signed-off-by:
Matthias Fuchs <matthias.fuchs@esd-electronics.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
Rafal Jaworowski authored
The purpose of this routine is receiving a single network frame, outside of U-Boot's NetLoop(). Exporting it to standalone programs that run on top of U-Boot will let them utilise networking facilities. For sending a raw frame the already existing eth_send() can be used. The direct consumer of this routine is the newly introduced API layer for external applications (enabled with CONFIG_API). Signed-off-by:
Rafal Jaworowski <raj@semihalf.com> Signed-off-by:
Piotr Kruszynski <ppk@semihalf.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-