PERFORCE change 165600 for review
Gabor Pali
pgj at FreeBSD.org
Sat Jul 4 17:48:05 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165600
Change 165600 by pgj at petymeg-current on 2009/07/04 17:47:41
Further fixes regarding kread()
Affected files ...
.. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#12 edit
Differences ...
==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/main.c#12 (text+ko) ====
@@ -582,8 +582,11 @@
for (tp = netgraphprotox; tp->pr_name; tp++)
printproto(tp, tp->pr_name);
#endif /* NETGRAPH */
- if (af == AF_UNIX && !sflag)
+ if (af == AF_UNIX && !sflag) {
+ if (!live)
+ kread(0, NULL, 0);
unixpr(kvmd);
+ }
if (af == AF_UNSPEC || af == AF_INET
#ifdef INET6
|| af == AF_INET6
@@ -595,8 +598,10 @@
exit(-1);
}
st_flags = 0;
- if (!live)
+ if (!live) {
+ kread(0, NULL, 0);
st_flags |= NETSTAT_SOCKET_KVM;
+ }
if (aflag)
st_flags |= NETSTAT_SOCKET_ALL;
/*
@@ -710,6 +715,8 @@
case IPPROTO_IGMP:
case IPPROTO_PIM:
case IPPROTO_ICMPV6:
+ if (!live)
+ kread(0, NULL, 0);
inetpr(kvmd, (af == PF_INET6) ? af : PF_INET,
tp->pr_protocol);
break;
More information about the p4-projects
mailing list