diff options
author | Tom Rini <trini@konsulko.com> | 2018-07-02 16:11:09 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-07-02 16:11:09 -0400 |
commit | d4c7a9348f27c8e3fdb1b754d8f0d1fa27375d1c (patch) | |
tree | e4f82532c04d791c257ef6e5b202389103891777 /net/net.c | |
parent | 03b54997d568a6879a045ba775e44d62289a8fb9 (diff) | |
parent | a9ea30d267f26bee0b3a5cdd659624a866da3d19 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index b4563a4cab1..f35695b4fc9 100644 --- a/net/net.c +++ b/net/net.c @@ -78,6 +78,12 @@ * - own IP address * We want: - network time * Next step: none + * + * WOL: + * + * Prerequisites: - own ethernet address + * We want: - magic packet or timeout + * Next step: none */ @@ -108,6 +114,9 @@ #if defined(CONFIG_CMD_SNTP) #include "sntp.h" #endif +#if defined(CONFIG_CMD_WOL) +#include "wol.h" +#endif /** BOOTP EXTENTIONS **/ @@ -165,6 +174,8 @@ ushort net_native_vlan = 0xFFFF; /* Boot File name */ char net_boot_file_name[1024]; +/* Indicates whether the file name was specified on the command line */ +bool net_boot_file_name_explicit; /* The actual transferred size of the bootfile (in bytes) */ u32 net_boot_file_size; /* Boot file size in blocks as reported by the DHCP server */ @@ -515,6 +526,11 @@ restart: link_local_start(); break; #endif +#if defined(CONFIG_CMD_WOL) + case WOL: + wol_start(); + break; +#endif default: break; } @@ -1281,6 +1297,11 @@ void net_process_received_packet(uchar *in_packet, int len) ntohs(ip->udp_src), ntohs(ip->udp_len) - UDP_HDR_SIZE); break; +#ifdef CONFIG_CMD_WOL + case PROT_WOL: + wol_receive(ip, len); + break; +#endif } } |