summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* remove unused variable NetBootFileSizeSascha Hauer2009-10-173-11/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* tftp: remove default filename. We always have a filename givenSascha Hauer2009-10-171-15/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* make locally used funtion staticSascha Hauer2009-10-171-1/+1
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove sntp support. Has been broken for long enoughSascha Hauer2009-10-135-170/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* do not abuse the received packet to send back another packetSascha Hauer2009-10-131-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove unnecessary ifSascha Hauer2009-10-131-17/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* only the ping code is interested in the ping ipSascha Hauer2009-10-132-14/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove dead codeSascha Hauer2009-10-131-9/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: cleanup header fileSascha Hauer2009-10-136-98/+68
| | | | | | move contents of bootp.h to .c file and remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename bootp.c to dhcp.cSascha Hauer2009-10-132-1/+1
|
* net: refactor dhcp supportSascha Hauer2009-10-133-311/+23
| | | | | | | Remove bootp support. It has been broken for longer and is implemented in an ifdef desert. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ping.c: refactorSascha Hauer2009-10-131-9/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove switch/case in NetLoop()Sascha Hauer2009-10-136-57/+10
| | | | | | | | Instead of having a big switch/case for every protocol, do the right things in the individual functions before callong NetLoop(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootp: remove unnecessary counterSascha Hauer2009-10-133-5/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: check prerequisites in NetLoopIinit()Sascha Hauer2009-10-131-52/+49
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* return is not a functionSascha Hauer2009-10-131-11/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: split NetLoop in NetLoop and NetLoopInitSascha Hauer2009-10-133-2/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove unused state NETLOOP_RESTARTSascha Hauer2009-10-131-5/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove NetStartAgain()Sascha Hauer2009-10-134-60/+7
| | | | | | Do not let the network stack restart itself Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tftp: do not call NetStartAgain()Sascha Hauer2009-10-131-13/+5
| | | | | | | | | When we are in the middle of transferring a file it does not make sense to restart the transfer because we may transfer directly to flash in which case we would have to erase the flash prior to attempting again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a device_d to ethernet devicesSascha Hauer2009-07-212-12/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-211-1/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add eth_unregister functionSascha Hauer2009-04-071-0/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth.c: Fix return valuesSascha Hauer2009-04-061-6/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* allow changing of network deviceSascha Hauer2009-04-061-1/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused variablefredo2008-12-181-2/+0
| | | | | Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
* Ethernet: write MAC address to hardware when it's changedSascha Hauer2008-09-301-7/+5
| | | | | | | | | | Instead of writing the MAC address into the hardware on device open time write it to the hardware when the user changes the parameter. This way a user can change the MAC address in the hardware without actually using the device. This helps Linux Network drivers which expect a valid MAC address on startup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: fix calling of string_to_ip()Sascha Hauer2008-09-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix 62e2cd0a681c19fdc4180adf89e69709c696133bSascha Hauer2008-08-211-7/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove redundant assignmentSascha Hauer2008-08-201-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: initialize Net* variables unconditionally, not in a big switch/caseSascha Hauer2008-08-201-53/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: check for valid parameters for ethaddr, ipaddr, ...Sascha Hauer2008-08-201-0/+32
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>