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:
committed by
Martin Baulig
parent
4a01752467
commit
d58748ac66
@@ -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>
|
||||
|
||||
Split netload into netload and netinfo.
|
||||
|
@@ -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)
|
||||
retval|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string(mount_dir)
|
||||
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|ppp|ulong(state,bytes_in,bytes_out)|ushort(device)
|
||||
|
@@ -32,11 +32,12 @@
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
|
||||
#define GLIBTOP_NETINFO_IF_FLAGS 0
|
||||
#define GLIBTOP_NETINFO_MTU 1
|
||||
#define GLIBTOP_NETINFO_SUBNET 2
|
||||
#define GLIBTOP_NETINFO_ADDRESS 3
|
||||
#define GLIBTOP_NETINFO_TRANSPORT 1
|
||||
#define GLIBTOP_NETINFO_MTU 2
|
||||
#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;
|
||||
|
||||
@@ -65,6 +66,7 @@ struct _glibtop_netinfo
|
||||
{
|
||||
u_int64_t flags,
|
||||
if_flags, /* GLIBTOP_NETINFO_IF_FLAGS */
|
||||
transport, /* GLIBTOP_NETINFO_TRANSPORT */
|
||||
mtu, /* GLIBTOP_NETINFO_MTU */
|
||||
subnet, /* GLIBTOP_NETINFO_SUBNET */
|
||||
address; /* GLIBTOP_NETINFO_ADDRESS */
|
||||
|
@@ -27,18 +27,19 @@
|
||||
|
||||
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] =
|
||||
{
|
||||
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] =
|
||||
{
|
||||
N_ ("Interface Flags"),
|
||||
N_ ("Transport Method"),
|
||||
N_ ("MTU"),
|
||||
N_ ("Subnet"),
|
||||
N_ ("Address"),
|
||||
@@ -47,6 +48,7 @@ const char *glibtop_labels_netinfo[GLIBTOP_MAX_NETINFO] =
|
||||
const char *glibtop_descriptions_netinfo[GLIBTOP_MAX_NETINFO] =
|
||||
{
|
||||
N_ ("Interface Flags"),
|
||||
N_ ("Transport Method"),
|
||||
N_ ("Maximum Transfer Unit"),
|
||||
N_ ("Subnet"),
|
||||
N_ ("Address"),
|
||||
|
Reference in New Issue
Block a user