summaryrefslogtreecommitdiff
path: root/include/net-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net-common.h')
-rw-r--r--include/net-common.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h
index 1112af381a9..f5cff3e7c0c 100644
--- a/include/net-common.h
+++ b/include/net-common.h
@@ -479,6 +479,25 @@ int net_loop(enum proto_t protocol);
*/
int dhcp_run(ulong addr, const char *fname, bool autoload);
+/**
+ * do_dhcp - Run the dhcp command
+ *
+ * @cmdtp: Unused
+ * @flag: Command flags (CMD_FLAG_...)
+ * @argc: Number of arguments
+ * @argv: List of arguments
+ * Return: result (see enum command_ret_t)
+ */
+int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+
+/**
+ * tftpb_run() - Run TFTP on the current ethernet device
+ *
+ * @addr: Address to load the file into
+ * @fname: Filename of file to load (NULL to use the default filename)
+ * @return 0 if OK, -ENOENT if ant file was not found
+ */
+int tftpb_run(ulong addr, const char *fname);
/**
* do_ping - Run the ping command