Skip site navigation (1)Skip section navigation (2)
Date:      08 Sep 1998 15:32:57 +0200
From:      dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
To:        Ollivier Robert <roberto@keltia.freenix.fr>
Cc:        "FreeBSD-Net (FreeBSD.Org) List" <freebsd-net@FreeBSD.ORG>
Subject:   Re: How to find which application is using a given UDP port
Message-ID:  <xzp3ea2686u.fsf@hrotti.ifi.uio.no>
In-Reply-To: Ollivier Robert's message of "Mon, 7 Sep 1998 23:53:14 %2B0200"
References:  <Pine.BSF.4.02A.9809070222480.6323-100000@shell6.ba.best.com> <xzppvd8ut72.fsf@hrotti.ifi.uio.no> <19980907235314.A25006@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Ollivier Robert <roberto@keltia.freenix.fr> writes:
> According to Dag-Erling Coidan Smørgrav :
> > It won't tell you *which* app holds the port. fstat(1) will tell you
> > which processes have open TCP or UDP sockets, but not which port. The
> > trick is to use 'fstat' and 'netstat -Aan' and compare addresses:
> Better to use lsof (in ports/sysutils/lsof) which does that automatically.

Yes... if only it would compile:

gcc -O  -DFREEBSDV=300 -DHASRPCV2H -DHASFDESCFS -DHASPROCFS -DHAS9660FS -DLSOF_VSTR=\"3.0-CURRENT\" -I/sys -c dmnt.c
dmnt.c:53: `INITMOUNTNAMES' undeclared here (not in a function)
dmnt.c: In function `readmnt':
dmnt.c:88: `MOUNT_NONE' undeclared (first use this function)
dmnt.c:88: (Each undeclared identifier is reported only once
dmnt.c:88: for each function it appears in.)
dmnt.c:88: `MOUNT_MAXTYPE' undeclared (first use this function)
dmnt.c:147: `MOUNT_PROCFS' undeclared (first use this function)
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

DES
-- 
Dag-Erling Smørgrav - dag-erli@ifi.uio.no

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp3ea2686u.fsf>