SNET_STATUS_PRIVATE_100MBPS.
stat = do_mr_query("get_subnet", 1, args, StoreInfo, &elem2);
if (stat)
com_err(program_name, stat, " looking up subnet info");
- else if (atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE)
+ else if (atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_10MBPS ||
+ atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_100MBPS)
{
Put_message("");
sprintf(buf, "Warning: This host is on a private subnet.");
status = wrap_mr_query("get_subnet", 1, args, store_host_info, argv);
if (status)
com_err(whoami, status, "while getting subnet information");
- if (atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE)
+ if (atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_10MBPS ||
+ atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_100MBPS)
{
fprintf(stderr, "\nWarning: This host is on a private subnet.\n");
fprintf(stderr, "Billing information shown is superceded by billing information for the subnet.\n");
/* Don't allow Private subnets to be created without a valid billing
* number.
*/
- if (status == SNET_STATUS_PRIVATE)
+ if (status == SNET_STATUS_PRIVATE_10MBPS ||
+ status == SNET_STATUS_PRIVATE_100MBPS)
{
EXEC SQL SELECT account_number FROM accountnumbers
WHERE account_number = :account_number;