finding rx_bytes and tx_bytes

From: kanhu rauta (kanhu2004_at_rediffmail.com)
Date: 02/28/05

  • Next message: Rushan Sobar: "Re: Redhat9 and Sendmail patch issue"
    Date: 28 Feb 2005 07:31:30 -0000
    To: redhat-list@redhat.com
    
    

       Hi all, i am using fedora with kernel version 2.6.9-1.667. i want to know the total bytes received(RX packets) and total bytes transmitted (TX packets) on a particular interface. i have found that there is a structure " strcut net_device_stats", which is declared in "/usr/include/linux/netdevice.h" keeps the information of rx_bytes ant tx_bytes. how i 'll access this structure in my c program. what are the system calls available in linux to access this structure. regards kanhu

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Rushan Sobar: "Re: Redhat9 and Sendmail patch issue"

    Relevant Pages

    • Re: Multicast group memberships lost if eth0 brought down and up
      ... > running in user-space, not in the kernel. ... > setting the socket option can one also receive packets from the group. ... > used to be associated with that interface. ... > I would have expected the kernel to save group memberships when it ...
      (Fedora)
    • Terminal Server Setup
      ... description GRE Tunnel Source Interface ... input packets with dribble condition detected ... output buffer failures, ... Serial1/0 is up, line protocol is up ...
      (comp.dcom.sys.cisco)
    • Re: Tuning ADSL lines on Ciscos roputer - LONG -
      ... Last clearing of "show interface" counters never ... minute input rate 0 bits/sec, ... input packets with dribble condition detected ... output buffer failures, ...
      (comp.dcom.sys.cisco)
    • Re: Terminal Server Setup
      ... description GRE Tunnel Source Interface ... input packets with dribble condition detected ... output buffer failures, ...
      (comp.dcom.sys.cisco)
    • Re: Excessive interface resets on Cisco 1841 and FIOS line
      ... huge amount of interface resets on the WAN interface, ... access-list 4 remark HTTP Access-class list ... input packets with dribble condition detected ... output buffer failures, ...
      (comp.dcom.sys.cisco)