X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=secchan%2Fmain.c;h=ac711bad649f8f7c7dd00c76a441b6551ebd99b9;hb=2886875a385df582354ac916431b278f2fe698e0;hp=b3192ab86d579b6ea3de137e9086b255af490e97;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/secchan/main.c b/secchan/main.c index b3192ab8..ac711bad 100644 --- a/secchan/main.c +++ b/secchan/main.c @@ -118,6 +118,7 @@ main(int argc, char *argv[]) struct ofproto *ofproto; struct ofsettings s; int error; + struct netflow_options nf_options; set_program_name(argv[0]); register_fault_handlers(); @@ -168,7 +169,9 @@ main(int argc, char *argv[]) ovs_fatal(error, "failed to configure controller snooping connections"); } - error = ofproto_set_netflow(ofproto, &s.netflow, 0, 0, false); + memset(&nf_options, 0, sizeof nf_options); + nf_options.collectors = s.netflow; + error = ofproto_set_netflow(ofproto, &nf_options); if (error) { ovs_fatal(error, "failed to configure NetFlow collectors"); } @@ -291,7 +294,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s) s->fail_mode = FAIL_OPEN; s->max_idle = 0; s->probe_interval = 0; - s->max_backoff = 15; + s->max_backoff = 8; s->update_resolv_conf = true; s->rate_limit = 0; s->burst_limit = 0; @@ -353,8 +356,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s) } else if (!strcmp(optarg, "closed")) { s->fail_mode = FAIL_CLOSED; } else { - ovs_fatal(0, "-f or --fail argument must be \"open\" " - "or \"closed\""); + ovs_fatal(0, "--fail argument must be \"open\" or \"closed\""); } break; @@ -541,7 +543,7 @@ usage(void) " --inactivity-probe=SECS time between inactivity probes\n" " --max-idle=SECS max idle for flows set up by secchan\n" " --max-backoff=SECS max time between controller connection\n" - " attempts (default: 15 seconds)\n" + " attempts (default: 8 seconds)\n" " -l, --listen=METHOD allow management connections on METHOD\n" " (a passive OpenFlow connection method)\n" " --snoop=METHOD allow controller snooping on METHOD\n"