X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-ofctl.c;h=199bd43ec07061adac2934c99594857975c8e69d;hb=87c8489148d5e6d44b1d55f1325658222852232c;hp=db6038a030375205f0bc12b3e64f39389a6c9683;hpb=84f7e9b6d0f8730f4b470ffdc339b0e66dcd958e;p=sliver-openvswitch.git diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index db6038a03..199bd43ec 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -123,14 +123,15 @@ static void parse_options(int argc, char *argv[], struct settings *s) { enum { - OPT_STRICT = UCHAR_MAX + 1 + OPT_STRICT = UCHAR_MAX + 1, + VLOG_OPTION_ENUMS }; static struct option long_options[] = { {"timeout", required_argument, 0, 't'}, - {"verbose", optional_argument, 0, 'v'}, {"strict", no_argument, 0, OPT_STRICT}, {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, + VLOG_LONG_OPTIONS, VCONN_SSL_LONG_OPTIONS {0, 0, 0, 0}, }; @@ -166,14 +167,11 @@ parse_options(int argc, char *argv[], struct settings *s) OVS_PRINT_VERSION(OFP_VERSION, OFP_VERSION); exit(EXIT_SUCCESS); - case 'v': - vlog_set_verbosity(optarg); - break; - case OPT_STRICT: s->strict = true; break; + VLOG_OPTION_HANDLERS VCONN_SSL_OPTION_HANDLERS case '?':