|
OpenSDN source code
|
#include <l4_port_bitmap.h>

Classes | |
| struct | PortBitmap |
Public Member Functions | |
| L4PortBitmap () | |
| ~L4PortBitmap () | |
| void | AddPort (uint8_t proto, uint16_t sport, uint16_t dport) |
| void | Encode (PortBucketBitmap &bmap) |
| void | Reset () |
Public Attributes | |
| PortBitmap | tcp_sport_ |
| PortBitmap | tcp_dport_ |
| PortBitmap | udp_sport_ |
| PortBitmap | udp_dport_ |
Static Public Attributes | |
| static const uint16_t | kPortPerBucket = 256 |
| static const uint16_t | kBucketCount = (0x10000 / kPortPerBucket) |
| static const uint16_t | kBitsPerEntry = (sizeof(uint32_t) * 8) |
| static const uint16_t | kBmapCount = (kBucketCount / kBitsPerEntry) |
Definition at line 13 of file l4_port_bitmap.h.
| L4PortBitmap::L4PortBitmap | ( | ) |
Definition at line 28 of file l4_port_bitmap.cc.
| L4PortBitmap::~L4PortBitmap | ( | ) |
Definition at line 32 of file l4_port_bitmap.cc.
| void L4PortBitmap::AddPort | ( | uint8_t | proto, |
| uint16_t | sport, | ||
| uint16_t | dport | ||
| ) |
| void L4PortBitmap::Encode | ( | PortBucketBitmap & | bmap | ) |
| void L4PortBitmap::Reset | ( | ) |
|
static |
Definition at line 16 of file l4_port_bitmap.h.
|
static |
Definition at line 17 of file l4_port_bitmap.h.
|
static |
Definition at line 15 of file l4_port_bitmap.h.
|
static |
Definition at line 14 of file l4_port_bitmap.h.
| PortBitmap L4PortBitmap::tcp_dport_ |
Definition at line 40 of file l4_port_bitmap.h.
| PortBitmap L4PortBitmap::tcp_sport_ |
Definition at line 39 of file l4_port_bitmap.h.
| PortBitmap L4PortBitmap::udp_dport_ |
Definition at line 42 of file l4_port_bitmap.h.
| PortBitmap L4PortBitmap::udp_sport_ |
Definition at line 41 of file l4_port_bitmap.h.