#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, const 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 (const 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...
|
| |
◆ BindingCache6
◆ BindingCache()
| inet::BindingCache::BindingCache |
( |
| ) |
|
◆ ~BindingCache()
| inet::BindingCache::~BindingCache |
( |
| ) |
|
|
virtual |
◆ addOrUpdateBC()
Sets Binding Cache Entry (BCE) with provided values.
If BCE does not yet exist, a new one will be created.
52 EV_INFO <<
"\n++++++++++++++++++++Binding Cache Being Updated in Routing Table6 ++++++++++++++\n";
◆ deleteEntry()
| void inet::BindingCache::deleteEntry |
( |
const Ipv6Address & |
HoA | ) |
|
Added by CB, 4.9.07 Delete the entry from the cache with the provided HoA.
◆ generateCareOfToken()
| int inet::BindingCache::generateCareOfToken |
( |
const Ipv6Address & |
CoA, |
|
|
int |
nonce |
|
) |
| |
|
virtual |
Generates a care-of token from the provided parameters.
Returns a static value for now.
◆ generateHomeToken()
| int inet::BindingCache::generateHomeToken |
( |
const Ipv6Address & |
HoA, |
|
|
int |
nonce |
|
) |
| |
|
virtual |
Generates a home token from the provided parameters.
Returns a static value for now.
◆ generateKey()
| 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.
116 return homeToken + careOfToken;
◆ getHomeRegistration()
| bool inet::BindingCache::getHomeRegistration |
( |
const Ipv6Address & |
HoA | ) |
const |
Returns the value of the homeRegistration flag for the given HoA.
93 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
94 return (pos ==
bindingCache.end()) ? false : pos->second.isHomeRegisteration;
◆ getLifetime()
Returns the lifetime of the binding for the given HoA.
99 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
100 return (pos ==
bindingCache.end()) ? 0 : pos->second.bindingLifetime;
◆ handleMessage()
| void inet::BindingCache::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
Raises an error.
46 throw cRuntimeError(
"This module doesn't process messages");
◆ initialize()
| void inet::BindingCache::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ isInBindingCache() [1/2]
| 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.
◆ isInBindingCache() [2/2]
Added by CB, 29.08.07 Checks whether there is an entry in the BC for the given HoA and CoA.
75 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
76 return (pos ==
bindingCache.end()) ? false : pos->second.careOfAddress == CoA;
◆ readBCSequenceNumber()
| uint inet::BindingCache::readBCSequenceNumber |
( |
const Ipv6Address & |
HoA | ) |
const |
Returns sequence number of BCE for provided HoA.
69 BindingCache6::const_iterator pos =
bindingCache.find(HoA);
70 return (pos ==
bindingCache.end()) ? 0 : pos->second.sequenceNumber;
◆ operator<<
22 os <<
"CoA of MN:" << bce.careOfAddress <<
" BU Lifetime: " << bce.bindingLifetime
23 <<
" Home Registeration: " << bce.isHomeRegisteration <<
" BU_Sequence#: "
24 << bce.sequenceNumber <<
"\n";
◆ bindingCache
The documentation for this class was generated from the following files: