Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/npf/npfctl PR/54670: Azuma OKAMOTO: Consistently us...



details:   https://anonhg.NetBSD.org/src/rev/fdb8dce1f805
branches:  trunk
changeset: 460727:fdb8dce1f805
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 01 13:58:32 2019 +0000

description:
PR/54670: Azuma OKAMOTO: Consistently use 'W' for TH_CWN, and bump buffer
size.

diffstat:

 usr.sbin/npf/npfctl/npf_show.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 6147eef79c62 -r fdb8dce1f805 usr.sbin/npf/npfctl/npf_show.c
--- a/usr.sbin/npf/npfctl/npf_show.c    Fri Nov 01 13:54:59 2019 +0000
+++ b/usr.sbin/npf/npfctl/npf_show.c    Fri Nov 01 13:58:32 2019 +0000
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_show.c,v 1.29 2019/08/10 22:23:55 rmind Exp $");
+__RCSID("$NetBSD: npf_show.c,v 1.30 2019/11/01 13:58:32 christos Exp $");
 
 #include <sys/socket.h>
 #define        __FAVOR_BSD
@@ -125,7 +125,7 @@
        if (tfl & TH_ACK)       buf[i++] = 'A';
        if (tfl & TH_URG)       buf[i++] = 'U';
        if (tfl & TH_ECE)       buf[i++] = 'E';
-       if (tfl & TH_CWR)       buf[i++] = 'C';
+       if (tfl & TH_CWR)       buf[i++] = 'W';
        buf[i] = '\0';
        return i;
 }
@@ -209,7 +209,7 @@
 print_tcpflags(npf_conf_info_t *ctx __unused, const uint32_t *words)
 {
        const u_int tf = words[0], tf_mask = words[1];
-       char buf[16];
+       char buf[20];
 
        size_t n = tcpflags2string(buf, tf);
        if (tf != tf_mask) {



Home | Main Index | Thread Index | Old Index