67bb9842 | 26-Nov-2018 |
Chris Packham <judge.packham@gmail.com> |
net: remove CONFIG_MCAST_TFTP
No mainline board enables CONFIG_MCAST_TFTP and there have been compilation issues with the code for some time. Additionally, it has a potential buffer underrun issue (
net: remove CONFIG_MCAST_TFTP
No mainline board enables CONFIG_MCAST_TFTP and there have been compilation issues with the code for some time. Additionally, it has a potential buffer underrun issue (reported as a side note in CVE-2018-18439).
Remove the multicast TFTP code but keep the driver API for the future addition of IPv6.
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Signed-off-by: Chris Packham <judge.packham@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
5d457ecb | 24-Jun-2018 |
Duncan Hare <DH@Synoia.com> |
net: Consolidate UDP header functions
Make it possible to add TCP versions of the same, while reusing IP portions. This patch should not change any behavior.
Signed-off-by: Duncan Hare <DH@Synoia.c
net: Consolidate UDP header functions
Make it possible to add TCP versions of the same, while reusing IP portions. This patch should not change any behavior.
Signed-off-by: Duncan Hare <DH@Synoia.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
ac3f26cc | 26-Sep-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Don't overwrite waiting packets with asynchronous replies
Peter originally sent a fix, but it breaks a number of other things. This addresses the original reported issue in a different way.
Th
net: Don't overwrite waiting packets with asynchronous replies
Peter originally sent a fix, but it breaks a number of other things. This addresses the original reported issue in a different way.
That report was:
> U-Boot has 1 common buffer to send Ethernet frames, pointed to by > net_tx_packet. When sending to an IP address without knowing the MAC > address, U-Boot makes an ARP request (using the arp_tx_packet buffer) > to find out the MAC address of the IP addressr. When a matching ARP > reply is received, U-Boot continues sending the frame stored in the > net_tx_packet buffer. > > However, in the mean time, if U-Boot needs to send out any network > packets (e.g. replying ping packets or ARP requests for its own IP > address etc.), it will use the net_tx_packet buffer to prepare the > new packet. Thus this buffer is no longer the original packet meant > to be transmitted after the ARP reply. The original packet will be > lost.
This instead uses the ARP tx buffer to send async replies in the case where we are actively waiting for an ARP reply.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reported-by: Tran Tien Dat <peter.trantiendat@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
f43308fa | 03-Jul-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Read bootfile from env on netboot_common()
Instead of depending on a env callback for bootfile, read it explicitly.
We do this because the bootfile can be specified on the command line and if
net: Read bootfile from env on netboot_common()
Instead of depending on a env callback for bootfile, read it explicitly.
We do this because the bootfile can be specified on the command line and if it is, we will overwrite the internal variable. If a netboot_common() is called again with no bootfile parameter, we want to use the one in the environment.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
3855cad6 | 03-Jul-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Re-check prerequisites when autoloading
With net autoload, we check the prerequisites for the initial command, but the greater prerequisites when autoloading are not checked.
If we would attem
net: Re-check prerequisites when autoloading
With net autoload, we check the prerequisites for the initial command, but the greater prerequisites when autoloading are not checked.
If we would attempt to autoload, check those prerequisites too.
If we are not expecting a serverip from the server, then don't worry about it not being set, but don't attempt to load if it isn't.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
3a66fcb7 | 03-Jul-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: When checking prerequisites, consider boot_file_name
For net_boot_common, we allow the serverip to be specified as part of the boot file name. For net commands that require serverip, include th
net: When checking prerequisites, consider boot_file_name
For net_boot_common, we allow the serverip to be specified as part of the boot file name. For net commands that require serverip, include that source as a valid specification of serverip.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Alexander Graf <agraf@suse.de>
show more ...
|
faecf84a | 03-Jul-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Always print basic info for nfs, just like tftp
nfs was only printing basic info about the transfer in the case of a DEBUG build. Print the same level of detail as tftp always.
Signed-off-by:
net: Always print basic info for nfs, just like tftp
nfs was only printing basic info about the transfer in the case of a DEBUG build. Print the same level of detail as tftp always.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
347e32b0 | 03-Jul-2018 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Check subnet against the actual ip address in use for nfs
The check for sending to the gateway was not using the correct variable for comparison, so it was reporting that packets are sent to th
net: Check subnet against the actual ip address in use for nfs
The check for sending to the gateway was not using the correct variable for comparison, so it was reporting that packets are sent to the gateway when they were not.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
bdce340c | 15-Jun-2018 |
Alexander Graf <agraf@suse.de> |
net: Add option to prefer bootp/dhcp serverip
Currently we can choose between 2 different types of behavior for the serverip variable:
1) Always overwrite it with the DHCP server IP address (defa
net: Add option to prefer bootp/dhcp serverip
Currently we can choose between 2 different types of behavior for the serverip variable:
1) Always overwrite it with the DHCP server IP address (default) 2) Ignore what the DHCP server says (CONFIG_BOOTP_SERVERIP)
This patch adds a 3rd option:
3) Use serverip from DHCP if no serverip is given (CONFIG_BOOTP_PREFER_SERVERIP)
With this new option, we can have the default case that a boot file gets loaded from the DHCP provided TFTP server work while allowing users to specify their own serverip variable to explicitly use a different tftp server.
Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|