conexus logo

Conexus::LL::Address Class Reference

Link Layer packet interface device address. More...

#include <ll_address.h>

Inheritance diagram for Conexus::LL::Address:

Inheritance graph

List of all members.

Public Member Functions

 Address (unsigned short protocol=ETH_P_IP)
virtual ~Address ()
unsigned short family () const
unsigned short protocol () const
void set_protocol (unsigned short)
int interface_index () const
unsigned short hardware_type () const
unsigned char packet_type () const
unsigned char hardware_address_length () const
const unsigned char * hardware_address () const
virtual socklen_t sockaddr_size () const
virtual bool is_broadcast () const
void set_interface (int)
void set_interface (const std::string)


class Packet

Detailed Description

Link Layer packet interface device address.

This object wraps the Linux device level packet interface structure sockaddr_ll and provides accessor methods for the members. Many of the related functions for manipulating the sockaddr_ll structure are presented in the class interface as methods.

Several extensions to the API functionality are also provided, such as a method to retrieve the kernel's numeric index for a give interface or the MAC address.

Rick L Vinyard Jr

ll_client.cpp, and ll_server.cpp.

Constructor & Destructor Documentation

Conexus::LL::Address::Address ( unsigned short  protocol = ETH_P_IP  ) 

Conexus::LL::Address::~Address (  )  [virtual]

Reimplemented from Conexus::Address.

Member Function Documentation

unsigned short Conexus::LL::Address::family (  )  const

const unsigned char * Conexus::LL::Address::hardware_address (  )  const

unsigned char Conexus::LL::Address::hardware_address_length (  )  const

unsigned short Conexus::LL::Address::hardware_type (  )  const

int Conexus::LL::Address::interface_index (  )  const

bool Conexus::LL::Address::is_broadcast (  )  const [virtual]

Reimplemented from Conexus::Address.

References Conexus::Address::m_sockaddr.

unsigned char Conexus::LL::Address::packet_type (  )  const

unsigned short Conexus::LL::Address::protocol (  )  const

void Conexus::LL::Address::set_interface ( const std::string  ifname  ) 

void Conexus::LL::Address::set_interface ( int  ifindex  ) 

void Conexus::LL::Address::set_protocol ( unsigned short  p  ) 

socklen_t Conexus::LL::Address::sockaddr_size (  )  const [virtual]

Reimplemented from Conexus::Address.

Friends And Related Function Documentation

friend class Packet [friend]

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

Generated on Wed Jul 8 15:51:28 2009 for conexus by doxygen 1.5.8