"Private, 100 Mbps (3)",
"Private, Other (4)",
"Resnet (5)",
- "Infrastructure (6)"
+ "Infrastructure (6)",
+ "Private, 1000 Mbps (7)"
};
static char *MacState(int state)
{
static char buf[BUFSIZ];
- if (state < 0 || state > 6)
+ if (state < 0 || state > 7)
{
sprintf(buf, "Unknown (%d)", state);
return buf;
if (stat)
com_err(program_name, stat, " looking up subnet info");
else if (atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_10MBPS ||
- atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_100MBPS)
+ atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_100MBPS ||
+ atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_1000MBPS)
{
Put_message("");
sprintf(buf, "Warning: This host is on a private subnet.");
if (isdigit(info[SN_STATUS][0]))
break;
Put_message("Valid status numbers:");
- for (i = 0; i < 7; i++)
+ for (i = 0; i < 8; i++)
Put_message(subnet_states[i]);
}
if (GetValueFromUser("Network's contact", &info[SN_CONTACT]) == SUB_ERROR)
if (status)
com_err(whoami, status, "while getting subnet information");
if (atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_10MBPS ||
- atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_100MBPS)
+ atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_100MBPS ||
+ atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_1000MBPS)
{
fprintf(stderr, "\nWarning: This host is on a private subnet.\n");
fprintf(stderr, "Billing information shown is superseded by billing information for the subnet.\n");
* number.
*/
if (status == SNET_STATUS_PRIVATE_10MBPS ||
- status == SNET_STATUS_PRIVATE_100MBPS)
+ status == SNET_STATUS_PRIVATE_100MBPS ||
+ status == SNET_STATUS_PRIVATE_1000MBPS)
{
EXEC SQL SELECT account_number FROM accountnumbers
WHERE account_number = :account_number;