From owner-freebsd-net Sun Sep 6 01:27:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21331 for freebsd-net-outgoing; Sun, 6 Sep 1998 01:27:58 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from situ.rad.net.id (situ.rad.net.id [202.154.1.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA21308 for ; Sun, 6 Sep 1998 01:27:55 -0700 (PDT) (envelope-from Leonard_Ong@iname.com) Received: from ZhugeLiang (dyn1070a.dialin.rad.net.id [202.154.6.70]) by situ.rad.net.id (8.9.1/RADNET) with SMTP id PAA08455 for ; Sun, 6 Sep 1998 15:27:50 +0700 (WIB) Message-Id: <199809060827.PAA08455@situ.rad.net.id> X-Sender: ong@pop.rad.net.id X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1.0.49 (Beta) Date: Sun, 06 Sep 1998 12:59:27 +0700 To: "freebsd-net@FreeBSD.ORG" From: Leonard Ong Subject: Modem Installation In-Reply-To: <16334.905055814@time.cdrom.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear All, Sorry for silly questions like this, Would you let me know how to set up a modem in express way :) ? I've an Internal Voice Modem 33,6 ( ChipSet Rockwell ) at 33,6 at COM2: What files to edit ? to enable modem. How to set the DTE speed into 115200 ? What's the device name ? Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Sep 6 03:14:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA29576 for freebsd-net-outgoing; Sun, 6 Sep 1998 03:14:28 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from smtp.hkstar.com (cassiopeia.hkstar.com [202.82.3.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA29514 for ; Sun, 6 Sep 1998 03:13:57 -0700 (PDT) (envelope-from kwanalex@hkstar.com) Received: from hkstar.com ([202.82.192.57]) by smtp.hkstar.com (8.8.8/8.8.4) with ESMTP id SAA01199 for ; Sun, 6 Sep 1998 18:13:53 +0800 (HKT) X-Authentication-Warning: cassiopeia.hkstar.com: Host [202.82.192.57] claimed to be hkstar.com Message-ID: <35F260AC.EF73118C@hkstar.com> Date: Sun, 06 Sep 1998 18:15:08 +0800 From: kwanalex X-Mailer: Mozilla 4.5b1 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-net@FreeBSD.ORG" Subject: How to close background mode PPP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! I am using the background mode ppp to connect my ISP, How to bring the "PPP ON alex" back to foreground, because I want to use "PPP ON alex>q" to closs the connection and the ppp process. Thanks to everyone! Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Sep 6 05:39:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA12806 for freebsd-net-outgoing; Sun, 6 Sep 1998 05:39:25 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA12799 for ; Sun, 6 Sep 1998 05:39:23 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from bilskirnir.ifi.uio.no (2602@bilskirnir.ifi.uio.no [129.240.64.135]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id OAA28980; Sun, 6 Sep 1998 14:39:20 +0200 (MET DST) Received: (from dag-erli@localhost) by bilskirnir.ifi.uio.no ; Sun, 6 Sep 1998 14:39:20 +0200 (MET DST) Mime-Version: 1.0 To: Luigi Rizzo Cc: net@FreeBSD.ORG Subject: Re: FreeBSD router performance References: Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 06 Sep 1998 14:39:19 +0200 In-Reply-To: Luigi Rizzo's message of "Fri, 4 Sep 1998 06:17:23 +0200 (MET DST)" Message-ID: Lines: 11 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id FAA12801 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > This said, in the last days i have instrumented the networking code > to see how long it takes to output a packet (roughtly the last part > of ether_output() with the call to if_start, which is what you > generally get). Mind sharing the code with us? :) 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 From owner-freebsd-net Sun Sep 6 07:16:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA21060 for freebsd-net-outgoing; Sun, 6 Sep 1998 07:16:06 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA21029 for ; Sun, 6 Sep 1998 07:16:03 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id OAA15280; Sun, 6 Sep 1998 14:22:28 +0200 From: Luigi Rizzo Message-Id: <199809061222.OAA15280@labinfo.iet.unipi.it> Subject: Re: FreeBSD router performance To: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?=) Date: Sun, 6 Sep 1998 14:22:28 +0200 (MET DST) Cc: net@FreeBSD.ORG In-Reply-To: from "Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?=" at Sep 6, 98 02:39:00 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Luigi Rizzo writes: > > This said, in the last days i have instrumented the networking code > > to see how long it takes to output a packet (roughtly the last part > > of ether_output() with the call to if_start, which is what you > > generally get). > > Mind sharing the code with us? :) sure, it is a gross hack. I have a couple of sysctl vars that count the number of events and the number of ticks, respectively. Then around the interesting section of code i put calls to rdtsc(), as follows: int my_events, my_ticks; SYSCTL_INT(_net_link_ether, OID_AUTO, events, CTLFLAG_RW, &my_events,0,""); SYSCTL_INT(_net_link_ether, OID_AUTO, ticks, CTLFLAG_RW, &my_ticks,0,""); { static quad_t ticks ; ... ticks = rdtsc() ; my_ticks += (unsigned long)(rdtsc() - ticks) ; my_events++ ... } you can read and reset the vars with sysctl. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Sep 6 09:20:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA29506 for freebsd-net-outgoing; Sun, 6 Sep 1998 09:20:07 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mail.gwi.net (mail.gwi.net [204.120.68.142]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA29490; Sun, 6 Sep 1998 09:20:01 -0700 (PDT) (envelope-from fkittred@mail.gwi.net) Received: from mail.gwi.net (fkittred@localhost [127.0.0.1]) by mail.gwi.net (8.8.5/8.8.7) with ESMTP id MAA27053; Sun, 6 Sep 1998 12:19:55 -0400 (EDT) Message-Id: <199809061619.MAA27053@mail.gwi.net> To: net@FreeBSD.ORG, isp@FreeBSD.ORG cc: network@mail.gwi.net Subject: using FreeBSD to load balancing DS1 via MPPP Date: Sun, 06 Sep 1998 12:19:54 -0400 From: Fletcher E Kittredge Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org We have a number of links which require bandwidth of more than one DS1, but less than a DS3. We have been inverse muxing DS1s by placing Ciscos at both ends and using OSPF. We are trying to phase out our use of Cisco routers in favor of FreeBSD routers. At this point, the only Ciscos we have are the those used to service these inverse mux'ed links. We don't use FreeBSD running OSPF for this purpose because we thought that FreeBSD could not handle equal weight multiple routes to the same destination. However, it sees to me that MPPP should be able to bind multiple DS1 point-to-point links together into one source and destination. This would result in one route. Is this the case? Does anyone have any experience with this configuration? The most we need right now is four DS1s, however we may need more in the future. I can't imagine using more than eight. thanks! fletcher To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Sep 6 12:56:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA18710 for freebsd-net-outgoing; Sun, 6 Sep 1998 12:56:59 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from notabene.zer0.org (209-63-255-74.smf.jps.net [209.63.255.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA18705 for ; Sun, 6 Sep 1998 12:56:56 -0700 (PDT) (envelope-from gsutter@n1.dyn.ml.org) Received: (from gsutter@localhost) by notabene.zer0.org (8.8.7/8.8.8) id MAA09334; Sun, 6 Sep 1998 12:56:40 -0700 (PDT) (envelope-from gsutter) Message-ID: <19980906125638.A5752@notabene.zer0.org> Date: Sun, 6 Sep 1998 12:56:38 -0700 From: Gregory Sutter To: kwanalex , "freebsd-net@FreeBSD.ORG" Subject: Re: How to close background mode PPP References: <35F260AC.EF73118C@hkstar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <35F260AC.EF73118C@hkstar.com>; from kwanalex on Sun, Sep 06, 1998 at 06:15:08PM +0800 Organization: Zer0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Sep 06, 1998 at 06:15:08PM +0800, kwanalex wrote: > > I am using the background mode ppp to connect > my ISP, How to bring the "PPP ON alex" back > to foreground, because I want to use "PPP ON alex>q" > to closs the connection and the ppp process. You must use the "pppctl" program on the port that you specified in ppp.conf (most likely 3000). man ppp, man pppctl... and put questions of this type to the questions@freebsd.org list, please. Greg -- Gregory S. Sutter My reality check just bounced. mailto:gsutter@pobox.com http://www.pobox.com/~gsutter/ PGP DSS public key 0x40AE3052 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 01:57:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11312 for freebsd-net-outgoing; Mon, 7 Sep 1998 01:57:48 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA11306 for ; Mon, 7 Sep 1998 01:57:44 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id EAA15917 for net@freebsd.org; Mon, 7 Sep 1998 04:45:45 +0200 From: Luigi Rizzo Message-Id: <199809070245.EAA15917@labinfo.iet.unipi.it> Subject: Will the TEE function of IPFW be ever implemented/necessary ? To: net@FreeBSD.ORG Date: Mon, 7 Sep 1998 04:45:44 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, as the subject says, i was wondering if the TEE function in IPFW will be ever implemented. I cannot see what it can do that would not be possible using bpf, and from the point of view of efficiency also there is no advantage, i think, since you have to copy the packet anyways... Comments ? luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 02:07:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA12611 for freebsd-net-outgoing; Mon, 7 Sep 1998 02:07:25 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from arthur.axion.bt.co.uk (arthur.axion.bt.co.uk [132.146.5.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA12602 for ; Mon, 7 Sep 1998 02:07:19 -0700 (PDT) (envelope-from graeme.brown@bt-sys.bt.co.uk) Received: from rambo (actually rambo.futures.bt.co.uk) by arthur.axion.bt.co.uk (PP) with SMTP; Mon, 7 Sep 1998 10:06:57 +0100 Received: from maczebedee (actually macsmtp) by rambo with SMTP (PP); Mon, 7 Sep 1998 10:09:51 +0100 Message-ID: Date: 7 Sep 1998 10:11:00 +0100 From: Graeme Brown Subject: How to find which application is using a given UDP port To: "FreeBSD-Net (FreeBSD.Org) List" X-Mailer: Mail*Link SMTP for Quarterdeck Mail; Version 4.0.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear List Can anyone enlighten me as to how I can find out which applications are using a given UDP port ? netstat -a does not appear to do this. I have a problem where an application gives an error message "port sharing violation". TIA Graeme N Brown BT Laboratories, UK email : graeme.brown@bt-sys.bt.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 02:24:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA14540 for freebsd-net-outgoing; Mon, 7 Sep 1998 02:24:23 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from shell6.ba.best.com (shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA14535 for ; Mon, 7 Sep 1998 02:24:22 -0700 (PDT) (envelope-from jkb@best.com) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.9.0/8.9.0/best.sh) with SMTP id CAA06674; Mon, 7 Sep 1998 02:24:11 -0700 (PDT) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Mon, 7 Sep 1998 02:24:10 -0700 (PDT) From: "Jan B. Koum " X-Sender: jkb@shell6.ba.best.com To: Graeme Brown cc: "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Look again: % netstat -a Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 rafraf.1342 shell6.ba.best.c.ssh ESTABLISHED tcp 0 0 *.6000 *.* LISTEN udp 0 0 *.syslog *.* ^^^ You can also just "netstat -an | grep udp" :) -- Yan I don't have the password + Jan Koum But the path is chainlinked | Spelled Jan, pronounced Yan. There. So if you've got the time | Web: http://www.best.com/~jkb Set the tone to sync + OS: http://www.FreeBSD.org On 7 Sep 1998, Graeme Brown wrote: >Dear List > >Can anyone enlighten me as to how I can find out which >applications are using a given UDP port ? > >netstat -a > >does not appear to do this. > >I have a problem where an application gives an error message >"port sharing violation". > >TIA > >Graeme N Brown >BT Laboratories, UK >email : graeme.brown@bt-sys.bt.co.uk > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 03:13:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA18561 for freebsd-net-outgoing; Mon, 7 Sep 1998 03:13:39 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA18552 for ; Mon, 7 Sep 1998 03:13:37 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id MAA10163; Mon, 7 Sep 1998 12:13:07 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Mon, 7 Sep 1998 12:13:06 +0200 (MET DST) Mime-Version: 1.0 To: "Jan B. Koum " Cc: Graeme Brown , "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port References: Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 07 Sep 1998 12:13:05 +0200 In-Reply-To: "Jan B. Koum "'s message of "Mon, 7 Sep 1998 02:24:10 -0700 (PDT)" Message-ID: Lines: 45 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id DAA18555 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Jan B. Koum " writes: > Look again: > > % netstat -a > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address (state) > tcp 0 0 rafraf.1342 shell6.ba.best.c.ssh > ESTABLISHED > tcp 0 0 *.6000 *.* LISTEN > udp 0 0 *.syslog *.* > ^^^ > You can also just "netstat -an | grep udp" :) 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: des@fixus-ipv6 ~$ fstat | grep udp root xdm 214 1* internet dgram udp f7372d80 daemon portmap 99 3* internet dgram udp f7372f00 root xntpd 95 4* internet dgram udp f7372ea0 root xntpd 95 5* internet dgram udp f7372e40 root xntpd 95 6* internet dgram udp f7372de0 root syslogd 85 4* internet dgram udp f7372f60 des@fixus-ipv6 ~$ netstat -Aan | grep udp f7372d80 udp 0 0 *.177 *.* f7372de0 udp 0 0 127.0.0.1.123 *.* f7372e40 udp 0 0 128.39.11.50.123 *.* f7372ea0 udp 0 0 *.123 *.* f7372f00 udp 0 0 *.111 *.* f7372f60 udp 0 0 *.514 *.* It should be relatively easy to write a Perl script that combines the output of each command and prints something like this: root xdm 214 1* internet dgram udp *.177 daemon portmap 99 3* internet dgram udp *.111 root xntpd 95 4* internet dgram udp *.123 root xntpd 95 5* internet dgram udp 128.39.11.50.123 root xntpd 95 6* internet dgram udp 127.0.0.1.123 root syslogd 85 4* internet dgram udp *.514 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 From owner-freebsd-net Mon Sep 7 10:17:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29988 for freebsd-net-outgoing; Mon, 7 Sep 1998 10:17:04 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA29979; Mon, 7 Sep 1998 10:16:56 -0700 (PDT) (envelope-from wpaul@skynet.ctr.columbia.edu) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id NAA19142; Mon, 7 Sep 1998 13:19:54 -0400 From: Bill Paul Message-Id: <199809071719.NAA19142@skynet.ctr.columbia.edu> Subject: Still looking for ThunderLAN driver testers To: hackers@FreeBSD.ORG Date: Mon, 7 Sep 1998 13:19:53 -0400 (EDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm still looking for testers for the new ThunderLAN driver code at http://www.freebsd.org/~wpaul/ThunderLAN. After my initial request for testers, I received one (1) response, which unfortunately was less than positive (the EEPROM reading code is failing, and naturally the respondent is going out of town for a week and is therefore not going to be much help in debugging this problem for a while). I'm looking for people with Compaq Netelligent or NetFlex adapters based on the ThunderLAN chip. This includes Compaq Deskpro or Compaq Proliant/Prosignia machines with built-in networking, also based on the ThunderLAN chips. The driver also supports ThunderLAN-based Olicom adapters. At the moment, the only card I have to test with is the Olicom 2326, which seems to work fine on my test machine. If you have such a beast and are running FreeBSD 2.2.x or 3.0-current, please download the driver from http://www.freebsd.org/~wpaul/ThunderLAN and try it on your system. If you have any problems, please report them to wpaul@skynet.cctr.columbia.edu. There are two points I'm interested in at the moment. The first is the EEPROM reading code. If it fails, you will see an error that says "failed to read station address from EEPROM" and the interface will not be attached. If this happens to you, please let me know so that I can work on debugging this problem. It appears to be hardware specific and I can't seem to reproduce the problem with the Olicom card. If you want to be really nice, you might try to arrange to have the system connected to the internet with a secondary network adapter and let me in for a little while to debug the problem. Otherwise, be prepared to try a few diagnostic tricks and report the results back to me. The other issue is that I think there may be another Compaq integrated adapter that I don't have in the existing device list. The device shows up with a vendor ID of 0x0e11 (Compaq) and a device ID of 0xae33. I have entries for 0xae32 (Compaq Netelligent 10/100) and 0xae34 (Compaq Netelligent 10), but not 0xae33. I don't know for sure if it's a ThunderLAN adapter or not (the person who owns the machine where I first encountered this uses Linux and is terminally clueless about such things). The system is supposedly a "Compaq Deskpro 4000 5166/2500/CDS DOM." If anybody has one of these can can confirm what type of network adapter is in this system, I'd really appreciate it. If anyone knows of any other ThunderLAN-based adapters besides those made by Compaq or Olicom, I'd like to hear about those as well. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" ============================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 12:45:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22869 for freebsd-net-outgoing; Mon, 7 Sep 1998 12:45:49 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22851 for ; Mon, 7 Sep 1998 12:45:46 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA19208; Mon, 7 Sep 1998 12:45:42 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma019204; Mon Sep 7 12:45:27 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA07690; Mon, 7 Sep 1998 12:45:27 -0700 (PDT) From: Archie Cobbs Message-Id: <199809071945.MAA07690@bubba.whistle.com> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? In-Reply-To: <199809070245.EAA15917@labinfo.iet.unipi.it> from Luigi Rizzo at "Sep 7, 98 04:45:44 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Mon, 7 Sep 1998 12:45:27 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > as the subject says, i was wondering if the TEE function in IPFW > will be ever implemented. I cannot see what it can do that would not be > possible using bpf, and from the point of view of efficiency also there > is no advantage, i think, since you have to copy the packet anyways... I think it makes sense to have it as an ipfw option.. the only problem is that it's just difficult to implement (because the divert code writes into the packet before delivery). Are you saying you want to implement it or get rid of it? :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 15:17:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA17609 for freebsd-net-outgoing; Mon, 7 Sep 1998 15:17:11 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA17600 for ; Mon, 7 Sep 1998 15:17:03 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id AAA29772 for freebsd-net@FreeBSD.ORG; Tue, 8 Sep 1998 00:16:46 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (VMailer, from userid 101) id E923F1517; Mon, 7 Sep 1998 23:53:14 +0200 (CEST) Date: Mon, 7 Sep 1998 23:53:14 +0200 From: Ollivier Robert To: "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port Message-ID: <19980907235314.A25006@keltia.freenix.fr> Mail-Followup-To: "FreeBSD-Net (FreeBSD.Org) List" References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.94.4i In-Reply-To: =?iso-8859-1?Q?=3Cxzppvd8ut72=2Efsf=40hrotti=2Eifi=2Euio=2Eno=3E=3B_from?= =?iso-8859-1?Q?_Dag-Erling_Coidan_Sm=F8rgrav__on_Mon=2C_Sep_07=2C_1998_a?= =?iso-8859-1?Q?t_12:13:05PM_+0200?= X-Operating-System: FreeBSD 3.0-CURRENT/ELF ctm#4623 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. lsof -i ucp COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME syslogd 107 root 4u inet 0xf5830f60 0t0 UDP *:syslog named 116 root 4u inet 0xf5830f00 0t0 UDP *:1024 named 116 root 20u inet 0xf5830ea0 0t0 UDP keltia.freenix.fr:domain named 116 root 22u inet 0xf5830e40 0t0 UDP localhost:domain portmap 124 daemon 3u inet 0xf5830de0 0t0 UDP *:sunrpc inetd 148 root 10u inet 0xf5830c60 0t0 UDP *:biff inetd 148 root 11u inet 0xf5830c00 0t0 UDP *:ntalk inetd 148 root 17u inet 0xf5830ba0 0t0 UDP *:echo inetd 148 root 18u inet 0xf5830b40 0t0 UDP *:discard inetd 148 root 19u inet 0xf5830ae0 0t0 UDP *:chargen inetd 148 root 20u inet 0xf5830a80 0t0 UDP *:daytime inetd 148 root 21u inet 0xf5830a20 0t0 UDP *:time inetd 148 root 25u inet 0xf58309c0 0t0 UDP *:amanda ntpd 878 root 4u inet 0xf5830cc0 0t0 UDP *:ntp ntpd 878 root 5u inet 0xf5830d20 0t0 UDP keltia.freenix.fr:ntp ntpd 878 root 6u inet 0xf5830d80 0t0 UDP localhost:ntp actived 11699 news 4u inet 0xf5830960 0t0 UDP localhost:1119 -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #63: Tue Sep 1 00:50:29 CEST 1998 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 22:31:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03952 for freebsd-net-outgoing; Mon, 7 Sep 1998 22:31:28 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA03943 for ; Mon, 7 Sep 1998 22:31:24 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id FAA16903; Tue, 8 Sep 1998 05:38:14 +0200 From: Luigi Rizzo Message-Id: <199809080338.FAA16903@labinfo.iet.unipi.it> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? To: archie@whistle.com (Archie Cobbs) Date: Tue, 8 Sep 1998 05:38:14 +0200 (MET DST) Cc: net@FreeBSD.ORG In-Reply-To: <199809071945.MAA07690@bubba.whistle.com> from "Archie Cobbs" at Sep 7, 98 12:45:08 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Luigi Rizzo writes: > > as the subject says, i was wondering if the TEE function in IPFW > > will be ever implemented. I cannot see what it can do that would not be > > possible using bpf, and from the point of view of efficiency also there > > is no advantage, i think, since you have to copy the packet anyways... > > I think it makes sense to have it as an ipfw option.. the only > problem is that it's just difficult to implement (because the > divert code writes into the packet before delivery). > > Are you saying you want to implement it or get rid of it? :-) i'd like to get rid of it because it seems to be just a duplication of functionality for something which is already available using bpf & tcpdump. Apart from it being just a placeholder now, i even wonder what it would be supposed to do... certainly it is not something that allows you to tap into a TCP connection. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 22:51:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05610 for freebsd-net-outgoing; Mon, 7 Sep 1998 22:51:00 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA05604 for ; Mon, 7 Sep 1998 22:50:59 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id WAA22398; Mon, 7 Sep 1998 22:50:55 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022396; Mon Sep 7 22:50:54 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id WAA05485; Mon, 7 Sep 1998 22:50:54 -0700 (PDT) From: Archie Cobbs Message-Id: <199809080550.WAA05485@bubba.whistle.com> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? In-Reply-To: <199809080338.FAA16903@labinfo.iet.unipi.it> from Luigi Rizzo at "Sep 8, 98 05:38:14 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Mon, 7 Sep 1998 22:50:54 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > > Luigi Rizzo writes: > > > as the subject says, i was wondering if the TEE function in IPFW > > > will be ever implemented. I cannot see what it can do that would not be > > > possible using bpf, and from the point of view of efficiency also there > > > is no advantage, i think, since you have to copy the packet anyways... > > > > I think it makes sense to have it as an ipfw option.. the only > > problem is that it's just difficult to implement (because the > > divert code writes into the packet before delivery). > > > > Are you saying you want to implement it or get rid of it? :-) > > i'd like to get rid of it because it seems to be just a duplication of > functionality for something which is already available using bpf & > tcpdump. Apart from it being just a placeholder now, i even wonder > what it would be supposed to do... certainly it is not something > that allows you to tap into a TCP connection. I'd prefer that someone implemented it, because a few people have asked for it, but on the other hand if no one is even going to implement it then it might as well go away (if you need the bit for something else, that is). -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Sep 7 23:46:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA10980 for freebsd-net-outgoing; Mon, 7 Sep 1998 23:46:04 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA10923 for ; Mon, 7 Sep 1998 23:45:59 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id GAA16954; Tue, 8 Sep 1998 06:52:36 +0200 From: Luigi Rizzo Message-Id: <199809080452.GAA16954@labinfo.iet.unipi.it> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? To: archie@whistle.com (Archie Cobbs) Date: Tue, 8 Sep 1998 06:52:35 +0200 (MET DST) Cc: net@FreeBSD.ORG In-Reply-To: <199809080550.WAA05485@bubba.whistle.com> from "Archie Cobbs" at Sep 7, 98 10:50:35 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > > as the subject says, i was wondering if the TEE function in IPFW > > > > will be ever implemented. I cannot see what it can do that would not be > > > > possible using bpf, and from the point of view of efficiency also there ... > > > I think it makes sense to have it as an ipfw option.. the only ... > > i'd like to get rid of it because it seems to be just a duplication of > > functionality for something which is already available using bpf & ... > I'd prefer that someone implemented it, because a few people have > asked for it, but on the other hand if no one is even going to implement yes but _how_ do people want to use it ? Really, TEE is of very little use for everything i can think of, because the user * cannot exercise any form of flow control; * is likely to get data out of order (depending on what happens in the network) and/or retransmissions; * has to separate data in the two directions, the policy that one wants to use for the above are so largely variable that it makes little sense to put them in the kernel, and better rely on a user-space process to do this. At which point, a BPF process would be at least more portable to different architectures! > it then it might as well go away (if you need the bit for something > else, that is). that's not a major issue since Poul solved the problem by widening the field for ipfw commands in 3.0, and i have room for that in -stable. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Sep 8 06:33:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA00285 for freebsd-net-outgoing; Tue, 8 Sep 1998 06:33:22 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA00277 for ; Tue, 8 Sep 1998 06:33:15 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id PAA26480; Tue, 8 Sep 1998 15:32:59 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Tue, 8 Sep 1998 15:32:58 +0200 (MET DST) Mime-Version: 1.0 To: Ollivier Robert Cc: "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port References: <19980907235314.A25006@keltia.freenix.fr> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 08 Sep 1998 15:32:57 +0200 In-Reply-To: Ollivier Robert's message of "Mon, 7 Sep 1998 23:53:14 +0200" Message-ID: Lines: 36 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id GAA00278 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ollivier Robert 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 From owner-freebsd-net Tue Sep 8 07:20:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA07432 for freebsd-net-outgoing; Tue, 8 Sep 1998 07:20:13 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA07354 for ; Tue, 8 Sep 1998 07:20:06 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id QAA04941; Tue, 8 Sep 1998 16:17:39 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Tue, 8 Sep 1998 16:17:39 +0200 (MET DST) Mime-Version: 1.0 To: "Jan B. Koum " Cc: Graeme Brown , "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port References: Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 08 Sep 1998 16:17:37 +0200 In-Reply-To: dag-erli@ifi.uio.no's message of "07 Sep 1998 12:13:05 +0200" Message-ID: Lines: 48 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA07410 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav ) writes: > It should be relatively easy to write a Perl script that combines the > output of each command and prints something like this: Here it is: #!/usr/local/bin/perl5 format STDOUT_TOP = USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS . format STDOUT = @<<<<<<< @<<<<<<<<< @>>>> @>>>> @<< @<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<< $user, $process, $pid, $fd, $p, $local_addr, $foreign_addr . open NETSTAT, "netstat -Aan |" or die "netstat -Aan failed"; while () { @a = split; next unless (($a[1] eq "tcp") or ($a[1] eq "udp")); $myaddr{$a[0]} = $a[4]; $hisaddr{$a[0]} = $a[5]; } close NETSTAT; open FSTAT, "fstat |" or die "fstat failed"; while () { @a = split; next unless ($a[4] eq "internet"); $user = $a[0]; $process = $a[1]; $pid = $a[2]; $fd = $a[3]; $fd =~ s/\*$//; $p = $a[6]; $socket = $a[7]; $local_addr = $myaddr{$socket}; $foreign_addr = $hisaddr{$socket}; write STDOUT; } close FSTAT; 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 From owner-freebsd-net Tue Sep 8 13:42:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09851 for freebsd-net-outgoing; Tue, 8 Sep 1998 13:42:53 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09841 for ; Tue, 8 Sep 1998 13:42:42 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id WAA02930 for freebsd-net@FreeBSD.ORG; Tue, 8 Sep 1998 22:42:26 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (VMailer, from userid 101) id AF7CA1485; Tue, 8 Sep 1998 22:08:50 +0200 (CEST) Date: Tue, 8 Sep 1998 22:08:50 +0200 From: Ollivier Robert To: "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: How to find which application is using a given UDP port Message-ID: <19980908220850.A3769@keltia.freenix.fr> Mail-Followup-To: "FreeBSD-Net (FreeBSD.Org) List" References: <19980907235314.A25006@keltia.freenix.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.94.4i In-Reply-To: =?iso-8859-1?Q?=3Cxzp3ea2686u=2Efsf=40hrotti=2Eifi=2Euio=2Eno=3E=3B_from?= =?iso-8859-1?Q?_Dag-Erling_Coidan_Sm=F8rgrav__on_Tue=2C_Sep_08=2C_1998_a?= =?iso-8859-1?Q?t_03:32:57PM_+0200?= X-Operating-System: FreeBSD 3.0-CURRENT/ELF ctm#4623 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Dag-Erling Coidan Smørgrav : > Yes... if only it would compile: I compiled 4_36 recently (in ELF) and it worked like a charm... YMMV. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #63: Tue Sep 1 00:50:29 CEST 1998 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Sep 9 00:02:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA27861 for freebsd-net-outgoing; Wed, 9 Sep 1998 00:02:45 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA27851 for ; Wed, 9 Sep 1998 00:02:43 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id AAA06055; Wed, 9 Sep 1998 00:02:36 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma006053; Wed Sep 9 00:02:27 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id AAA21914; Wed, 9 Sep 1998 00:02:26 -0700 (PDT) From: Archie Cobbs Message-Id: <199809090702.AAA21914@bubba.whistle.com> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? In-Reply-To: <199809080452.GAA16954@labinfo.iet.unipi.it> from Luigi Rizzo at "Sep 8, 98 06:52:35 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Wed, 9 Sep 1998 00:02:26 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > > I'd prefer that someone implemented it, because a few people have > > asked for it, but on the other hand if no one is even going to implement > > yes but _how_ do people want to use it ? > Really, TEE is of very little use for everything i can think of, > because the user > * cannot exercise any form of flow control; > * is likely to get data out of order (depending on what happens > in the network) and/or retransmissions; > * has to separate data in the two directions, > > the policy that one wants to use for the above are so largely variable > that it makes little sense to put them in the kernel, and better rely > on a user-space process to do this. At which point, a BPF process would > be at least more portable to different architectures! Well, all I can say is that I don't know what people might want to use it for, but people always seem to find a way to suprise us when it comes to these things. For example, suppose some hyper-paranoid person wanted to keep a copy of every packet that was received by their machine, writing it to some kind of high-speed WORM device or something. Then they could just say ipfw add 100 tee 1234 ip from any to any in Sure it sounds crazy to you and me, but who knows?? In this case it would be easier to do this with ipfw than with BPF, because you don't have to open a BPF device on every interface (or even know what interfaces exist), etc. I'm just making this up and it's not a great example, but my point is that it's not for you or me to decide that there are no applications for something just because *we* can't think of any... On the other hand, I'm not claiming that ipfw tee will ever prove useful either.. but as long as it's not hurting anything, and maybe someday it might prove useful, why not just leave it alone. > > it then it might as well go away (if you need the bit for something > > else, that is). > > that's not a major issue since Poul solved the problem by widening > the field for ipfw commands in 3.0, and i have room for that in > -stable. That's good.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Sep 9 00:34:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01401 for freebsd-net-outgoing; Wed, 9 Sep 1998 00:34:20 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id AAA01395 for ; Wed, 9 Sep 1998 00:34:18 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id HAA17889; Wed, 9 Sep 1998 07:41:23 +0200 From: Luigi Rizzo Message-Id: <199809090541.HAA17889@labinfo.iet.unipi.it> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? To: archie@whistle.com (Archie Cobbs) Date: Wed, 9 Sep 1998 07:41:23 +0200 (MET DST) Cc: net@FreeBSD.ORG In-Reply-To: <199809090702.AAA21914@bubba.whistle.com> from "Archie Cobbs" at Sep 9, 98 00:02:07 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Luigi Rizzo writes: > > > I'd prefer that someone implemented it, because a few people have > > > asked for it, but on the other hand if no one is even going to implement ... > Well, all I can say is that I don't know what people might want > to use it for, but people always seem to find a way to suprise us but you said a few people have asked for it! so what they want it for... > I'm just making this up and it's not a great example, but my point > is that it's not for you or me to decide that there are no applications except for a very tiny detail... who is going to write this code :) but let's do as you suggest, and leave it alone... it's just about ten lines of useless code after all :) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Sep 9 11:15:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21458 for freebsd-net-outgoing; Wed, 9 Sep 1998 11:15:06 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA21413; Wed, 9 Sep 1998 11:14:51 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id SAA18286; Wed, 9 Sep 1998 18:22:02 +0200 From: Luigi Rizzo Message-Id: <199809091622.SAA18286@labinfo.iet.unipi.it> Subject: dummynet now down to the bridging layer... To: net@FreeBSD.ORG Date: Wed, 9 Sep 1998 18:22:02 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I just finished the integration of dummynet and the bridging code, and now you can do bandwidth limitation at the bridging level (this means that you can put a dummynet-enabled bridge in the middle of an ethernet cable without having to reconfigure routes etc.) For those interested to try it, a floppy image is at http://www.iet.unipi.it/~luigi/ip_dummynet/picobsd980909.bin It comes up with userconfig, has pnp support, and drivers for the following cards: ed, de, fxp, vx, lnc the fxp code is untested, so if someone wants to try it out... i don't have such a card at the moment. Before you ask: since the packet filter is ipfw, at the moment you can only control IPv4 traffic -- other passes unchanged. I am considering ipfw extensions to select other traffic basing at least on the ethernet type field. (source code will be available in a few days) cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Sep 10 14:01:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25146 for freebsd-net-outgoing; Thu, 10 Sep 1998 14:01:22 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25135 for ; Thu, 10 Sep 1998 14:01:16 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA17773; Thu, 10 Sep 1998 14:01:00 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma017765; Thu Sep 10 14:00:38 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id OAA08706; Thu, 10 Sep 1998 14:00:38 -0700 (PDT) From: Archie Cobbs Message-Id: <199809102100.OAA08706@bubba.whistle.com> Subject: Re: Will the TEE function of IPFW be ever implemented/necessary ? In-Reply-To: <199809090541.HAA17889@labinfo.iet.unipi.it> from Luigi Rizzo at "Sep 9, 98 07:41:23 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Thu, 10 Sep 1998 14:00:38 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > > > > I'd prefer that someone implemented it, because a few people have > > > > asked for it, but on the other hand if no one is even going to implement > ... > > Well, all I can say is that I don't know what people might want > > to use it for, but people always seem to find a way to suprise us > > but you said a few people have asked for it! so what they want it for... I don't know... they just asked about it. :-) > > I'm just making this up and it's not a great example, but my point > > is that it's not for you or me to decide that there are no applications > > except for a very tiny detail... who is going to write this code :) but > let's do as you suggest, and leave it alone... it's just about ten > lines of useless code after all :) I plead guilty for never getting around to implementing it. It's still somewhere on my list tho' .. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Sep 11 06:05:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA29189 for freebsd-net-outgoing; Fri, 11 Sep 1998 06:05:29 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA29184 for ; Fri, 11 Sep 1998 06:05:16 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA19733; Fri, 11 Sep 1998 13:12:47 +0200 From: Luigi Rizzo Message-Id: <199809111112.NAA19733@labinfo.iet.unipi.it> Subject: PULLUP_TO in ip_fw.c To: net@FreeBSD.ORG Date: Fri, 11 Sep 1998 13:12:46 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ok, i adapted the ipfw code to bridged and non-ip packets, but there is one minor issue: the macro PULLUP_TO is defined as #define PULLUP_TO(len) do { \ if ((*m)->m_len < (len) \ && (*m = m_pullup(*m, (len))) == 0) { \ goto bogusfrag; \ } \ *pip = ip = mtod(*m, struct ip *); \ offset = (ip->ip_off & IP_OFFMASK); \ } while (0) and as such it requires that the mbuf starts with the ip header and always writes into *pip and ip. In my case, I might pass the firewall an mbuf which includes an ethernet header, and i make sure that m_pullup needs not to be called. So i'd like to change the macro to #define PULLUP_TO(len) do { \ if ((*m)->m_len < (len) ) { \ if (*m = m_pullup(*m, (len)) == 0) \ goto bogusfrag; \ *pip = ip = mtod(*m, struct ip *); \ offset = (ip->ip_off & IP_OFFMASK); \ } } while (0) which btw saves a few writes to variables in case m_pullup is not called. If there are no objections i am going to do this in the weekend (assuming our router will be fixed by then :( luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Sep 11 18:38:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA11361 for freebsd-net-outgoing; Fri, 11 Sep 1998 18:38:47 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA11355 for ; Fri, 11 Sep 1998 18:38:46 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id SAA02836; Fri, 11 Sep 1998 18:38:34 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma002832; Fri Sep 11 18:38:17 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id SAA29403; Fri, 11 Sep 1998 18:38:17 -0700 (PDT) From: Archie Cobbs Message-Id: <199809120138.SAA29403@bubba.whistle.com> Subject: Re: PULLUP_TO in ip_fw.c In-Reply-To: <199809111112.NAA19733@labinfo.iet.unipi.it> from Luigi Rizzo at "Sep 11, 98 01:12:46 pm" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Fri, 11 Sep 1998 18:38:17 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo writes: > Ok, i adapted the ipfw code to bridged and non-ip packets, but > there is one minor issue: the macro PULLUP_TO is defined as > > #define PULLUP_TO(len) do { \ > if ((*m)->m_len < (len) \ > && (*m = m_pullup(*m, (len))) == 0) { \ > goto bogusfrag; \ > } \ > *pip = ip = mtod(*m, struct ip *); \ > offset = (ip->ip_off & IP_OFFMASK); \ > } while (0) > > and as such it requires that the mbuf starts with the ip header > and always writes into *pip and ip. > > In my case, I might pass the firewall an mbuf which includes an > ethernet header, and i make sure that m_pullup needs not to be called. > So i'd like to change the macro to > > #define PULLUP_TO(len) do { \ > if ((*m)->m_len < (len) ) { \ > if (*m = m_pullup(*m, (len)) == 0) \ > goto bogusfrag; \ > *pip = ip = mtod(*m, struct ip *); \ > offset = (ip->ip_off & IP_OFFMASK); \ > } > } while (0) > > which btw saves a few writes to variables in case m_pullup is not called. Looks good to me... should have been like that from the start. If the compiler gives you new warnings about uninitialized variables then we need to take a closer look :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message