#include <SctpNatTable.h>
|
| | SctpNatTable () |
| |
| | ~SctpNatTable () |
| |
| SctpNatEntry * | findNatEntry (L3Address srcAddr, uint16_t srcPrt, L3Address destAddr, uint16_t destPrt, uint32_t globalVtag) |
| |
| SctpNatEntry * | getEntry (L3Address globalAddr, uint16_t globalPrt, L3Address nattedAddr, uint16_t nattedPrt, uint32_t localVtag) |
| |
| SctpNatEntry * | getSpecialEntry (L3Address globalAddr, uint16_t globalPrt, L3Address nattedAddr, uint16_t nattedPrt) |
| |
| SctpNatEntry * | getLocalInitEntry (L3Address globalAddr, uint16_t localPrt, uint16_t globalPrt) |
| |
| SctpNatEntry * | getLocalEntry (L3Address globalAddr, uint16_t localPrt, uint16_t globalPrt, uint32_t localVtag) |
| |
| void | removeEntry (SctpNatEntry *entry) |
| |
| void | printNatTable () |
| |
◆ SctpNatEntryTable
◆ SctpNatTable()
| inet::sctp::SctpNatTable::SctpNatTable |
( |
| ) |
|
◆ ~SctpNatTable()
| inet::sctp::SctpNatTable::~SctpNatTable |
( |
| ) |
|
◆ findNatEntry()
| SctpNatEntry * inet::sctp::SctpNatTable::findNatEntry |
( |
L3Address |
srcAddr, |
|
|
uint16_t |
srcPrt, |
|
|
L3Address |
destAddr, |
|
|
uint16_t |
destPrt, |
|
|
uint32_t |
globalVtag |
|
) |
| |
43 if ((elem)->getLocalAddress() == srcAddr && (elem)->getLocalPort() == srcPrt &&
44 (elem)->getGlobalAddress() == destAddr && (elem)->getGlobalPort() == destPrt && (elem)->getGlobalVTag() == globalVtag)
◆ getEntry()
| SctpNatEntry * inet::sctp::SctpNatTable::getEntry |
( |
L3Address |
globalAddr, |
|
|
uint16_t |
globalPrt, |
|
|
L3Address |
nattedAddr, |
|
|
uint16_t |
nattedPrt, |
|
|
uint32_t |
localVtag |
|
) |
| |
56 if ((elem)->getGlobalAddress() == globalAddr && (elem)->getGlobalPort() == globalPrt &&
57 (elem)->getNattedAddress() == nattedAddr && (elem)->getNattedPort() == nattedPrt &&
58 (elem)->getLocalVTag() == localVtag)
◆ getLocalEntry()
| SctpNatEntry * inet::sctp::SctpNatTable::getLocalEntry |
( |
L3Address |
globalAddr, |
|
|
uint16_t |
localPrt, |
|
|
uint16_t |
globalPrt, |
|
|
uint32_t |
localVtag |
|
) |
| |
100 if ((elem)->getGlobalAddress() == globalAddr && (elem)->getGlobalPort() == localPrt &&
101 (elem)->getLocalPort() == globalPrt && (elem)->getLocalVTag() == localVtag)
◆ getLocalInitEntry()
| SctpNatEntry * inet::sctp::SctpNatTable::getLocalInitEntry |
( |
L3Address |
globalAddr, |
|
|
uint16_t |
localPrt, |
|
|
uint16_t |
globalPrt |
|
) |
| |
87 if ((elem)->getGlobalAddress() == globalAddr && (elem)->getGlobalPort() == localPrt &&
88 (elem)->getLocalPort() == globalPrt)
◆ getNextEntryNumber()
| static uint32_t inet::sctp::SctpNatTable::getNextEntryNumber |
( |
| ) |
|
|
inlinestatic |
◆ getSpecialEntry()
72 if ((elem)->getGlobalAddress() == globalAddr && (elem)->getGlobalPort() == globalPrt &&
73 (elem)->getNattedAddress() == nattedAddr && (elem)->getNattedPort() == nattedPrt &&
74 (elem)->getGlobalVTag() == 0)
◆ printNatTable()
| void inet::sctp::SctpNatTable::printNatTable |
( |
| ) |
|
125 EV_INFO <<
"localAddr:" << (elem)->getLocalAddress() <<
" globalAddr:" << (elem)->getGlobalAddress() <<
" localPort:" << (elem)->getLocalPort() <<
" globalPort:" << (elem)->getGlobalPort() <<
" nattedAddr:" << (elem)->getNattedAddress() <<
" nattedPort:" << (elem)->getNattedPort() <<
" localVtag:" << (elem)->getLocalVTag() <<
" globalVtag:" << (elem)->getGlobalVTag() <<
"\n";
◆ removeEntry()
| void inet::sctp::SctpNatTable::removeEntry |
( |
SctpNatEntry * |
entry | ) |
|
112 if (((*i)->getGlobalAddress() == entry->getGlobalAddress() && (*i)->getGlobalPort() == entry->getGlobalPort() &&
113 (*i)->getLocalPort() == entry->getLocalPort() && (*i)->getLocalVTag() == entry->getLocalVTag())
114 || (((*i)->getLocalAddress() == entry->getGlobalAddress() && (*i)->getLocalPort() == entry->getGlobalPort() &&
115 (*i)->getGlobalPort() == entry->getLocalPort() && (*i)->getGlobalVTag() == entry->getLocalVTag())))
◆ natEntries
◆ nextEntryNumber
| uint32_t inet::sctp::SctpNatTable::nextEntryNumber = 0 |
|
static |
The documentation for this class was generated from the following files: