File: ofp-version-opt.h

package info (click to toggle)
openvswitch 2.3.0%2Bgit20140819-3
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 24,156 kB
  • sloc: sh: 223,720; ansic: 153,459; python: 13,272; xml: 12,432; perl: 408; makefile: 382
file content (26 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef OFP_VERSION_H
#define OFP_VERSION_H 1

#include <openflow/openflow-common.h>
#include "util.h"
#include "ofp-util.h"

#define OFP_VERSION_LONG_OPTIONS                                \
        {"version",     no_argument, NULL, 'V'},                \
        {"protocols", required_argument, NULL, 'O'}

#define OFP_VERSION_OPTION_HANDLERS                             \
        case 'V':                                               \
            ovs_print_version(OFP10_VERSION, OFP13_VERSION);    \
            exit(EXIT_SUCCESS);                                 \
                                                                \
        case 'O':                                               \
            set_allowed_ofp_versions(optarg);                   \
            break;

uint32_t get_allowed_ofp_versions(void);
void set_allowed_ofp_versions(const char *string);
void mask_allowed_ofp_versions(uint32_t);
void ofp_version_usage(void);

#endif