Added `transport' field for the transport method.

1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netinfo.h (glibtop_netinfo): Added `transport'
	field for the transport method.
This commit is contained in:
Martin Baulig
1999-11-28 18:41:45 +00:00
committed by Martin Baulig
parent 4a01752467
commit d58748ac66
4 changed files with 16 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
1999-11-28 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/netinfo.h (glibtop_netinfo): Added `transport'
field for the transport method.
1999-11-28 Martin Baulig <martin@home-of-linux.org> 1999-11-28 Martin Baulig <martin@home-of-linux.org>
Split netload into netload and netinfo. Split netload into netload and netinfo.

View File

@@ -19,6 +19,6 @@ glibtop_map_entry *|proc_map|ulong(number,size,total)|pid_t(pid)
glibtop_mountentry *|@mountlist|ulong(number,size,total)|int(all_fs) glibtop_mountentry *|@mountlist|ulong(number,size,total)|int(all_fs)
retval|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string(mount_dir) retval|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string(mount_dir)
char *|interface_names|ulong(size)|unsigned(interface,number,instance,strategy) char *|interface_names|ulong(size)|unsigned(interface,number,instance,strategy)
retval|netinfo|ulong(if_flags,mtu,subnet,address)|string(interface) retval|netinfo|ulong(if_flags,transport,mtu,subnet,address)|string(interface)
retval|netload|ulong(packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string(interface) retval|netload|ulong(packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string(interface)
retval|ppp|ulong(state,bytes_in,bytes_out)|ushort(device) retval|ppp|ulong(state,bytes_in,bytes_out)|ushort(device)

View File

@@ -32,11 +32,12 @@
BEGIN_LIBGTOP_DECLS BEGIN_LIBGTOP_DECLS
#define GLIBTOP_NETINFO_IF_FLAGS 0 #define GLIBTOP_NETINFO_IF_FLAGS 0
#define GLIBTOP_NETINFO_MTU 1 #define GLIBTOP_NETINFO_TRANSPORT 1
#define GLIBTOP_NETINFO_SUBNET 2 #define GLIBTOP_NETINFO_MTU 2
#define GLIBTOP_NETINFO_ADDRESS 3 #define GLIBTOP_NETINFO_SUBNET 3
#define GLIBTOP_NETINFO_ADDRESS 4
#define GLIBTOP_MAX_NETINFO 4 #define GLIBTOP_MAX_NETINFO 5
typedef struct _glibtop_netinfo glibtop_netinfo; typedef struct _glibtop_netinfo glibtop_netinfo;
@@ -65,6 +66,7 @@ struct _glibtop_netinfo
{ {
u_int64_t flags, u_int64_t flags,
if_flags, /* GLIBTOP_NETINFO_IF_FLAGS */ if_flags, /* GLIBTOP_NETINFO_IF_FLAGS */
transport, /* GLIBTOP_NETINFO_TRANSPORT */
mtu, /* GLIBTOP_NETINFO_MTU */ mtu, /* GLIBTOP_NETINFO_MTU */
subnet, /* GLIBTOP_NETINFO_SUBNET */ subnet, /* GLIBTOP_NETINFO_SUBNET */
address; /* GLIBTOP_NETINFO_ADDRESS */ address; /* GLIBTOP_NETINFO_ADDRESS */

View File

@@ -27,18 +27,19 @@
const char *glibtop_names_netinfo[GLIBTOP_MAX_NETINFO] = const char *glibtop_names_netinfo[GLIBTOP_MAX_NETINFO] =
{ {
"if_flags", "mtu", "subnet", "address" "if_flags", "transport", "mtu", "subnet", "address"
}; };
const unsigned glibtop_types_netinfo[GLIBTOP_MAX_NETINFO] = const unsigned glibtop_types_netinfo[GLIBTOP_MAX_NETINFO] =
{ {
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
}; };
const char *glibtop_labels_netinfo[GLIBTOP_MAX_NETINFO] = const char *glibtop_labels_netinfo[GLIBTOP_MAX_NETINFO] =
{ {
N_ ("Interface Flags"), N_ ("Interface Flags"),
N_ ("Transport Method"),
N_ ("MTU"), N_ ("MTU"),
N_ ("Subnet"), N_ ("Subnet"),
N_ ("Address"), N_ ("Address"),
@@ -47,6 +48,7 @@ const char *glibtop_labels_netinfo[GLIBTOP_MAX_NETINFO] =
const char *glibtop_descriptions_netinfo[GLIBTOP_MAX_NETINFO] = const char *glibtop_descriptions_netinfo[GLIBTOP_MAX_NETINFO] =
{ {
N_ ("Interface Flags"), N_ ("Interface Flags"),
N_ ("Transport Method"),
N_ ("Maximum Transfer Unit"), N_ ("Maximum Transfer Unit"),
N_ ("Subnet"), N_ ("Subnet"),
N_ ("Address"), N_ ("Address"),