#include <BindingCache.h>
|
| BindingCache () |
|
virtual | ~BindingCache () |
|
void | addOrUpdateBC (const IPv6Address &hoa, const IPv6Address &coa, const uint lifetime, const uint seq, bool homeReg) |
| Sets Binding Cache Entry (BCE) with provided values. More...
|
|
uint | readBCSequenceNumber (const IPv6Address &HoA) const |
| Returns sequence number of BCE for provided HoA. More...
|
|
bool | isInBindingCache (const IPv6Address &HoA, IPv6Address &CoA) const |
| Added by CB, 29.08.07 Checks whether there is an entry in the BC for the given HoA and CoA. More...
|
|
bool | isInBindingCache (const IPv6Address &HoA) const |
| Added by CB, 4.9.07 Checks whether there is an entry in the BC for the given HoA. More...
|
|
void | deleteEntry (IPv6Address &HoA) |
| Added by CB, 4.9.07 Delete the entry from the cache with the provided HoA. More...
|
|
bool | getHomeRegistration (const IPv6Address &HoA) const |
| Returns the value of the homeRegistration flag for the given HoA. More...
|
|
uint | getLifetime (const IPv6Address &HoA) const |
| Returns the lifetime of the binding for the given HoA. More...
|
|
virtual int | generateHomeToken (const IPv6Address &HoA, int nonce) |
| Generates a home token from the provided parameters. More...
|
|
virtual int | generateCareOfToken (const IPv6Address &CoA, int nonce) |
| Generates a care-of token from the provided parameters. More...
|
|
virtual int | generateKey (int homeToken, int careOfToken, const IPv6Address &CoA) |
| Generates the key Kbm from home and care-of keygen token. More...
|
|
inet::BindingCache::BindingCache |
( |
| ) |
|
inet::BindingCache::~BindingCache |
( |
| ) |
|
|
virtual |
Sets Binding Cache Entry (BCE) with provided values.
If BCE does not yet exist, a new one will be created.
Referenced by inet::xMIPv6::processBUMessage().
61 EV_INFO <<
"\n++++++++++++++++++++Binding Cache Being Updated in Routing Table6 ++++++++++++++\n";
BindingCache6 bindingCache
Definition: BindingCache.h:78
void inet::BindingCache::deleteEntry |
( |
IPv6Address & |
HoA | ) |
|
int inet::BindingCache::generateCareOfToken |
( |
const IPv6Address & |
CoA, |
|
|
int |
nonce |
|
) |
| |
|
virtual |
int inet::BindingCache::generateHomeToken |
( |
const IPv6Address & |
HoA, |
|
|
int |
nonce |
|
) |
| |
|
virtual |
int inet::BindingCache::generateKey |
( |
int |
homeToken, |
|
|
int |
careOfToken, |
|
|
const IPv6Address & |
CoA |
|
) |
| |
|
virtual |
Generates the key Kbm from home and care-of keygen token.
For now, this return the sum of both tokens.
Referenced by inet::xMIPv6::validateBUMessage().
142 return homeToken + careOfToken;
bool inet::BindingCache::getHomeRegistration |
( |
const IPv6Address & |
HoA | ) |
const |
Returns the lifetime of the binding for the given HoA.
Referenced by inet::xMIPv6::processBUMessage().
121 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
126 return pos->second.bindingLifetime;
BindingCache6 bindingCache
Definition: BindingCache.h:78
void inet::BindingCache::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
Raises an error.
55 throw cRuntimeError(
"This module doesn't process messages");
void inet::BindingCache::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
BindingCache6 bindingCache
Definition: BindingCache.h:78
bool inet::BindingCache::isInBindingCache |
( |
const IPv6Address & |
HoA | ) |
const |
Added by CB, 4.9.07 Checks whether there is an entry in the BC for the given HoA.
BindingCache6 bindingCache
Definition: BindingCache.h:78
uint inet::BindingCache::readBCSequenceNumber |
( |
const IPv6Address & |
HoA | ) |
const |
Returns sequence number of BCE for provided HoA.
Referenced by inet::xMIPv6::validateBUMessage().
78 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
83 return pos->second.sequenceNumber;
BindingCache6 bindingCache
Definition: BindingCache.h:78
31 os <<
"CoA of MN:" << bce.careOfAddress <<
" BU Lifetime: " << bce.bindingLifetime
32 <<
" Home Registeration: " << bce.isHomeRegisteration <<
" BU_Sequence#: " 33 << bce.sequenceNumber <<
"\n";
The documentation for this class was generated from the following files: