INET Framework for OMNeT++/OMNEST
vlanTable.h File Reference
#include "IPAddress.h"
#include "IPAddressResolver.h"
#include "IRoutingTable.h"
#include "RoutingTableAccess.h"
#include "IInterfaceTable.h"
#include "InterfaceTableAccess.h"
#include "IPDatagram.h"
#include "TCPSegment.h"
#include "UDPPacket.h"
#include "NotificationBoard.h"
#include "MACAddress.h"
#include "Ethernet.h"
#include "EtherFrame_m.h"
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  VLANTable
struct  VLANTable::s_vid_port
struct  VLANTable::s_vid_record
struct  VLANTable::s_port_vid

Defines

#define VLANCOUNT   32

Functions

std::ostream & operator<< (std::ostream &os, const VLANTable::tTagAction a)
std::ostream & operator<< (std::ostream &os, const VLANTable::tVIDPortList l)
std::ostream & operator<< (std::ostream &os, const VLANTable::tPortVIDRecord r)
std::ostream & operator<< (std::ostream &os, const VLANTable::tVIDRecord r)

Define Documentation

#define VLANCOUNT   32

Definition at line 36 of file vlanTable.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const VLANTable::tTagAction  a 
) [inline]

Definition at line 128 of file vlanTable.h.

                                                                           {
        switch (a) {
        case VLANTable::INCLUDE:
                os << "T";
                break;
        case VLANTable::REMOVE:
                os << "U";
                break;
        case VLANTable::NONE:
                os << "??";
                break;
        }
        return os;
}
std::ostream& operator<< ( std::ostream &  os,
const VLANTable::tVIDPortList  l 
) [inline]

Definition at line 144 of file vlanTable.h.

                                                                             {
        os << "[";
        for (unsigned int i = 0; i < l.size(); i++) {
                if (i != 0) {
                        os << ", ";
                }
                os << l.at(i).port << l.at(i).action;
        }
        os << "]";
        return os;
}
std::ostream& operator<< ( std::ostream &  os,
const VLANTable::tPortVIDRecord  r 
) [inline]

Definition at line 156 of file vlanTable.h.

                                                                               {
        os << "Port " << r.port << " accessing VLAN " << r.VID;
        return os;
}
std::ostream& operator<< ( std::ostream &  os,
const VLANTable::tVIDRecord  r 
) [inline]

Definition at line 161 of file vlanTable.h.

                                                                           {
        os << "VLAN " << r.VID << " at ports " << r.portList;
        return os;
}