rem: printf("Status: %s\n", info.info.phase == PPP_ESTABLISHED_PHASE ? "Connected" : "Disconnected");
add: printf("\tStatus: "); switch(info.info.phase) { case PPP_ESTABLISHED_PHASE: printf("Connected\n"); break;  case PPP_DOWN_PHASE: printf("Disconnected\n"); break;  case PPP_TERMINATION_PHASE: printf("Disconnecting\n"); break;  default: printf("Connecting\n"); }
context: show_details(const char *name){	// Name may either be an interface name (ppp0, etc.) or an interface ID.		if(!name || strlen(name) == 0)		return -1;		PPPManager manager;	if(manager.InitCheck() != B_OK) {		fprintf(stderr, "Error: Could not load interface manager!\n");		return -1;	}		PPPInterface interface;		if(!strncmp(name, "ppp", 3) && strlen(name) > 3 && isdigit(name[3]))		interface = manager.InterfaceWithUnit(atoi(name + 3));	else if(isdigit(name[0]))		interface = atoi(name);	else		return print_help();		if(interface.InitCheck() != B_OK) {		fprintf(stderr, "Error: Could not find interface: %s!\n", name);		return -1;	}		ppp_interface_info_t info;	interface.GetInterfaceInfo(&info);		// type and name (if it has one)	if(info.info.if_unit >= 0) {		printf("Type: Visible\n");		printf("Name: ppp%ld\n", info.info.if_unit);	} else		printf("Type: Hidden\n");		// ID	printf("ID: %ld\n", interface.ID());		// DialOnDemand	printf("DialOnDemand: %s\n", info.info.doesDialOnDemand ? "Enabled" : "Disabled");		// AutoRedial	printf("AutoRedial: %s\n", info.info.doesAutoRedial ? "Enabled" : "Disabled");		// MRU and interfaceMTU	printf("MRU: %ld\n", info.info.MRU);	printf("Interface MTU: %ld\n", info.info.interfaceMTU);		// mode	printf("Mode: ");	if(info.info.mode == PPP_CLIENT_MODE)		printf("Client\n");	else if(info.info.mode == PPP_SERVER_MODE)		printf("Server\n");	else		printf("Unknown\n");		// status	printf("Status: %s\n",		info.info.phase == PPP_ESTABLISHED_PHASE ? "Connected" : "Disconnected");		return 0;}