X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=net%2Fnet.c;h=37932919d049a7a834bb999e83f593f9b5d47a29;hb=358b6f72c28c80699536f7137063095116e1675e;hp=5199d679a1fbfc9c3d24d3d0577d7e5a375fe4f4;hpb=ac1ca99926606faf5e2d37771680ed97d66ee5ab;p=oweals%2Fu-boot.git diff --git a/net/net.c b/net/net.c index 5199d679a1..37932919d0 100644 --- a/net/net.c +++ b/net/net.c @@ -88,11 +88,14 @@ #include +#include #include #include #include #include #include +#include +#include #include #include #include @@ -636,7 +639,7 @@ restart: printf("Bytes transferred = %d (%x hex)\n", net_boot_file_size, net_boot_file_size); env_set_hex("filesize", net_boot_file_size); - env_set_hex("fileaddr", load_addr); + env_set_hex("fileaddr", image_load_addr); } if (protocol != NETCONS) eth_halt(); @@ -882,9 +885,6 @@ int net_send_ip_packet(uchar *ether, struct in_addr dest, int dport, int sport, * to the algorithm in RFC815. It returns NULL or the pointer to * a complete packet, in static storage */ -#ifndef CONFIG_NET_MAXDEFRAG -#define CONFIG_NET_MAXDEFRAG 16384 -#endif #define IP_PKTSIZE (CONFIG_NET_MAXDEFRAG) #define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)