| 48a3e999 | 03-Jul-2012 |
Tetsuyuki Kobayashi <koba@kmckk.co.jp> |
net: nfs: make NFS_TIMEOUT configurable
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOU
net: nfs: make NFS_TIMEOUT configurable
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file.
Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
show more ...
|
| bc46dfac | 10-Jul-2012 |
Jayachandran Chandrasekharan Nair <jayachandranc@netlogicmicro.com> |
net: tftp: fix type of block arg to store_block
The block argument for store_block can be -1 when the tftp sequence number rolls over (i.e TftpBlock == 0), so the first argument to store_block has t
net: tftp: fix type of block arg to store_block
The block argument for store_block can be -1 when the tftp sequence number rolls over (i.e TftpBlock == 0), so the first argument to store_block has to be of type 'int' instead of 'unsigned'.
In our environment (gcc 4.4.5 mips toolchain), this causes incorrect 'offset' to be generated for storing the block, and the tftp block with number 0 will be written elsewhere, resulting in a bad block in the downloaded file and a memory corruption.
Signed-off-by: Jayachandran Chandrasekharan Nair <jayachandranc@netlogicmicro.com>
show more ...
|
| a0bc44e6 | 10-Jul-2012 |
Mike Frysinger <vapier@gentoo.org> |
net: fix typo in arp clean up
The clean up patch missed an &, so we end up passing an int rather than a pointer to the sprintf function.
arp.c: In function 'ArpReceive': arp.c:197: warning: format
net: fix typo in arp clean up
The clean up patch missed an &, so we end up passing an int rather than a pointer to the sprintf function.
arp.c: In function 'ArpReceive': arp.c:197: warning: format '%p' expects type 'void *', but argument 3 has type 'int'
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 03c1b04f | 05-Jun-2012 |
Michael Walle <michael@walle.cc> |
net: add helper to generate random mac address
Add new function eth_random_enetaddr() to generate a locally administered ethernet address.
Signed-off-by: Michael Walle <michael@walle.cc> Acked-by:
net: add helper to generate random mac address
Add new function eth_random_enetaddr() to generate a locally administered ethernet address.
Signed-off-by: Michael Walle <michael@walle.cc> Acked-by: Joe Hershberger <joe.hershberger@gmail.com>
show more ...
|
| c6975762 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Work-around for brain-damaged Cisco equipment with arp-proxy
Cisco's arp-proxy feature fails to ignore the link-local address range This means that a link-local device on a network with this Ci
net: Work-around for brain-damaged Cisco equipment with arp-proxy
Cisco's arp-proxy feature fails to ignore the link-local address range This means that a link-local device on a network with this Cisco equipment will reply to ARP requests for our device (in addition to our reply). If we happen to reply first, the requester's ARP table will be populated with our MAC address, and one packet will be sent to us... shortly following this, the requester will get an ARP reply from the Cisco equipment telling the requester to send packets their way instead of to our device from now on. This work-around detects this link-local condition and will delay replying to the ARP request for 5ms so that the first packet is sent to the Cisco equipment and all following packets are sent to our device.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 22804189 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Separate ArpRequest() into lower-level func
Link-local support will need to send ARP packets, but needs more fine-grained control over the contents. Split the implementation into 2 parts so li
net: Separate ArpRequest() into lower-level func
Link-local support will need to send ARP packets, but needs more fine-grained control over the contents. Split the implementation into 2 parts so link-local can share the code.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| e94070c4 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Don't copy every packet that waits for an ARP
Use the NetArpTxPacket for the ARP packet, not to hold what used to be in NetTxPacket. This saves a copy and makes the code easier to understand.
net: Don't copy every packet that waits for an ARP
Use the NetArpTxPacket for the ARP packet, not to hold what used to be in NetTxPacket. This saves a copy and makes the code easier to understand.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 46c495d5 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Fix net buffer initialization
A new non-static function net_init() will initialize buffers and read from the environment. Only update from the env on each entry to NetLoop().
Signed-off-by: J
net: Fix net buffer initialization
A new non-static function net_init() will initialize buffers and read from the environment. Only update from the env on each entry to NetLoop().
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f1d2d284 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Remove static allocation for MAC address in PingSend()
Don't force ARP clients to return the MAC address if they don't care (such as ping)
Signed-off-by: Joe Hershberger <joe.hershberger@ni.co
net: Remove static allocation for MAC address in PingSend()
Don't force ARP clients to return the MAC address if they don't care (such as ping)
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 2c00e099 | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Add option CONFIG_BOOTP_MAY_FAIL
This is useful if you want to look for a DHCP server, but try some other settings if not available.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Ack
net: Add option CONFIG_BOOTP_MAY_FAIL
This is useful if you want to look for a DHCP server, but try some other settings if not available.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1752f0fd | 23-May-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Fix unused variable compile warning
If CONFIG_BOOTP_SERVERIP is not defined, unused variable warning is reported. This was fixed upstream using a compiler feature instead of a simple reorder o
net: Fix unused variable compile warning
If CONFIG_BOOTP_SERVERIP is not defined, unused variable warning is reported. This was fixed upstream using a compiler feature instead of a simple reorder of the statements.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|