Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WvEncap Class Reference

#include <wvaddr.h>

Collaboration diagram for WvEncap:

[legend]
List of all members.

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 67 of file wvaddr.h.

Public Types

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

Public Member Functions

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

Public Attributes

CapType cap


Member Enumeration Documentation

enum WvEncap::CapType
 

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

Definition at line 74 of file wvaddr.h.

Referenced by WvEncap().


Constructor & Destructor Documentation

WvEncap::WvEncap CapType  _cap = Unknown  )  [inline]
 

Definition at line 94 of file wvaddr.h.

References cap.

WvEncap::WvEncap int  extype  ) 
 

Definition at line 65 of file wvaddr.cc.

References cap, CapType, NUM_ENCAP_TYPES, and Unknown.


Member Function Documentation

WvEncap::operator CapType  )  const [inline]
 

Definition at line 99 of file wvaddr.h.

References cap.

WvEncap::operator WvString  )  const [inline]
 

Definition at line 102 of file wvaddr.h.

References cap.


Member Data Documentation

CapType WvEncap::cap
 

Definition at line 92 of file wvaddr.h.

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


The documentation for this class was generated from the following files:
Generated on Sat Feb 21 21:06:14 2004 for WvStreams by doxygen 1.3.5