From: Sean Anderson Date: Sat, 14 Oct 2023 20:47:52 +0000 (-0400) Subject: net: bootp: Move port numbers to header X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=7ccc6044e964829459fa089da01b742a442df65e;p=u-boot.git net: bootp: Move port numbers to header These defines are useful when testing bootp. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- diff --git a/net/bootp.c b/net/bootp.c index 8b1a4ae2ef..2053cce88c 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -41,9 +41,6 @@ */ #define TIMEOUT_MS ((3 + (CONFIG_NET_RETRY_COUNT * 5)) * 1000) -#define PORT_BOOTPS 67 /* BOOTP server UDP port */ -#define PORT_BOOTPC 68 /* BOOTP client UDP port */ - #ifndef CFG_DHCP_MIN_EXT_LEN /* minimal length of extension list */ #define CFG_DHCP_MIN_EXT_LEN 64 #endif diff --git a/net/bootp.h b/net/bootp.h index 567340ec5d..4e32b19d42 100644 --- a/net/bootp.h +++ b/net/bootp.h @@ -15,6 +15,9 @@ /**********************************************************************/ +#define PORT_BOOTPS 67 /* BOOTP server UDP port */ +#define PORT_BOOTPC 68 /* BOOTP client UDP port */ + /* * BOOTP header. */