class SgCount

Class that contains various counters per (S,G) entry. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

All counters are related to the multicast data packets per (S,G) entry.

 SgCount ()

SgCount

Default constructor

SgCount&  operator= (const SgCount& sg_count)

operator=

Assignment Operator

Parameters:

sg_countthe value to assing to this entry.

Returns: the entry with the new value assigned.

SgCount&  operator+= (const SgCount& sg_count)

operator+=

Assign-Sum Operator

Parameters:

sg_countthe value to add to this entry.

Returns: the entry with the new value after sg_count was added.

SgCount&  operator-= (const SgCount& sg_count)

operator-=

Assign-Difference Operator

Parameters:

sg_countthe value to substract from this entry.

Returns: the entry with the new value after sg_count was substracted.

size_t  pktcnt ()

pktcnt

[const]

Get the packet count.

Returns: the packet count.

size_t  bytecnt ()

bytecnt

[const]

Get the byte count.

Returns: the byte count.

size_t  wrong_if ()

wrong_if

[const]

Get the number of packets received on wrong interface.

Returns: the number of packets received on wrong interface.

void  set_pktcnt (size_t v)

set_pktcnt

Set the packet count.

Parameters:

vthe value to assign to the packet count.
void  set_bytecnt (size_t v)

set_bytecnt

Set the byte count.

Parameters:

vthe value to assign to the byte count.
void  set_wrong_if (size_t v)

set_wrong_if

Set the wrong-interface packet count.

Parameters:

vthe value to assign to the wrong-interface packet count.
void  reset ()

reset

Reset all counters.

bool  is_valid ()

is_valid

[const]

Test if this entry contains valid counters.

Returns: true if this entry contains valid counters, otherwise false.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:50 2008, using kdoc 2.0a54+XORP.