"Fossies" - the Fresh Open Source Software Archive

Member "iftop-0.17/ether.h" (31 Mar 2005, 409 Bytes) of package /linux/privat/old/iftop-0.17.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ether.h": 1.0pre4_vs_0.17.

    1 #ifndef __ETHER_H_
    2 #define __ETHER_H_
    3 
    4 #define ETHERTYPE_PUP       0x0200   
    5 #define ETHERTYPE_IP        0x0800
    6 #define ETHERTYPE_ARP       0x0806
    7 #define ETHERTYPE_REVARP    0x8035
    8 
    9 #define ETHER_ADDR_LEN      6
   10 
   11 struct  ether_header {
   12     u_int8_t    ether_dhost[ETHER_ADDR_LEN];
   13     u_int8_t    ether_shost[ETHER_ADDR_LEN];
   14     u_int16_t   ether_type;
   15 };
   16 
   17 struct vlan_8021q_header {
   18     u_int16_t   priority_cfi_vid;
   19     u_int16_t   ether_type;
   20 };
   21 
   22 #endif