]>
Commit | Line | Data |
---|---|---|
020c9387 SH |
1 | #ifndef OFP_VERSION_H |
2 | #define OFP_VERSION_H 1 | |
3 | ||
4 | #include <openflow/openflow-common.h> | |
5 | #include "util.h" | |
f4248336 | 6 | #include "openvswitch/ofp-util.h" |
020c9387 SH |
7 | |
8 | #define OFP_VERSION_LONG_OPTIONS \ | |
9 | {"version", no_argument, NULL, 'V'}, \ | |
10 | {"protocols", required_argument, NULL, 'O'} | |
11 | ||
12 | #define OFP_VERSION_OPTION_HANDLERS \ | |
13 | case 'V': \ | |
14 | ovs_print_version(OFP10_VERSION, OFP13_VERSION); \ | |
15 | exit(EXIT_SUCCESS); \ | |
16 | \ | |
17 | case 'O': \ | |
18 | set_allowed_ofp_versions(optarg); \ | |
19 | break; | |
20 | ||
21 | uint32_t get_allowed_ofp_versions(void); | |
22 | void set_allowed_ofp_versions(const char *string); | |
37923ac7 | 23 | void mask_allowed_ofp_versions(uint32_t); |
db5076ee | 24 | void add_allowed_ofp_versions(uint32_t); |
020c9387 SH |
25 | void ofp_version_usage(void); |
26 | ||
27 | #endif |