* [PATCH iproute2] bridge: add calls to fflush in fdb and mdb print functions
@ 2015-10-15 21:53 Roopa Prabhu
2015-10-19 4:47 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Roopa Prabhu @ 2015-10-15 21:53 UTC (permalink / raw)
To: stephen; +Cc: netdev, wkok
From: Wilson Kok <wkok@cumulusnetworks.com>
This patch adds fflush in fdb and mdb print functions
Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-19 4:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 21:53 [PATCH iproute2] bridge: add calls to fflush in fdb and mdb print functions Roopa Prabhu
2015-10-19 4:47 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).