[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1444945997-55864-1-git-send-email-roopa@cumulusnetworks.com>
Date: Thu, 15 Oct 2015 14:53:17 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: stephen@...workplumber.org
Cc: netdev@...r.kernel.org, wkok@...ulusnetworks.com
Subject: [PATCH iproute2] bridge: add calls to fflush in fdb and mdb print functions
From: Wilson Kok <wkok@...ulusnetworks.com>
This patch adds fflush in fdb and mdb print functions
Signed-off-by: Wilson Kok <wkok@...ulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
---
bridge/fdb.c | 2 ++
bridge/mdb.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/bridge/fdb.c b/bridge/fdb.c
index bd7e4f9..5ea50ab 100644
--- a/bridge/fdb.c
+++ b/bridge/fdb.c
@@ -163,6 +163,8 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, "offload ");
fprintf(fp, "%s\n", state_n2a(r->ndm_state));
+ fflush(fp);
+
return 0;
}
diff --git a/bridge/mdb.c b/bridge/mdb.c
index b14bd01..24c4903 100644
--- a/bridge/mdb.c
+++ b/bridge/mdb.c
@@ -135,6 +135,8 @@ int print_mdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
}
}
+ fflush(fp);
+
return 0;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists