Subject: problem with netstat
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 06/01/2006 23:03:50
Hi,

since a few days I get "ifnet: symbol not defined" when using netstat(1)
with -I <interface> or an interval or any other option which displays 
interface specific information.

Applying the following patch (replacing "&&" with "||") makes netstat(1)
usable again:


>-1061: diff -u main.c.x main.c
--- main.c.x    2006-06-01 14:20:49.000000000 +0200
+++ main.c      2006-06-01 22:45:12.000000000 +0200
@@ -547,7 +547,7 @@
        }
 #endif
 
-       if (!use_sysctl && (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0)) {
+       if (!use_sysctl || (kvm_nlist(kvmd, nl) < 0 || nl[0].n_type == 0)) {
                if (nlistf)
                        errx(1, "%s: no namelist", nlistf);
                else


Should I send-pr?

Kurt