net: Remove BOOTP_VENDOREX support

It has been over a decade since we had a platform that implemented the
bootp vendor extension support hook. Remove this option due to lack of
use.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
Tom Rini
2025-09-25 14:44:13 -06:00
committed by Jerome Forissier
parent f822046037
commit 99707a0baa
3 changed files with 0 additions and 21 deletions

View File

@@ -1951,10 +1951,6 @@ config BOOTP_BOOTPATH
Even though the config is called BOOTP_BOOTPATH, it stores the Even though the config is called BOOTP_BOOTPATH, it stores the
path in the variable 'rootpath'. path in the variable 'rootpath'.
config BOOTP_VENDOREX
bool "Support vendor extensions from BOOTP/DHCP server"
depends on CMD_BOOTP
config BOOTP_BOOTFILESIZE config BOOTP_BOOTFILESIZE
bool "Request & store 'bootfilesize' from BOOTP/DHCP server" bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
depends on CMD_BOOTP depends on CMD_BOOTP

View File

@@ -491,9 +491,6 @@ static int dhcp_extended(u8 *e, int message_type, struct in_addr server_ip,
#endif #endif
int clientarch = -1; int clientarch = -1;
#if defined(CONFIG_BOOTP_VENDOREX)
u8 *x;
#endif
#if defined(CONFIG_BOOTP_SEND_HOSTNAME) #if defined(CONFIG_BOOTP_SEND_HOSTNAME)
char *hostname; char *hostname;
#endif #endif
@@ -584,12 +581,6 @@ static int dhcp_extended(u8 *e, int message_type, struct in_addr server_ip,
e = add_vci(e); e = add_vci(e);
#if defined(CONFIG_BOOTP_VENDOREX)
x = dhcp_vendorex_prep(e);
if (x)
return x - start;
#endif
*e++ = 55; /* Parameter Request List */ *e++ = 55; /* Parameter Request List */
cnt = e++; /* Pointer to count of requested items */ cnt = e++; /* Pointer to count of requested items */
*cnt = 0; *cnt = 0;
@@ -977,10 +968,6 @@ static void dhcp_process_options(uchar *popt, uchar *end)
} }
break; break;
default: default:
#if defined(CONFIG_BOOTP_VENDOREX)
if (dhcp_vendorex_proc(popt))
break;
#endif
printf("*** Unhandled DHCP Option in OFFER/ACK:" printf("*** Unhandled DHCP Option in OFFER/ACK:"
" %d\n", *popt); " %d\n", *popt);
break; break;

View File

@@ -24,10 +24,6 @@
#if defined(CONFIG_CMD_DHCP) #if defined(CONFIG_CMD_DHCP)
/* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */ /* Minimum DHCP Options size per RFC2131 - results in 576 byte pkt */
#define OPT_FIELD_SIZE 312 #define OPT_FIELD_SIZE 312
#if defined(CONFIG_BOOTP_VENDOREX)
extern u8 *dhcp_vendorex_prep(u8 *e); /*rtn new e after add own opts. */
extern u8 *dhcp_vendorex_proc(u8 *e); /*rtn next e if mine,else NULL */
#endif
#else #else
#define OPT_FIELD_SIZE 64 #define OPT_FIELD_SIZE 64
#endif #endif