summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* remove unused watchdog headerSascha Hauer2011-12-151-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dhcp: Add magicvarsSascha Hauer2011-11-291-0/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: getenv_ip: check return value of string_to_ipWolfram Sang2011-09-261-1/+2
| | | | | | | Return 0 if we encounter an error. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: string_to_ip: add sanity check for > 255Wolfram Sang2011-09-261-2/+4
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-151-0/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Add a possibility for boards to give network devices a MAC addressSascha Hauer2011-07-291-1/+58
| | | | | | | | | MAC addresses are sometimes stored at unusual places. This patch makes it possible to give a MAC address to a ethernet device id. This is independent of the device actually being present. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add a context to the packet handlerSascha Hauer2011-04-127-19/+22
| | | | | | | This is not yet used, but with this the different network commands can get rid of their global data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eth: check the result of edev->get_ethaddrSascha Hauer2011-04-121-2/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use dev_* for printing network related stuffSascha Hauer2011-03-031-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* network: initialize new net device id with -1Sascha Hauer2011-02-181-0/+1
| | | | | | | This autoassigns a id to network devices and makes multiple network devices work again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-01-171-1/+1
|\
| * net: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-2/+2
|/ | | | | | | | | | | | | | The idea is to panic() when there is no memory available for normal operation. Exception: code which can consume arbitrary amount of RAM (example: files allocated in ramfs) must report error instead of panic(). This patch also fixes code which didn't check for NULL from malloc() etc. Usage: malloc(), memalign() return NULL when out of RAM. xmalloc(), xmemalign() always return non-NULL or panic(). Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cosmetic fixes, including format attributes for printf() and friends.Krzysztof Halasa2010-12-211-1/+1
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* LED: Add LED trigger supportSascha Hauer2010-12-202-6/+22
| | | | | | | This patch allows to associate LEDs with certain triggers, such as heartbeat or network activity. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>