Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvEncap Class Reference

#include <wvaddr.h>

List of all members.

Public Types

enum  CapType {
  Unknown = 0, Loopback, Ethertap, Ethernet,
  ARCnet, SLIP, CSLIP, PPP,
  IPv4, Unix, NUM_ENCAP_TYPES
}
enum  CapType {
  Unknown = 0, Loopback, Ethertap, Ethernet,
  ARCnet, SLIP, CSLIP, PPP,
  IPv4, Unix, NUM_ENCAP_TYPES
}

Public Methods

 WvEncap (CapType _cap=Unknown)
 WvEncap (int extype)
 operator CapType () const
 operator WvString () const
 WvEncap (CapType _cap=Unknown)
 WvEncap (int extype)
 operator CapType () const
 operator WvString () const

Public Attributes

CapType cap

Static Private Attributes

char strings [][20]
int extypes []


Detailed Description

Common packet encapsulation types, with the ability to convert a Linux ARPHRD_* value or (struct sockaddr) sa_family value. (Those two use the same set of values.)

Definition at line 43 of file include/wvaddr.h.


Member Enumeration Documentation

enum WvEncap::CapType
 

Enumeration values:
Unknown 
Loopback 
Ethertap 
Ethernet 
ARCnet 
SLIP 
CSLIP 
PPP 
IPv4 
Unix 
NUM_ENCAP_TYPES 

Definition at line 50 of file ipstreams/wvaddr.h.

enum WvEncap::CapType
 

Enumeration values:
Unknown 
Loopback 
Ethertap 
Ethernet 
ARCnet 
SLIP 
CSLIP 
PPP 
IPv4 
Unix 
NUM_ENCAP_TYPES 

Definition at line 50 of file include/wvaddr.h.

Referenced by WvEncap().


Constructor & Destructor Documentation

WvEncap::WvEncap CapType    _cap = Unknown [inline]
 

Definition at line 70 of file include/wvaddr.h.

References cap, CapType, and Unknown.

WvEncap::WvEncap int    extype
 

Definition at line 58 of file wvaddr.cc.

References cap, extypes, NUM_ENCAP_TYPES, and Unknown.

WvEncap::WvEncap CapType    _cap = Unknown [inline]
 

Definition at line 70 of file ipstreams/wvaddr.h.

References cap, CapType, and Unknown.

WvEncap::WvEncap int    extype
 


Member Function Documentation

WvEncap::operator CapType   const [inline]
 

Definition at line 75 of file ipstreams/wvaddr.h.

References cap.

WvEncap::operator CapType   const [inline]
 

Definition at line 75 of file include/wvaddr.h.

References cap.

WvEncap::operator WvString   const [inline]
 

Definition at line 78 of file ipstreams/wvaddr.h.

References cap, and strings.

WvEncap::operator WvString   const [inline]
 

Definition at line 78 of file include/wvaddr.h.

References cap, and strings.


Member Data Documentation

CapType WvEncap::cap
 

Definition at line 68 of file ipstreams/wvaddr.h.

Referenced by WvAddr::gen(), operator CapType(), operator WvString(), and WvEncap().

int WvEncap::extypes [static, private]
 

Initial value:

 {
    
    0, 
    ARPHRD_LOOPBACK,
    0, 
    ARPHRD_ETHER,
    ARPHRD_ARCNET,
    ARPHRD_SLIP,
    ARPHRD_CSLIP,
    ARPHRD_PPP,
    
    
    AF_INET, 
    AF_UNIX  
}

Definition at line 46 of file ipstreams/wvaddr.h.

Referenced by WvEncap().

char WvEncap::strings[][20] [static, private]
 

Definition at line 45 of file ipstreams/wvaddr.h.

Referenced by operator WvString().


The documentation for this class was generated from the following files:
Generated on Sat Aug 24 21:09:39 2002 for WvStreams by doxygen1.2.15