svn commit: r302979 - stable/11/sbin/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Mon Jul 18 04:16:55 UTC 2016


Author: ae
Date: Mon Jul 18 04:16:53 2016
New Revision: 302979
URL: https://svnweb.freebsd.org/changeset/base/302979

Log:
  MFC r302561,302565:
    Flush buffer after output. This fixes adding new data to already
    printed flows.
  
    PR:		210882
  Approved by:	re (kib)

Modified:
  stable/11/sbin/ipfw/dummynet.c
  stable/11/sbin/ipfw/ipfw2.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ipfw/dummynet.c
==============================================================================
--- stable/11/sbin/ipfw/dummynet.c	Mon Jul 18 03:59:03 2016	(r302978)
+++ stable/11/sbin/ipfw/dummynet.c	Mon Jul 18 04:16:53 2016	(r302979)
@@ -612,6 +612,7 @@ list_pipes(struct dn_id *oid, struct dn_
 	    }
 	    list_flow(&bp, (struct dn_flow *)oid);
 	    printf("%s\n", bp.buf);
+	    bp_flush(&bp);
 	    break;
 
 	case DN_LINK: {

Modified: stable/11/sbin/ipfw/ipfw2.h
==============================================================================
--- stable/11/sbin/ipfw/ipfw2.h	Mon Jul 18 03:59:03 2016	(r302978)
+++ stable/11/sbin/ipfw/ipfw2.h	Mon Jul 18 04:16:53 2016	(r302979)
@@ -371,6 +371,9 @@ void fill_unreach6_code(u_short *codep, 
 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);


More information about the svn-src-stable mailing list