From 3faf730ea6b763b1b98bc274ac74c495ee44977a Mon Sep 17 00:00:00 2001 From: zacheiss Date: Sun, 16 Sep 2001 00:18:32 +0000 Subject: [PATCH] Deal with private subnets with more granularity than "Private". --- clients/moira/cluster.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/moira/cluster.c b/clients/moira/cluster.c index dbd75b54..98bb4819 100644 --- a/clients/moira/cluster.c +++ b/clients/moira/cluster.c @@ -86,9 +86,11 @@ static char *states[] = { static char *subnet_states[] = { "Reserved (0)", "Billable (1)", - "Private (2)", - "Resnet (3)", - "Infrastructure (4)" + "Private, 10 Mbps (2)", + "Private, 100 Mbps (3)", + "Private, Other (4)", + "Resnet (5)", + "Infrastructure (6)" }; static char *MacState(int state) @@ -107,7 +109,7 @@ static char *SubnetState(int state) { static char buf[BUFSIZ]; - if (state < 0 || state > 4) + if (state < 0 || state > 6) { sprintf(buf, "Unknown (%d)", state); return buf; @@ -732,7 +734,7 @@ char **AskMCDInfo(char **info, int type, Bool name) if (isdigit(info[SN_STATUS][0])) break; Put_message("Valid status numbers:"); - for (i = 0; i < 5; i++) + for (i = 0; i < 7; i++) Put_message(subnet_states[i]); } if (GetValueFromUser("Network's contact", &info[SN_CONTACT]) == SUB_ERROR) -- 2.45.1