libfluid
The ONF OpenFlow driver
GitHub:
libfluid
|
libfluid_base
|
libfluid_msg
Mailing list
Home
Documentation
API reference
libfluid_base
fluid
OFServerSettings.hh
1
2
#ifndef __OFSERVERSETTINGS_HH__
3
#define __OFSERVERSETTINGS_HH__
4
5
#include <stdint.h>
6
7
namespace
fluid_base {
8
9
#define ECHO_XID 0x0F
10
#define HELLO_XID 0x0F
11
12
class
OFServer;
13
18
class
OFServerSettings
{
19
public
:
33
OFServerSettings
();
34
46
OFServerSettings
&
supported_version
(
const
uint8_t version);
47
51
uint32_t*
supported_versions
();
52
56
uint8_t
max_supported_version
();
57
65
OFServerSettings
&
echo_interval
(
const
int
echo_interval
);
66
70
int
echo_interval
();
71
78
OFServerSettings
&
liveness_check
(
const
bool
liveness_check
);
79
83
bool
liveness_check
();
84
91
OFServerSettings
&
handshake
(
const
bool
handshake
);
92
96
bool
handshake
();
97
105
OFServerSettings
&
dispatch_all_messages
(
const
bool
dispatch_all_messages
);
106
110
bool
dispatch_all_messages
();
111
120
OFServerSettings
&
use_hello_elements
(
const
bool
use_hello_elements
);
121
125
bool
use_hello_elements
();
126
138
OFServerSettings
&
keep_data_ownership
(
const
bool
keep_data_ownership
);
139
144
bool
keep_data_ownership
();
145
146
private
:
147
friend
class
OFServer
;
148
149
uint32_t _supported_versions;
150
uint8_t _max_supported_version;
151
152
bool
version_set_by_hand;
153
void
add_version(
const
uint8_t version);
154
155
int
_echo_interval;
156
bool
_liveness_check;
157
bool
_handshake;
158
bool
_dispatch_all_messages;
159
bool
_use_hello_elements;
160
bool
_keep_data_ownership;
161
};
162
163
}
164
165
#endif