summaryrefslogtreecommitdiffstats
path: root/include/net.h
Commit message (Collapse)AuthorAgeFilesLines
* iim: fix compilation when NET is not selectedEric Bénard2012-05-181-1/+6
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove unused getenv_ip_dnsSascha Hauer2012-04-151-5/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: use static string in string_to_ipSascha Hauer2012-04-151-1/+1
| | | | | | Simplify usage of ip_to_string by using a static string. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: arp_request: do not retry endlesslyWolfram Sang2012-04-051-0/+2
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: env: getenv_ip use resolvJean-Christophe PLAGNIOL-VILLARD2012-04-031-1/+5
| | | | | | | Introduce getenv_ip_dns to be able to do not do the resolv when using it in resolv for the nameserver (Do not loop). Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* net: use container_of instead of dev->type_dataSascha Hauer2012-02-251-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: let net_udp_get_payload return void *Sascha Hauer2012-02-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: make the ethernet device a child of the hardware deviceSascha Hauer2011-08-151-0/+1
| | | | 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-0/+6
| | | | | | | | | 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: remove unused fields from struct eth_deviceSascha Hauer2011-07-291-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add a context to the packet handlerSascha Hauer2011-04-121-3/+5
| | | | | | | 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>
* Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-1/+1
| | | | | | | | | | | | | | 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>
* Remove unused eth_get_name() prototype.Krzysztof Halasa2010-12-211-1/+0
| | | | | 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-201-0/+3
| | | | | | | This patch allows to associate LEDs with certain triggers, such as heartbeat or network activity. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: implement random_ether_addrSascha Hauer2010-06-221-0/+16
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include support for a simple pseudo number generatorSascha Hauer2010-06-221-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add dns supportSascha Hauer2010-06-171-0/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-6/+0
| | | | | | | | 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-357/+2
| | | | | | All network commands now use the new stack, so remove the old one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Implement a new network stackSascha Hauer2010-06-171-3/+338
| | | | | | | | | | | | | | | | | 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-171-0/+1
| | | | | | | | | | | 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>
* remove unused cdp codeSascha Hauer2010-01-251-8/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove global variable BootFileSascha Hauer2009-10-191-3/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove unused variable NetBootFileSizeSascha Hauer2009-10-171-1/+0
| | | | Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* remove sntp support. Has been broken for long enoughSascha Hauer2009-10-131-3/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* only the ping code is interested in the ping ipSascha Hauer2009-10-131-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make netboot_common a global functionSascha Hauer2009-10-131-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove switch/case in NetLoop()Sascha Hauer2009-10-131-1/+1
| | | | | | | | 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>
* net: split NetLoop in NetLoop and NetLoopInitSascha Hauer2009-10-131-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove unused state NETLOOP_RESTARTSascha Hauer2009-10-131-3/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a device_d to ethernet devicesSascha Hauer2009-07-211-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-211-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: add eth_unregister functionSascha Hauer2009-04-071-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix string_to_ipSascha Hauer2008-08-201-1/+1
| | | | | | | | Use a pointer to an ip address instead of the return value in string_to_ip and use the return value for error indication only. 0.0.0.0 can be a valid ip address Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: remove unused function declarationsSascha Hauer2008-08-201-8/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net.h: no need to put extern declarations in ifdefsSascha Hauer2008-06-031-2/+0
|
* When printing error messages about network parameters printsascha2007-10-181-2/+0
| | | | the network device id with it.
* change functions containing 'mac' or 'enet' in its name to 'ethaddr'.sascha2007-10-181-6/+6
| | | | change the parameter name for ethernet devices to 'ethaddr' aswell.
* Use safe_strncpy() instead of copy_filename(). The shell has already removedSascha Hauer2007-09-281-3/+0
| | | | quotes, so we don't need this functionality from copy_filename()
* Use unsigned char * for mac address. Otherwise (s)printf interpetsSascha Hauer2007-09-111-1/+1
| | | | | parts of the mac address as negative numbers and gives wrong results.
* svn_rev_574Sascha Hauer2007-07-051-2/+3
| | | | eth_init -> eth_open
* svn_rev_502Sascha Hauer2007-07-051-1/+1
| | | | complete multiple console support
* svn_rev_481Sascha Hauer2007-07-051-1/+1
| | | | make more char * const, fix compiler warnings
* svn_rev_469Sascha Hauer2007-07-051-3/+3
| | | | | - make some more char * const - dev_add_parameter -> dev_add_param
* svn_rev_409Sascha Hauer2007-07-051-40/+42
| | | | remove extern
* svn_rev_314Sascha Hauer2007-07-051-9/+9
| | | | remove volatile from variables
* svn_rev_273Sascha Hauer2007-07-051-25/+1
| | | | split up header files, make src pointer in write functions const
* svn_rev_272Sascha Hauer2007-07-051-0/+4
| | | | more FS work
* svn_rev_198Sascha Hauer2007-07-051-23/+7
| | | | add string_to_enet_addr()/enet_addr_to_string()
* svn_rev_121Sascha Hauer2007-07-051-0/+5
| | | | implement device parameters