X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-openflowd.c;h=35f6f246ae9c5a685bb6cfcb3356527dd011fccf;hb=cef90b63b91e6738ea43d2039d6b0506a4752f97;hp=c275cd6a599703b58ed65cc707fd9c4936a609e7;hpb=4a1c5a01967225086795f5660fec4098f458948c;p=sliver-openvswitch.git diff --git a/utilities/ovs-openflowd.c b/utilities/ovs-openflowd.c index c275cd6a5..35f6f246a 100644 --- a/utilities/ovs-openflowd.c +++ b/utilities/ovs-openflowd.c @@ -345,10 +345,10 @@ parse_options(int argc, char *argv[], struct ofsettings *s) switch (c) { case OPT_DATAPATH_ID: - if (strlen(optarg) != 12 - || strspn(optarg, "0123456789abcdefABCDEF") != 12) { + if (strlen(optarg) != 16 + || strspn(optarg, "0123456789abcdefABCDEF") != 16) { ovs_fatal(0, "argument to --datapath-id must be " - "exactly 12 hex digits"); + "exactly 16 hex digits"); } s->datapath_id = strtoll(optarg, NULL, 16); if (!s->datapath_id) { @@ -467,10 +467,10 @@ parse_options(int argc, char *argv[], struct ofsettings *s) break; case OPT_MGMT_ID: - if (strlen(optarg) != 12 - || strspn(optarg, "0123456789abcdefABCDEF") != 12) { + if (strlen(optarg) != 16 + || strspn(optarg, "0123456789abcdefABCDEF") != 16) { ovs_fatal(0, "argument to --mgmt-id must be " - "exactly 12 hex digits"); + "exactly 16 hex digits"); } s->mgmt_id = strtoll(optarg, NULL, 16); if (!s->mgmt_id) { @@ -561,9 +561,9 @@ usage(void) vconn_usage(true, true, true); printf("\nOpenFlow options:\n" " -d, --datapath-id=ID Use ID as the OpenFlow switch ID\n" - " (ID must consist of 12 hex digits)\n" + " (ID must consist of 16 hex digits)\n" " --mgmt-id=ID Use ID as the management ID\n" - " (ID must consist of 12 hex digits)\n" + " (ID must consist of 16 hex digits)\n" " --manufacturer=MFR Identify manufacturer as MFR\n" " --hardware=HW Identify hardware as HW\n" " --software=SW Identify software as SW\n"