Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.bin/sockstat Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/11757b8a7811
branches:  netbsd-3
changeset: 577311:11757b8a7811
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Oct 06 11:36:14 2005 +0000

description:
Pull up following revision(s) (requested by rpaulo in ticket #860):
        usr.bin/sockstat/sockstat.c: revision 1.8
Fix a typo in the islistening() routine. Patch provided by Jukka Salmi
on PR#30963.

diffstat:

 usr.bin/sockstat/sockstat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 6154070811a1 -r 11757b8a7811 usr.bin/sockstat/sockstat.c
--- a/usr.bin/sockstat/sockstat.c       Thu Oct 06 11:36:05 2005 +0000
+++ b/usr.bin/sockstat/sockstat.c       Thu Oct 06 11:36:14 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockstat.c,v 1.4.2.3 2005/10/06 11:36:05 tron Exp $ */
+/*     $NetBSD: sockstat.c,v 1.4.2.4 2005/10/06 11:36:14 tron Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: sockstat.c,v 1.4.2.3 2005/10/06 11:36:05 tron Exp $");
+__RCSID("$NetBSD: sockstat.c,v 1.4.2.4 2005/10/06 11:36:14 tron Exp $");
 #endif
 
 #include <sys/param.h>
@@ -397,13 +397,13 @@
        case PF_INET:
                if (kp->ki_type == SOCK_RAW ||
                    (kp->ki_type == SOCK_DGRAM &&
-                    ntohs(satosin6(&kp->ki_src)->sin6_port) != 0))
+                    ntohs(satosin(&kp->ki_src)->sin_port) != 0))
                        return (1);
                break;
        case PF_INET6:
                if (kp->ki_type == SOCK_RAW ||
                    (kp->ki_type == SOCK_DGRAM &&
-                    ntohs(satosin(&kp->ki_src)->sin_port) != 0))
+                    ntohs(satosin6(&kp->ki_src)->sin6_port) != 0))
                        return (1);
                break;
        case PF_LOCAL:



Home | Main Index | Thread Index | Old Index