#include <openflow/openflow-netlink.h>
#include <signal.h>
#include <stdlib.h>
+#include <sys/stat.h>
#include <sys/socket.h>
#include <unistd.h>
#include "cfg.h"
+#include "dirs.h"
#include "dpif.h"
#include "flow.h"
#include "list.h"
bridge_create(const char *name)
{
struct bridge *br;
+ struct stat s;
struct svec argv;
char *dp_name;
int sockets[2];
svec_add(&argv, "--fail=closed");
svec_add(&argv, "--max-backoff=1");
svec_add(&argv, "--no-stp");
+ if (!stat(ofp_rundir, &s)) {
+ svec_add_nocopy(&argv,
+ xasprintf("--monitor=punix:%s/secchan%d.monitor",
+ ofp_rundir, br->dp_idx));
+ }
svec_add_nocopy(&argv,
xasprintf("-vPATTERN:console:%s|secchan(nl:%d)|%s",
"%d{%b %d %H:%M:%S}",