diff options
author | Tom Rini <trini@konsulko.com> | 2018-07-26 15:55:42 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-07-26 15:55:42 -0400 |
commit | a57d45db90c8de2959b4484cc8f6ba81219a2269 (patch) | |
tree | 0f4bb63c28f89aea45db67d82bf53de87d930e44 /include/net.h | |
parent | 2547e91dc15e5203e15d4ebde9172174743b14a7 (diff) | |
parent | 26026e695afa794ac018a09e79a48120d322b60d (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index f9984ae86ca..62f82c4dca7 100644 --- a/include/net.h +++ b/include/net.h @@ -839,6 +839,20 @@ ushort env_get_vlan(char *); /* copy a filename (allow for "..." notation, limit length) */ void copy_filename(char *dst, const char *src, int size); +/* check if serverip is specified in filename from the command line */ +int is_serverip_in_cmd(void); + +/** + * net_parse_bootfile - Parse the bootfile env var / cmd line param + * + * @param ipaddr - a pointer to the ipaddr to populate if included in bootfile + * @param filename - a pointer to the string to save the filename part + * @param max_len - The longest - 1 that the filename part can be + * + * return 1 if parsed, 0 if bootfile is empty + */ +int net_parse_bootfile(struct in_addr *ipaddr, char *filename, int max_len); + /* get a random source port */ unsigned int random_port(void); |