Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Fix a bug that BPF_D_OUT isn't printed corre...
details: https://anonhg.NetBSD.org/src/rev/356196965e3d
branches: trunk
changeset: 320207:356196965e3d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Jun 26 09:50:42 2018 +0000
description:
Fix a bug that BPF_D_OUT isn't printed correctly.
diffstat:
usr.bin/netstat/bpf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a5a2545aac90 -r 356196965e3d usr.bin/netstat/bpf.c
--- a/usr.bin/netstat/bpf.c Tue Jun 26 06:52:43 2018 +0000
+++ b/usr.bin/netstat/bpf.c Tue Jun 26 09:50:42 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.12 2018/06/26 06:48:03 msaitoh Exp $ */
+/* $NetBSD: bpf.c,v 1.13 2018/06/26 09:50:42 msaitoh Exp $ */
/*
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -148,7 +148,7 @@
printf("%c", BPFEXT(bde_promisc) ? 'P' : '-');
printf("%c", BPFEXT(bde_immediate) ? 'R' : '-');
printf("%c", (BPFEXT(bde_direction) == BPF_D_IN) ? '-'
- : (BPFEXT(bde_direction) == BPF_D_IN) ? 'O' : 'S');
+ : (BPFEXT(bde_direction) == BPF_D_OUT) ? 'O' : 'S');
printf("%c", BPFEXT(bde_hdrcmplt) ? 'H' : '-');
printf(" %-8d ", BPFEXT(bde_bufsize));
Home |
Main Index |
Thread Index |
Old Index