Changed output style and comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6510 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -67,13 +67,15 @@ show(ppp_interface_filter filter = PPP_REGISTERED_INTERFACES)
|
|||||||
interface.GetInterfaceInfo(&info);
|
interface.GetInterfaceInfo(&info);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
// type and name (if it has one)
|
// type and unit (if it has one)
|
||||||
if(info.info.if_unit >= 0) {
|
if(info.info.if_unit >= 0) {
|
||||||
printf("Type: Visible\n");
|
printf("Type: Visible\n");
|
||||||
printf("\tInterface: ppp%ld\n", info.info.if_unit);
|
printf("\tInterface: ppp%ld\n", info.info.if_unit);
|
||||||
} else
|
} else
|
||||||
printf("Type: Hidden\n");
|
printf("Type: Hidden\n");
|
||||||
|
|
||||||
|
printf("\tName: %s\n", info.info.name);
|
||||||
|
|
||||||
// ID
|
// ID
|
||||||
printf("\tID: %ld\n", interface.ID());
|
printf("\tID: %ld\n", interface.ID());
|
||||||
|
|
||||||
@@ -233,8 +235,6 @@ static
|
|||||||
status_t
|
status_t
|
||||||
show_details(const char *name)
|
show_details(const char *name)
|
||||||
{
|
{
|
||||||
// Name may either be an interface name (ppp0, etc.) or an interface ID.
|
|
||||||
|
|
||||||
if(!name || strlen(name) == 0)
|
if(!name || strlen(name) == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@@ -260,6 +260,8 @@ show_details(const char *name)
|
|||||||
} else
|
} else
|
||||||
printf("Type: Hidden\n");
|
printf("Type: Hidden\n");
|
||||||
|
|
||||||
|
printf("Name: %s\n", info.info.name);
|
||||||
|
|
||||||
// ID
|
// ID
|
||||||
printf("ID: %ld\n", interface.ID());
|
printf("ID: %ld\n", interface.ID());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user