- 24 5月, 2012 14 次提交
-
-
由 Joe Hershberger 提交于
Use this entry-point consistently across the net/ code Use a static inline function to preserve code size Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
ICMP (ping) was reimplementing IP header code... it now shares code. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
由 Joe Hershberger 提交于
Use field names and sizes when accessing ARP packets Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Make the comment more accurate about the header including SNAP Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
This name more explicitly claims that it does not include the header size Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Remove typedef and lower-case name Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Remove typedef and lower-case letters Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Eliminate the typedef and remove capital letters Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Separate the Ethernet header from the 802 header. Base the size constants on the structs. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Add a structure that only contains IP header fields to be used by functions that don't need UDP Rename IP_HDR_SIZE_NO_UDP to IP_HDR_SIZE Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Rename IP header related things to IP_UDP. The existing definition of IP_t includes UDP header, so name it to accurately describe the structure. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Separate this functionality out of the net.c behemoth Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
由 Joe Hershberger 提交于
Checking for CDP packets should be encapsulated, not copied code. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
由 Joe Hershberger 提交于
Separate this functionality out of the net.c behemoth Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 16 5月, 2012 4 次提交
-
-
由 Joe Hershberger 提交于
Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Joe Hershberger 提交于
Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 29 3月, 2012 1 次提交
-
-
由 Eric Nelson 提交于
This will prevent the need for architectures whose DMA alignment is greater than 32 to have bounce buffers. Signed-off-by: NEric Nelson <eric.nelson@boundarydevices.com>
-
- 19 3月, 2012 1 次提交
-
-
由 Mike Frysinger 提交于
A few subsystems are using the same define "NAMESIZE". This has been working so far because they define it to the same number. However, I want to change the size of eth_device's NAMESIZE, so rather than tweak the define names, simply drop references to it. Almost no one does, and the handful that do can easily be changed to a sizeof(). Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 03 3月, 2012 1 次提交
-
-
由 Vincent Palatin 提交于
Fix the crash when running several times usb_init() with a USB ethernet device plugged. Signed-off-by: NVincent Palatin <vpalatin@chromium.org> Tested-by: NWolfgang Grandegger <wg@denx.de>
-
- 21 12月, 2011 1 次提交
-
-
由 Michael Walle 提交于
Instead of counting the device index everytime a functions needs it, store it in the eth_device struct. eth_register() keeps track of the indices and updates the device's index number. This simplifies some functions in net/eth.c. Additionally, a network driver can now query its index, eg. to get the correct environment ethaddr name. Signed-off-by: NMichael Walle <michael@walle.cc> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Mike Frysinger <vapier@gentoo.com> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 07 12月, 2011 1 次提交
-
-
由 Matthias Weisser 提交于
When building u-boot as 64 bit application (e.g. sandbox) ulong might be 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in size then and an IPv4 address is 32 bits in size. This patch makes sure that IPaddr_t is always 32 bits in size. Also some warnings introduced by this patch are fixed. Signed-off-by: NMatthias Weisser <weisserm@arcor.de> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 28 10月, 2011 1 次提交
-
-
由 Simon Glass 提交于
The rarp code includes another instance of the auto_load logic, so call what is now net_auto_load() instead. This also fixes an incorrect call to TftpStart() which was never seen since apparently no boards enable rarp. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 27 10月, 2011 3 次提交
-
-
由 Simon Glass 提交于
TftpStart should support starting either a get or a put. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This is a better name for this protocol. Also remove the typedef to keep checkpatch happy, and move zeroing of NetBootFileXferSize a little earlier since TFTPPUT will need to change this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
ICMP packets can tell you when there is no server at the other end. It is useful for tftp to figure this out, so that a quick error can be displayed, rather than pointlessly retrying. This adds an ICMP packet handler to the net interface. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 06 10月, 2011 1 次提交
-
-
由 Mike Frysinger 提交于
This is long over due. All but two net drivers have been converted, but those have now been dropped. The only thing left to do is actually delete all references to NET_MULTI and code that is compiled when that is not defined. So here we scrub the core code. Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 09 8月, 2011 1 次提交
-
-
由 Simon Glass 提交于
Built-in Ethernet adapters support setting the mac address by means of a ethaddr environment variable for each interface (ethaddr, eth1addr, eth2addr). This adds similar support to the USB network side, using the names usbethaddr, usbeth1addr, etc. They are kept separate since we don't want a USB device taking the MAC address of a built-in device or vice versa. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NEric Bénard <eric@eukrea.com>
-
- 20 5月, 2011 1 次提交
-
-
由 Luca Ceresoli 提交于
Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
- 13 5月, 2011 1 次提交
-
-
由 Luca Ceresoli 提交于
This is needed for the upcoming TFTP server implementation. This also simplifies PingHandler() and fixes rxhand_f documentation. Signed-off-by: NLuca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de> Acked-by: NDetlev Zundel <dzu@denx.de>
-
- 29 11月, 2010 3 次提交
-
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 21 9月, 2010 1 次提交
-
-
由 Remy Bohmer 提交于
Derived from Linux kernel 2.6.27 Signed-off-by: NThomas Smits <ts.smits@gmail.com> Signed-off-by: NRemy Bohmer <linux@bohmer.net>
-
- 10 8月, 2010 1 次提交
-
-
由 Ben Warren 提交于
Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls to take a (const char *) parameter instead of (char *), but in some cases the modified functions call other functions taking (char *). The end result is warnings about discarding the const qualifier. This patch fixes these other function signatures. Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 04 5月, 2010 1 次提交
-
-
由 Ben Warren 提交于
Add a new function to the eth_device struct for programming a network controller's hardware address. After all network devices have been initialized and the proper MAC address for each has been determined, make a device driver call to program the address into the device. Only device instances with valid unicast addresses will be programmed. Signed-off-by: NBen Warren <biggerbadderben@gmail.com> Acked-by: NDetlev Zundel <dzu@denx.de> Tested-by: NPrafulla Wadaskar <prafulla@marvell.com> Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NThomas Chou <thomas@wytron.com.tw>
-
- 18 1月, 2010 1 次提交
-
-
由 Dirk Behme 提交于
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: NDirk Behme <dirk.behme@googlemail.com> Acked-by: NBen Warren <biggerbadderben@gmail.com>
-
- 05 10月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
The random_port() is meant to be used by other net code, but without a prototype, we get fun warnings like: dns.c: In function 'DnsSend': dns.c:89: warning: implicit declaration of function 'random_port' Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-
- 08 8月, 2009 1 次提交
-
-
由 Mike Frysinger 提交于
In the previous enetaddr refactoring, the assumption with commit 56b555a6 was that the eth layer would handle the env -> device enetaddr syncing. This was not the case as eth_initialize() is called only once and the sync occurs there. So make sure the eth_init() function does the env -> device sync with every network init. Reported-by: NAndrzej Wolski <awolski@poczta.fm> Signed-off-by: NMike Frysinger <vapier@gentoo.org> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
-