]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: bootp: Move port numbers to header
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:52 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
These defines are useful when testing bootp.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
net/bootp.c
net/bootp.h

index 8b1a4ae2ef8a52b1fd4e0fac3aeacf1093c4dfb8..2053cce88c600b5e2b6a18c57431da8a010c30ec 100644 (file)
@@ -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
index 567340ec5d4a250498c7c8bdf30675552ab5b831..4e32b19d424bee075d95614c1fd4ffb85350ee67 100644 (file)
@@ -15,6 +15,9 @@
 
 /**********************************************************************/
 
+#define PORT_BOOTPS    67              /* BOOTP server UDP port */
+#define PORT_BOOTPC    68              /* BOOTP client UDP port */
+
 /*
  *     BOOTP header.
  */