Module Name:    src
Committed By:   msaitoh
Date:           Tue Jun 26 09:50:42 UTC 2018

Modified Files:
        src/usr.bin/netstat: bpf.c

Log Message:
 Fix a bug that BPF_D_OUT isn't printed correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/netstat/bpf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/netstat/bpf.c
diff -u src/usr.bin/netstat/bpf.c:1.12 src/usr.bin/netstat/bpf.c:1.13
--- src/usr.bin/netstat/bpf.c:1.12	Tue Jun 26 06:48:03 2018
+++ src/usr.bin/netstat/bpf.c	Tue Jun 26 09:50:42 2018
@@ -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 @@ bpf_dump(const char *bpfif)
 			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));
 

Reply via email to