WvStreams
Public Types | Public Member Functions | Public Attributes | List of all members
WvEncap Class Reference

Common packet encapsulation types, with the ability to convert a Linux ARPHRD_* value or (struct sockaddr) sa_family value. More...

#include <wvaddr.h>

Public Types

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

Public Member Functions

 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
 

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 72 of file debian/libwvstreams-dev/usr/include/wvstreams/wvaddr.h.

Member Enumeration Documentation

◆ CapType [1/2]

enum WvEncap::CapType

◆ CapType [2/2]

enum WvEncap::CapType

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

Constructor & Destructor Documentation

◆ WvEncap() [1/3]

WvEncap::WvEncap ( CapType  _cap = Unknown)
inline

◆ WvEncap() [2/3]

WvEncap::WvEncap ( int  extype)

Definition at line 75 of file wvaddr.cc.

◆ WvEncap() [3/3]

WvEncap::WvEncap ( CapType  _cap = Unknown)
inline

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

Member Function Documentation

◆ operator CapType() [1/2]

WvEncap::operator CapType ( ) const
inline

◆ operator WvString() [1/2]

WvEncap::operator WvString ( ) const
inline

◆ operator CapType() [2/2]

WvEncap::operator CapType ( ) const
inline

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

◆ operator WvString() [2/2]

WvEncap::operator WvString ( ) const
inline

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

Member Data Documentation

◆ cap

CapType WvEncap::cap

The documentation for this class was generated from the following files: