After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565096 - Rework struct glibtop_netload
Rework struct glibtop_netload
Status: RESOLVED OBSOLETE
Product: libgtop
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: libgtop maintainers
libgtop maintainers
Depends on:
Blocks: 563765 563767 563768
 
 
Reported: 2008-12-19 14:27 UTC by Benoît Dejean
Modified: 2018-01-10 19:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benoît Dejean 2008-12-19 14:27:28 UTC
The current glibtop_get_netload API has many limitation:
- it doesn't provide broadcast address for IPv4 interface
- it supports only 1 IPv4 address per interface
- it supports only 1 IPv6 address per interface


May be it would be nice to split netload into:

- keep netload as is for compatibility, eventually strip it

- provide a new API to retrieve all addresses uses by an interface, possibly returning an array of
  struct {
    type;
    mtu;
    hardware address;
    union address {
      struct IPv4 { address, subnet, broadcast };
      struct IPv6 { address, prefix, scope };
    };
  };


Or it would be also possible to enlarge struct glibtop_netload so that it would include a fixed number of addresses (say 32 ?).
Comment 1 Benoît Dejean 2008-12-19 14:30:47 UTC
And another P-t-P type for address
Comment 2 GNOME Infrastructure Team 2018-01-10 19:46:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgtop/issues/13.