summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* eth: fix 'warning: No MAC address set' when using EEPROM MACBaruch Siach2010-12-161-1/+3
| | | | | | | | | | When retrieving the MAC address from EEPROM, we must notify the networking core at eth registration time. Otherwise we get the 'No MAC address set' warning on the first network access, and the MAC address is set to a random value instead of the real one. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: unify documentation for 'tftp'Robert Schwebel2010-11-011-28/+21
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* net: make locally used functions staticSascha Hauer2010-10-211-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ping: make locally used functions staticSascha Hauer2010-10-211-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netconsole: remove non-needed setbaudrateJean-Christophe PLAGNIOL-VILLARD2010-09-241-6/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: rework the mii supportJean-Christophe PLAGNIOL-VILLARD2010-08-271-1/+1
| | | | | | | this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: update doxygen informationSascha Hauer2010-06-281-8/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: resend requests after timeoutSascha Hauer2010-06-281-5/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: Use generic progression barSascha Hauer2010-06-281-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: Add push supportSascha Hauer2010-06-282-37/+155
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Baruch Siach <baruch@tkos.co.il>
* tftp: use generic progression barSascha Hauer2010-06-281-21/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: remove unused variablesSascha Hauer2010-06-281-8/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use a random mac address if the current device does not have a valid ↵Sascha Hauer2010-06-221-1/+10
| | | | | | address Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ping: resolv hostnamesSascha Hauer2010-06-171-1/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add dns supportSascha Hauer2010-06-173-0/+269
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add netconsole supportSascha Hauer2010-06-173-0/+236
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-34/+14
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove old network stackSascha Hauer2010-06-171-897/+47
| | | | | | All network commands now use the new stack, so remove the old one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: consider rarp support as outdated. Remove itSascha Hauer2010-06-173-106/+0
| | | | | | | It is disabled in all defconfigs and probably broken for longer. Remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement nfs using new network stackSascha Hauer2010-06-171-370/+346
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement ping using new network stackSascha Hauer2010-06-171-73/+74
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement tftp using new network stackSascha Hauer2010-06-171-145/+126
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement dhcp using new network stackSascha Hauer2010-06-171-311/+180
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused sntp.hSascha Hauer2010-06-171-61/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Implement a new network stackSascha Hauer2010-06-171-4/+536
| | | | | | | | | | | | | | | | | The old network stack has some bad limitations: - network commands are required to call NetLoop() which only returns when the network layer wants to. Instead we now use a net_poll() function which returns after handling one packet (or immediately if no packet is available). - There can be only one packet handler which makes it impossible to handle multiple connections - CamelCaseMakesItHardToRead The new network stack is implemented as a parallel universe. Currently all commands still use the old stack. They are converted in subsequent patches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove need for eth_halt/eth_openSascha Hauer2010-06-173-29/+49
| | | | | | | | | | | We used to eth_open/eth_halt the network devices during NetLoopInit which is called whenever the user enters a network command. Change this behaviour so that the current network device gets opened when making it the current one. With this change it's always possible to send packages and we are able to implement a new network stack in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp return valueJan Weitzel2010-04-141-2/+1
| | | | | | | | tftp returns transfered bytes on success and 1 in error case. Bad for scripting. Change to 0 on success Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* put only once used function inlineSascha Hauer2010-02-011-13/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* replace ET_DEBUG with pr_debugSascha Hauer2010-02-013-50/+25
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-014-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move tftp/nfs specific code to net/*Sascha Hauer2010-02-012-2/+126
| | | | | | | This adds a few bytes of binary space but is done to put the code where it belongs to. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused NETCONSOLE stuffSascha Hauer2010-02-011-10/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-153-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove maxargsSascha Hauer2009-10-192-2/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: return COMMAND_ERROR_USAGESascha Hauer2009-10-191-4/+2
| | | | | | | instead of calling u_boot_cmd_usage in each command to safe space. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove global variable BootFileSascha Hauer2009-10-191-2/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* nfs: allow only serveripSascha Hauer2009-10-191-9/+1
| | | | | | Do not allow to pass serverip via commandline. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* pass filename to nfs and tftp start functionsSascha Hauer2009-10-192-4/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* nfs: no default filename, we always have a filenameSascha Hauer2009-10-191-21/+8
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* ping: shorten usage infoSascha Hauer2009-10-191-1/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* ping: do not return -1 in commandSascha Hauer2009-10-191-5/+2
| | | | | | Also, print usage if not enough arguments given. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: use debug macroSascha Hauer2009-10-191-6/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: coding styleSascha Hauer2009-10-191-47/+32
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: reorder to get rid of static function declarationsSascha Hauer2009-10-191-15/+7
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove never reached state STATE_BAD_MAGICSascha Hauer2009-10-171-13/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove never reached state STATE_TOO_LARGESascha Hauer2009-10-171-14/+2
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove volatile from variablesSascha Hauer2009-10-171-4/+4
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused codeSascha Hauer2009-10-171-11/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: consolidate different puts to printfSascha Hauer2009-10-171-7/+6
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove unnecessary gateway informationSascha Hauer2009-10-171-11/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>