From 165a08beed3a03a449a9635dfb1bcd52d442cbff Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 27 Dec 2023 18:11:45 +0100 Subject: [PATCH] change mac amount 4 > 8 Signed-off-by: AuxXxilium --- config/cmdline_opts.h | 4 ++++ config/runtime_config.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/cmdline_opts.h b/config/cmdline_opts.h index 77e5683..b030f5a 100644 --- a/config/cmdline_opts.h +++ b/config/cmdline_opts.h @@ -40,5 +40,9 @@ #define CMDLINE_KT_MAC2 "mac2=" #define CMDLINE_KT_MAC3 "mac3=" #define CMDLINE_KT_MAC4 "mac4=" +#define CMDLINE_KT_MAC5 "mac5=" +#define CMDLINE_KT_MAC6 "mac6=" +#define CMDLINE_KT_MAC7 "mac7=" +#define CMDLINE_KT_MAC8 "mac8=" #endif //REDPILL_CMDLINE_OPTS_H diff --git a/config/runtime_config.c b/config/runtime_config.c index d4f56c5..cf37120 100644 --- a/config/runtime_config.c +++ b/config/runtime_config.c @@ -135,7 +135,7 @@ static inline bool validate_nets(const unsigned short if_num, mac_address * cons if (macs_num == 0) { pr_loc_wrn("No MAC addressed are specified - use \"%s\" or \"%s\"...\"%s\" to set them", CMDLINE_KT_MACS, - CMDLINE_KT_MAC1, CMDLINE_KT_MAC4); + CMDLINE_KT_MAC1, CMDLINE_KT_MAC8); } if (if_num != macs_num) {