[insert project logo here (125x200px max)]

Navigator

Mailinglists

Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums.

Copyright and Licensing Information

Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL).

All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License.

All sourcecode is made publicly available.

Acknowledgement

Splash and the Splash website are hosted by SourceForge.net

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/lib/interface.h

Go to the documentation of this file.
00001 struct user_net_device_stats
00002 {
00003   unsigned long rx_packets; /* total packets received   */
00004   unsigned long tx_packets; /* total packets transmitted    */
00005   unsigned long rx_bytes;   /* total bytes received     */
00006   unsigned long tx_bytes;   /* total bytes transmitted  */
00007   unsigned long rx_errors;  /* bad packets received     */
00008   unsigned long tx_errors;  /* packet transmit problems */
00009   unsigned long rx_dropped; /* no space in linux buffers    */
00010   unsigned long tx_dropped; /* no space available in linux  */
00011   unsigned long rx_multicast;   /* multicast packets received   */
00012   unsigned long rx_compressed;
00013   unsigned long tx_compressed;
00014   unsigned long collisions;
00015 
00016   /* detailed rx_errors: */
00017   unsigned long rx_length_errors;
00018   unsigned long rx_over_errors; /* receiver ring buff overflow  */
00019   unsigned long rx_crc_errors;  /* recved pkt with crc error    */
00020   unsigned long rx_frame_errors; /* recv'd frame alignment error */
00021   unsigned long rx_fifo_errors; /* recv'r fifo overrun      */
00022   unsigned long rx_missed_errors; /* receiver missed packet */
00023   /* detailed tx_errors */
00024   unsigned long tx_aborted_errors;
00025   unsigned long tx_carrier_errors;
00026   unsigned long tx_fifo_errors;
00027   unsigned long tx_heartbeat_errors;
00028   unsigned long tx_window_errors;
00029 };
00030 
00031 struct interface {
00032   char          name[IFNAMSIZ];     /* interface name    */
00033   short         type;           /* if type       */
00034   short         flags;          /* various flags     */
00035   int           metric;         /* routing metric    */
00036   int           mtu;            /* MTU value         */
00037   int           tx_queue_len;       /* transmit queue length */
00038   struct ifmap      map;            /* hardware setup    */
00039   struct sockaddr   addr;           /* IP address        */
00040   struct sockaddr   dstaddr;        /* P-P IP address    */
00041   struct sockaddr   broadaddr;      /* IP broadcast address  */
00042   struct sockaddr   netmask;        /* IP network mask   */
00043   struct sockaddr   ipxaddr_bb;     /* IPX network address   */
00044   struct sockaddr   ipxaddr_sn;     /* IPX network address   */
00045   struct sockaddr   ipxaddr_e3;     /* IPX network address   */
00046   struct sockaddr   ipxaddr_e2;     /* IPX network address   */
00047   struct sockaddr   ddpaddr;        /* Appletalk DDP address */
00048   struct sockaddr   ecaddr;         /* Econet address    */
00049   int           has_ip;
00050   int           has_ipx_bb;
00051   int           has_ipx_sn;
00052   int           has_ipx_e3;
00053   int           has_ipx_e2;
00054   int           has_ax25;
00055   int           has_ddp;
00056   int           has_econet;
00057   char          hwaddr[32];     /* HW address        */
00058   struct user_net_device_stats stats;       /* statistics        */
00059 };
00060 
00061 extern int procnetdev_vsn;
00062 
00063 extern int if_fetch(char *ifname, struct interface *ife);
00064 
00065 /* Check for supported features */
00066 
00067 #if defined(SIOCSIFTXQLEN) && defined(ifr_qlen)
00068 #define HAVE_TXQUEUELEN
00069 #endif