]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bridge: add calls to fflush in fdb and mdb print functions
authorWilson Kok <wkok@cumulusnetworks.com>
Thu, 15 Oct 2015 21:53:17 +0000 (14:53 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 19 Oct 2015 04:57:06 +0000 (21:57 -0700)
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
bridge/mdb.c

index bd7e4f924a013bdcf8a6f88cf07db173fc64c7dc..5ea50abb39442fa50688951dbca7e77d85c14c31 100644 (file)
@@ -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;
 }
 
index b14bd019c5c5fd0ab59de5d163b2de48c1048773..24c4903542bf0123d33fef267260973c2ebde73c 100644 (file)
@@ -135,6 +135,8 @@ int print_mdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
                }
        }
 
+       fflush(fp);
+
        return 0;
 }