diff options
author | ae <ae@FreeBSD.org> | 2016-07-18 04:16:53 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-07-18 04:16:53 +0000 |
commit | 8bb7cc7915afba21cc65160abdd4f38343521b2e (patch) | |
tree | a41efe9875e16ae7cf21ae92b1da2f578484c3f7 /sbin/ipfw | |
parent | f86d1a3dbbdb391158820c0c8db3e5025aae4e8a (diff) | |
download | FreeBSD-src-8bb7cc7915afba21cc65160abdd4f38343521b2e.zip FreeBSD-src-8bb7cc7915afba21cc65160abdd4f38343521b2e.tar.gz |
MFC r302561,302565:
Flush buffer after output. This fixes adding new data to already
printed flows.
PR: 210882
Approved by: re (kib)
Diffstat (limited to 'sbin/ipfw')
-rw-r--r-- | sbin/ipfw/dummynet.c | 1 | ||||
-rw-r--r-- | sbin/ipfw/ipfw2.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sbin/ipfw/dummynet.c b/sbin/ipfw/dummynet.c index ca2dfc8..20c563b 100644 --- a/sbin/ipfw/dummynet.c +++ b/sbin/ipfw/dummynet.c @@ -612,6 +612,7 @@ list_pipes(struct dn_id *oid, struct dn_id *end) } list_flow(&bp, (struct dn_flow *)oid); printf("%s\n", bp.buf); + bp_flush(&bp); break; case DN_LINK: { diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h index 7ea2083..b7f8c0b 100644 --- a/sbin/ipfw/ipfw2.h +++ b/sbin/ipfw/ipfw2.h @@ -371,6 +371,9 @@ void fill_unreach6_code(u_short *codep, char *str); void fill_icmp6types(struct _ipfw_insn_icmp6 *cmd, char *av, int cblen); int fill_ext6hdr(struct _ipfw_insn *cmd, char *av); +/* ipfw2.c */ +void bp_flush(struct buf_pr *b); + /* tables.c */ struct _ipfw_obj_ctlv; int table_check_name(const char *tablename); |