mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
net: Move some variables to net-common files
Make some variables available to be used by either the legacy network code or lwIP by moving them into the net-common files. This also allowed removing a small number of duplicated variables from the lwIP code. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
committed by
Jerome Forissier
parent
60c228c077
commit
3938ae6457
@@ -132,13 +132,21 @@ static inline void net_set_state(enum net_loop_state state)
|
||||
}
|
||||
|
||||
extern int net_restart_wrap; /* Tried all network devices */
|
||||
extern uchar *net_rx_packets[PKTBUFSRX]; /* Receive packets */
|
||||
extern uchar *net_rx_packets[PKTBUFSRX]; /* Receive packets */
|
||||
extern const u8 net_bcast_ethaddr[ARP_HLEN]; /* Ethernet broadcast address */
|
||||
extern char net_boot_file_name[1024];/* Boot File name */
|
||||
extern struct in_addr net_ip; /* Our IP addr (0 = unknown) */
|
||||
/* Indicates whether the pxe path prefix / config file was specified in dhcp option */
|
||||
extern char *pxelinux_configfile;
|
||||
|
||||
/* Our IP addr (0 = unknown) */
|
||||
extern struct in_addr net_ip;
|
||||
/* Boot File name */
|
||||
extern char net_boot_file_name[1024];
|
||||
/* The actual transferred size of the bootfile (in bytes) */
|
||||
extern u32 net_boot_file_size;
|
||||
/* Boot file size in blocks as reported by the DHCP server */
|
||||
extern u32 net_boot_file_expected_size_in_blocks;
|
||||
|
||||
/**
|
||||
* compute_ip_checksum() - Compute IP checksum
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user