summaryrefslogtreecommitdiffstats
path: root/release/picobsd/tinyware/ns
diff options
context:
space:
mode:
authorabial <abial@FreeBSD.org>1998-09-02 13:11:23 +0000
committerabial <abial@FreeBSD.org>1998-09-02 13:11:23 +0000
commite04c7584192b717ee7889aa8b711bb4c71e92c6d (patch)
tree482ed078c21cd6ab48d49c414b0e3bdc537e3da3 /release/picobsd/tinyware/ns
parente618724b5dd1602ab500937310c98e2d1a2783b4 (diff)
downloadFreeBSD-src-e04c7584192b717ee7889aa8b711bb4c71e92c6d.zip
FreeBSD-src-e04c7584192b717ee7889aa8b711bb4c71e92c6d.tar.gz
Ugh... Small correction to the previous commit.
_Now_ it compiles on 2.2.7...
Diffstat (limited to 'release/picobsd/tinyware/ns')
-rw-r--r--release/picobsd/tinyware/ns/ns.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/release/picobsd/tinyware/ns/ns.c b/release/picobsd/tinyware/ns/ns.c
index d1e9208..e3b8e94 100644
--- a/release/picobsd/tinyware/ns/ns.c
+++ b/release/picobsd/tinyware/ns/ns.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ns.c,v 1.1.1.1 1998/08/27 17:38:45 abial Exp $
+ * $Id: ns.c,v 1.2 1998/09/02 11:48:07 abial Exp $
*/
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
+#include <osreldate.h>
#include <err.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -411,7 +412,7 @@ print_ip_stats()
printf("* Packets ok:\n");
printf(" %10lu fragments received\n",s.ips_fragments);
printf(" %10lu forwarded\n",s.ips_forward);
-#if __FreeBSD_version < 300001
+#if __FreeBSD_version > 300001
printf(" %10lu fast forwarded\n",s.ips_fastforward);
#endif
printf(" %10lu forwarded on same net (redirect)\n",s.ips_redirectsent);
@@ -437,7 +438,7 @@ print_ip_stats()
printf(" %10lu dropped due to no route\n",s.ips_noroute);
printf(" %10lu bad IP version\n",s.ips_badvers);
printf(" %10lu too long (more than max IP size)\n",s.ips_toolong);
-#if __FreeBSD_version < 300001
+#if __FreeBSD_version > 300001
printf(" %10lu multicast for unregistered groups\n",s.ips_notmember);
#endif
#endif
@@ -558,7 +559,7 @@ print_udp_stats()
printf(" %10lu packets not for hashed PCBs\n",s.udpps_pcbhashmiss);
printf("* Packets sent:\n");
printf(" %10lu total output packets\n",s.udps_opackets);
-#if __FreeBSD_version < 300001
+#if __FreeBSD_version > 300001
printf(" %10lu output packets on fast path\n",s.udps_fastout);
#endif
}
OpenPOWER on IntegriCloud