PERFORCE change 163963 for review
Gabor Pali
pgj at FreeBSD.org
Wed Jun 10 10:33:23 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163963
Change 163963 by pgj at petymeg-current on 2009/06/10 10:32:31
Fix a small bug
Affected files ...
.. //depot/projects/soc2009/pgj_libstat/src/lib/libnetstat/netstat.c#10 edit
.. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/inet.c#4 edit
.. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/unix.c#11 edit
Differences ...
==== //depot/projects/soc2009/pgj_libstat/src/lib/libnetstat/netstat.c#10 (text+ko) ====
@@ -250,7 +250,7 @@
kvm_t *kvm;
int use_kvm;
- use_kvm = flags & ~NETSTAT_SOCKET_KVM;
+ use_kvm = flags & NETSTAT_SOCKET_KVM;
if (use_kvm) {
/* Use KVM to retrieve data. */
kvm = (kvm_t *)kvm_handle;
==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/inet.c#4 (text+ko) ====
@@ -579,7 +579,7 @@
}
st_flags = 0;
- if (live)
+ if (!live)
st_flags |= NETSTAT_SOCKET_KVM;
if (netstat_socket(PF_INET, 0, proto, stlp, st_flags, kvm) < 0) {
==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/unix.c#11 (text+ko) ====
@@ -76,7 +76,7 @@
}
st_flags = 0;
- if (live)
+ if (!live)
st_flags |= NETSTAT_SOCKET_KVM;
/* Get all the local sockets, regardless their types. */
More information about the p4-projects
mailing list