From owner-freebsd-net@FreeBSD.ORG Sun Aug 17 10:00:09 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3161537B404 for ; Sun, 17 Aug 2003 10:00:09 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3B5A43FB1 for ; Sun, 17 Aug 2003 10:00:07 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.2.2.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id JAA48154; Sun, 17 Aug 2003 09:52:00 -0700 (PDT) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.8/8.12.6) with ESMTP id h7HGq0ju013031; Sun, 17 Aug 2003 09:52:00 -0700 (PDT) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.8/8.12.8/Submit) id h7HGpxMK013030; Sun, 17 Aug 2003 09:51:59 -0700 (PDT) From: Archie Cobbs Message-Id: <200308171651.h7HGpxMK013030@arch20m.dellroad.org> In-Reply-To: <200308131324.57759.yoyes@dif.um.es> To: Maria Dolores Moral Date: Sun, 17 Aug 2003 09:51:59 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-net@FreeBSD.ORG Subject: Re: java and mysql on FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 17:00:09 -0000 Maria Dolores Moral wrote: > Please, if you can help me :-( > I do not know anywhere where I can ask this question > > I am working with java and mysql on FreeBSD 4.7 > I have had a lot of problem with the java connection with mysql, but I do not > if a FreeBSD problem or mysql problem ?? > > When I compile my java program I obtain: > > localhost# ./Server > Exception: java.sql.SQLException: Server configuration denies access to data > source Did you GRANT sufficient permission on the server for "testuser" ? -Archie __________________________________________________________________________ Archie Cobbs * Halloo Communications * http://www.halloo.com From owner-freebsd-net@FreeBSD.ORG Sun Aug 17 14:26:58 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9886437B401 for ; Sun, 17 Aug 2003 14:26:58 -0700 (PDT) Received: from cicero2.cybercity.dk (cicero2.cybercity.dk [212.242.40.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC3CC43F75 for ; Sun, 17 Aug 2003 14:26:57 -0700 (PDT) (envelope-from db@traceroute.dk) Received: from user5.cybercity.dk (fxp0.user5.ip.cybercity.dk [212.242.41.51]) by cicero2.cybercity.dk (Postfix) with ESMTP id D9B4D18F5D9 for ; Sun, 17 Aug 2003 23:26:55 +0200 (CEST) Received: from main (port132.ds1-arsy.adsl.cybercity.dk [212.242.239.73]) by user5.cybercity.dk (Postfix) with SMTP id 1DD1056327 for ; Sun, 17 Aug 2003 23:26:55 +0200 (CEST) Date: Sun, 17 Aug 2003 23:27:02 +0200 From: Socketd To: freebsd-net@freebsd.org Message-Id: <20030817232702.593dc25e.db@traceroute.dk> X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: FreeBSD gateway X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 21:26:58 -0000 Hi Just wanted to know how this is usually done. I have: 1. One router 2. One gateway (FreeBSD 5.1) 3. One LAN 4. One DMZ Now I was thinking: Router (PPP setup and no IP) | | Gateway (Natd and firewalling) |\ | \ | \ | \ Lan DMZ Now, should I nat the DMZ? If no, can the NIC to the DMZ and the NIC to the router be setup with no IP's? So that they just forward all traffic? br socketd ps: Please CC to me as I am not on the list. From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 00:12:57 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E999D37B401 for ; Mon, 18 Aug 2003 00:12:57 -0700 (PDT) Received: from shiva.openaccess.org (shiva.openaccess.org [216.57.214.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 728AB43F85 for ; Mon, 18 Aug 2003 00:12:57 -0700 (PDT) (envelope-from michael@staff.openaccess.org) Received: from [216.57.214.90] ([216.57.214.90])h7I7CR6C005332; Mon, 18 Aug 2003 00:12:28 -0700 (PDT) (envelope-from michael@staff.openaccess.org) User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Mon, 18 Aug 2003 00:12:34 -0700 From: Michael DeMan To: Maria Dolores Moral Message-ID: In-Reply-To: <200308171651.h7HGpxMK013030@arch20m.dellroad.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: java and mysql on FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 07:12:58 -0000 It should work fine, probably you have a permission or configuration set wrong somewhere. - mike On 8/17/03 9:51 AM, "Archie Cobbs" wrote: > Maria Dolores Moral wrote: >> Please, if you can help me :-( >> I do not know anywhere where I can ask this question >> >> I am working with java and mysql on FreeBSD 4.7 >> I have had a lot of problem with the java connection with mysql, but I do not >> if a FreeBSD problem or mysql problem ?? >> >> When I compile my java program I obtain: >> >> localhost# ./Server >> Exception: java.sql.SQLException: Server configuration denies access to data >> source > > Did you GRANT sufficient permission on the server for "testuser" ? > > -Archie > > __________________________________________________________________________ > Archie Cobbs * Halloo Communications * http://www.halloo.com > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Michael F. DeMan Director of Technology OpenAccess Internet Services 1305 11th St., 3rd Floor Bellingham, WA 98225 Tel 360-647-0785 x204 Fax 360-738-9785 michael@staff.openaccess.org From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 02:04:57 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D23F037B409 for ; Mon, 18 Aug 2003 02:04:44 -0700 (PDT) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3D1D43F3F for ; Mon, 18 Aug 2003 02:04:39 -0700 (PDT) (envelope-from pizomer@myrealbox.com) Received: from 213.22.40.90 pizomer@smtp-send.myrealbox.com [213.22.40.90] $ on Novell NetWare; Mon, 18 Aug 2003 03:04:31 -0600 Date: Mon, 18 Aug 2003 10:04:21 +0100 From: "Zomer Pi (ZPP)" X-Mailer: The Bat! (v1.62r) Organization: Shinobi Lda. X-Priority: 3 (Normal) Message-ID: <150473122.20030818100421@myrealbox.com> To: yoyes@dif.um.es, freebsd-net@freebsd.org In-Reply-To: <200308141257.03124.yoyes@dif.um.es> References: <200308141257.03124.yoyes@dif.um.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Something like my.cnf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Zomer Pi \(ZPP\)" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 09:04:57 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Maria, on 14/08/2003 at 11:57:03 you wrote: > I am working with java and mysql on FreeBSD. > I obtain the following exception: > java.sql.SQLException: Server configuration denies access to data source > at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:399) > at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562) > at com.mysql.jdbc.Connection.(Connection.java:491) > at > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) > at java.sql.DriverManager.getConnection(DriverManager.java:450) > at java.sql.DriverManager.getConnection(DriverManager.java:130) > at Server.obtainPK(Server.java:44) > at Server.main(Server.java:145) > For this code: > Class.forName("org.gjt.mm.mysql.Driver").newInstance(); > DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","caracola"); > Someone has suggested me to configure something else, something like my.cnf, > but I have not found it. > Somebody Know a similar archive and how I must configure it. > If anybody have this file and could send me ;-), I would be very grateful. > Your faithfully First off all I'm sorry I can't help you with your problem but i think you'll find better help on this list For list archives: List-Help: - -- Best regards, Zomer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3rc2 (MingW32) iD8DBQE/QJaadFf9GasbAsgRAoGtAKCatMcO7NSf0pNWqQSb5UHTOqKD+ACghSTZ qpzeyy5Lnn1YG5fmWekZf0A= =Lvix -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 08:01:11 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2828937B401 for ; Mon, 18 Aug 2003 08:01:11 -0700 (PDT) Received: from sumatran.rhinonet.com (sumatran.rhinonet.com [12.159.69.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEFD243F93 for ; Mon, 18 Aug 2003 08:01:09 -0700 (PDT) (envelope-from dlr@rhinointernet.com) To: freebsd-net@freebsd.org MIME-Version: 1.0 Sensitivity: X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: dlr@rhinointernet.com Date: Mon, 18 Aug 2003 08:01:16 -0700 X-MIMETrack: Serialize by Router on Sumatran/Rhinonet(Release 6.0|September 26, 2002) at 08/18/2003 08:01:09 AM, Serialize complete at 08/18/2003 08:01:09 AM Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: VPN with MPD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 15:01:11 -0000 I am trying to get MPD working on one of my freebsd machines to enable VPN using PPTP. I have followed all of the instructions that I have found, but continue to get an error during the setup of the connection. Any help, or pointing to infromation would be appreciated. Thanks, david FreeBSD Version: 4.7-Stable MPD Version: 3.2, installed from the ports package on freebsd.org Client Machine: w2K sp3 mpd.conf: --------------- default: load pptp # PPTP Server pptp: new -i ng1 pptp pptp <<<-- I have had this as ng0 also set iface disable on-demand set iface enable proxy-arp set iface idle 1800 set bundle disable multilink #set link yes acfcomp protocomp set link enable pap set link enable chap set link keep-alive 10 60 set ipcp yes vjcomp set ipcp ranges 10.1.1.1/32 10.1.1.219/32 set ipcp dns 10.1.1.1 10.1.1.10 set ipcp nbns 10.1.2.250 # # The five lines below enable Microsoft Point-to-Point encryption # (MPPE) using the ng_mppc(8) netgraph node type. # set bundle enable compression set bundle enable crypt-reqd set ccp enable mppc set ccp enable mpp-e40 set ccp enable mpp-e128 set ccp enable mpp-stateless ======================================= mpd.links -------------- pptp: set link type pptp set pptp self 12.x.x.x <- a real ip address is here set pptp enable incoming set pptp disable originate ======================================== mpd.secret ----------------- mylogin mypassword ========================================= output from mpd when ran in foreground: Multi-link PPP for FreeBSD, by Archie L. Cobbs. Based on iij-ppp, by Toshiharu OHNO. mpd: pid 2247, version 3.2 (root@hellcat.itga.com.au 09:53 6-Apr-2001) [pptp] ppp node is "mpd2247-pptp" [pptp] using interface ng1 mpd: local IP address for PPTP is 12.x.x.x [pptp:pptp] mpd: PPTP connection from 12.x.x.x:33451 pptp0: attached to connection with 12.x.x.x:33451 [pptp] IFACE: Open event [pptp] IPCP: Open event [pptp] IPCP: state change Initial --> Starting [pptp] IPCP: LayerStart [pptp] IPCP: Open event [pptp] bundle: OPEN event in state CLOSED [pptp] opening link "pptp"... [pptp] link: OPEN event [pptp] LCP: Open event [pptp] LCP: state change Initial --> Starting [pptp] LCP: LayerStart [pptp] device: OPEN event in state DOWN [pptp] attaching to peer's outgoing call [pptp] can't connect ksocket node: Operation now in progress <<<------- this looks like the error that is the problem pptp0-0: killing channel [pptp] PPTP call cancelled in state CONNECTING pptp0: closing connection with 12.159.68.29:33451 [pptp] IFACE: Close event [pptp] IPCP: Close event [pptp] IPCP: state change Starting --> Initial [pptp] IPCP: LayerFinish [pptp] device is now in state OPENING [pptp] bundle: CLOSE event in state OPENED [pptp] closing link "pptp"... [pptp] device: DOWN event in state OPENING [pptp] device is now in state DOWN [pptp] link: CLOSE event [pptp] LCP: Close event [pptp] LCP: state change Starting --> Initial [pptp] LCP: LayerFinish [pptp] device: DOWN event in state DOWN [pptp] device is now in state DOWN [pptp] link: DOWN event [pptp] LCP: Down event [pptp] device: CLOSE event in state DOWN [pptp] device is now in state DOWN [pptp] link: DOWN event [pptp] LCP: Down event [pptp] device: OPEN event in state DOWN [pptp] pausing 9 seconds before open [pptp] device is now in state DOWN pptp0: invalid length 16 for type 4 pptp0: killing connection with 12.159.68.29:33451 [pptp] device: OPEN event in state DOWN [pptp] pptp originate option is not enabled [pptp] device is now in state OPENING [pptp] device: DOWN event in state OPENING [pptp] device is now in state DOWN [pptp] link: DOWN event [pptp] LCP: Down event ===================================== output from kldstat: Id Refs Address Size Name 1 9 0xc0100000 202b08 kernel 2 1 0xc1305000 3000 ng_socket.ko 3 7 0xc1309000 9000 netgraph.ko 4 1 0xc1316000 3000 ng_iface.ko 5 1 0xc1319000 6000 ng_ppp.ko 6 1 0xc1321000 4000 ng_bpf.ko 7 1 0xc1325000 4000 ng_vjc.ko 8 1 0xc1336000 4000 ng_pptpgre.ko 9 1 0xc133b000 4000 ng_ksocket.ko From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 08:07:01 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0A4D37B405 for ; Mon, 18 Aug 2003 08:06:58 -0700 (PDT) Received: from unimur.um.es (unimur.um.es [155.54.1.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 164A343FAF for ; Mon, 18 Aug 2003 08:06:57 -0700 (PDT) (envelope-from yoyes@dif.um.es) Received: from aries.dif.um.es (aries.dif.um.es [155.54.210.253]) by unimur.um.es (8.9.1b+Sun/8.9.1) with ESMTP id PAA28874; Mon, 18 Aug 2003 15:54:42 +0200 (MEST) Received: from IPv6Router (gemela.dif.um.es [155.54.210.45]) by aries.dif.um.es (Postfix) with ESMTP id 933AF14426; Mon, 18 Aug 2003 15:43:43 +0200 (MET DST) Content-Type: text/plain; charset="iso-8859-1" From: Maria Dolores Moral To: "Zomer Pi (ZPP)" Date: Mon, 18 Aug 2003 16:58:37 +0200 User-Agent: KMail/1.4.3 References: <200308141257.03124.yoyes@dif.um.es> <150473122.20030818100421@myrealbox.com> In-Reply-To: <150473122.20030818100421@myrealbox.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308181658.37384.yoyes@dif.um.es> cc: freebsd-net@freebsd.org Subject: Re: Something like my.cnf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 15:07:01 -0000 Thanks a lot for your time. I get it. I have resolved it yet. Best Regards On Monday 18 August 2003 11:04, you wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello Maria, on 14/08/2003 at 11:57:03 you wrote: > > I am working with java and mysql on FreeBSD. > > > > I obtain the following exception: > > java.sql.SQLException: Server configuration denies access to data sou= rce > > at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:399) > > at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562= ) > > at com.mysql.jdbc.Connection.(Connection.java:491) > > at > > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java= :346 > >) at java.sql.DriverManager.getConnection(DriverManager.java:450) at > > java.sql.DriverManager.getConnection(DriverManager.java:130) at > > Server.obtainPK(Server.java:44) > > at Server.main(Server.java:145) > > > > For this code: > > > > Class.forName("org.gjt.mm.mysql.Driver").newInstance(); > > DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root"= ,"ca > >racola"); > > > > Someone has suggested me to configure something else, something like > > my.cnf, but I have not found it. > > > > Somebody Know a similar archive and how I must configure it. > > > > If anybody have this file and could send me ;-), I would be very > > grateful. > > > > Your faithfully > > First off all I'm sorry I can't help you with your problem > but i think you'll find better help on this list > > For list archives: > List-Help: > > - -- > Best regards, > Zomer > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3rc2 (MingW32) > > iD8DBQE/QJaadFf9GasbAsgRAoGtAKCatMcO7NSf0pNWqQSb5UHTOqKD+ACghSTZ > qpzeyy5Lnn1YG5fmWekZf0A=3D > =3DLvix > -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 08:15:15 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE97C37B41C for ; Mon, 18 Aug 2003 08:15:13 -0700 (PDT) Received: from diaspar.rdsnet.ro (diaspar.rdsnet.ro [81.196.201.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0234443FB1 for ; Mon, 18 Aug 2003 08:15:12 -0700 (PDT) (envelope-from Vlad.Galu@rdsnet.ro) Received: (qmail 86123 invoked from network); 18 Aug 2003 15:13:27 -0000 Received: from unknown (HELO diaspar.rdsnet.ro) (81.196.201.65) by 0 with SMTP; 18 Aug 2003 15:13:27 -0000 From: Vlad Galu To: freebsd-net@freebsd.org Organization: Romania Data Systems X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20030818151512.0234443FB1@mx1.FreeBSD.org> Date: Mon, 18 Aug 2003 08:15:12 -0700 (PDT) Subject: interface destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 15:15:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello. I have a tun interface used by an userspace daemon (namely openvpn). Is there a way of destroying it upon openvpn shutdown ? ifconfig tun0 destroy returns this : ifconfig: SIOCIFDESTROY: Invalid argument Does this mean that the ifreq structure passed as argument to the SIOCIFDESTROY is empty? Thanks in advance for any tips. - -- Vlad Galu Network & Systems Administrator Romania Data Systems NOC in Bucharest Phone: +40 21 30 10 850 http://www.rdsnet.ro - --------------------------------------------------------------------------- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such a person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail. - --------------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/QO0XP5WtpVOrzpcRAlToAJwNRDQuuOEJVMUDFF+nRb72FdUxwwCdE+1a QboDCA+3s9Q8taP4BPmn83w= =m2Tz -----END PGP SIGNATURE----- From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 11:02:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73B4237B405 for ; Mon, 18 Aug 2003 11:02:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC4D743FAF for ; Mon, 18 Aug 2003 11:02:06 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7II26Up068754 for ; Mon, 18 Aug 2003 11:02:06 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7II26Jn068748 for freebsd-net@freebsd.org; Mon, 18 Aug 2003 11:02:06 -0700 (PDT) Date: Mon, 18 Aug 2003 11:02:06 -0700 (PDT) Message-Id: <200308181802.h7II26Jn068748@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 18:02:07 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/05/04] kern/37761 net process exits but socket is still ESTABLI 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Aug 18 14:50:45 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E7E237B401 for ; Mon, 18 Aug 2003 14:50:44 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B48D43FB1 for ; Mon, 18 Aug 2003 14:50:44 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h7ILod7c025890; Mon, 18 Aug 2003 14:50:39 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h7ILodmT025889; Mon, 18 Aug 2003 14:50:39 -0700 Date: Mon, 18 Aug 2003 14:50:39 -0700 From: Brooks Davis To: Vlad Galu Message-ID: <20030818215039.GA23573@Odin.AC.HMC.Edu> References: <20030818151512.0234443FB1@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <20030818151512.0234443FB1@mx1.FreeBSD.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: freebsd-net@freebsd.org Subject: Re: interface destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 21:50:45 -0000 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 18, 2003 at 08:15:12AM -0700, Vlad Galu wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 >=20 >=20 > Hello. I have a tun interface used by an userspace daemon > (namely openvpn). Is there a way of destroying it upon openvpn > shutdown ? ifconfig tun0 destroy returns this : > > ifconfig: SIOCIFDESTROY: Invalid argument Does this mean that > the ifreq structure passed as argument to the SIOCIFDESTROY is empty? No, this means that ifconfig's destory argument doesn't work with tun interfaces. The tun interface needs to be convered to use the pseudo-interface cloning infrastructure, but so far, it hasn't happened. I've taken a look at it a a few times, but the current auto creation code is really incompatable with the way cloning works which makes it problematic. -- Brooks --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/QUniXY6L6fI4GtQRAjg1AJ9pnGaejAYjYZ8z7zXf4ke9eXNblQCdFXg4 Tum3OfQSECGOlAfivq8FqlE= =MAM9 -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 10:51:28 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09CF516A4BF for ; Tue, 19 Aug 2003 10:51:28 -0700 (PDT) Received: from vmx1.skoleetaten.oslo.no (vmx1.skoleetaten.oslo.no [193.156.192.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D77F43F85 for ; Tue, 19 Aug 2003 10:51:26 -0700 (PDT) (envelope-from shamz@nevada.skoleetaten.oslo.no) Received: from smtp.skoleetaten.oslo.no (localhost [127.0.0.1]) EBB547D593 for ; Tue, 19 Aug 2003 19:44:08 +0200 (CEST) Received: from nevada.skoleetaten.oslo.no (nevada.skoleetaten.oslo.no [193.156.192.131])C55D27D3A5 for ; Tue, 19 Aug 2003 19:44:08 +0200 (CEST) Received: from nevada.skoleetaten.oslo.no (localhost [127.0.0.1]) h7JHi8Gq084304 for ; Tue, 19 Aug 2003 19:44:08 +0200 (CEST) (envelope-from shamz@nevada.skoleetaten.oslo.no) Received: (from shamz@localhost)h7JHhxOc084303 for freebsd-net@freebsd.org; Tue, 19 Aug 2003 19:43:59 +0200 (CEST) Date: Tue, 19 Aug 2003 19:43:58 +0200 From: Shaun Jurrens To: freebsd-net@freebsd.org Message-ID: <20030819174358.GN71232@nevada.skoleetaten.oslo.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oN4OvwWIcd1E23D1" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-RELEASE Subject: ng_fec and vlans X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 17:51:28 -0000 --oN4OvwWIcd1E23D1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good day all, In my infinite striving towards perfection *cough* I've gone through a lot = of hoops to get ng_fec working for (at least for the time being) the bge=20 interfaces (not that I understand it really yet). Now, being limited in=20 the number of interfaces available to me on this project, I'm attempting=20 to attach vlans to the fec interface, with no signs of success, up to=20 this point. I have two dell 1750's connected to a c3750 switch. FEC works with ip addresses attached to the fec0 interfaces (although, single connections seem to remain on one link or the other, I haven't played with the load-balancing on the switch yet for the channel group, might be my fault). =20 My questions are: 1) Is is even possible to successfully "attach" vlan devices to netgraph nodes, specifically the ng_fec node (I can't decipher enough of netgraph to begin with to make a guess, just a copy monkey here...), i.e. have interface fec the parent device? 2) Is the correct way on the Cisco side to configure interfaces in the FEC= =20 group as trunks, _or_ group them as access ports, and make the FEC group a= =20 trunk? (I haven't read exhaustively on this, seems to be some descrepency between CatOS and IOS on this anyway...) btw, with a few more hints, I could get a manpage up... I have patches to= =20 attach it to the world build as well, compiles fine on 4.8-R, fwiw. --=20 Med vennlig hilsen/Sincerely, Shaun D. Jurrens Drift og Sikkerhetskonsulent IKT-Avdeling Oslo Skoleetaten gpg key fingerprint: 007A B6BD 8B1B BAB9 C583 2D19 3A7F 4A3E F83E 84AE --oN4OvwWIcd1E23D1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/QmHeOn9KPvg+hK4RAojcAJ4vyH79Jw8zfKtL2nLHPinXUIVxPwCeLW5w kthIovob5I8C+LTA2yOIgFI= =oozF -----END PGP SIGNATURE----- --oN4OvwWIcd1E23D1-- From owner-freebsd-net@FreeBSD.ORG Sun Aug 17 19:51:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF29B37B401 for ; Sun, 17 Aug 2003 19:51:43 -0700 (PDT) Received: from hotmail.com (bay1-f160.bay1.hotmail.com [65.54.245.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6217943FB1 for ; Sun, 17 Aug 2003 19:51:43 -0700 (PDT) (envelope-from dandyking_18@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 17 Aug 2003 19:51:43 -0700 Received: from 211.179.149.146 by by1fd.bay1.hotmail.msn.com with HTTP; Mon, 18 Aug 2003 02:51:42 GMT X-Originating-IP: [211.179.149.146] X-Originating-Email: [dandyking_18@hotmail.com] From: "DANDY King" To: freebsd-net@freebsd.org Date: Mon, 18 Aug 2003 08:21:42 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 18 Aug 2003 02:51:43.0121 (UTC) FILETIME=[A7E78010:01C36533] X-Mailman-Approved-At: Tue, 19 Aug 2003 11:49:01 -0700 Subject: help X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 02:51:44 -0000 hello our product is DVR(digital video recorder), it runs on linux system. i am sending very imp inofrmation to server through sockets. some time i am getting full data, some time i am getting partial data. i don't know reasons please advice. client side we uses VC++ GUI. client sending data neatly. in lcinet side what i did while((nread = read(fd,buff,BUFFSIZE)) >0) send(sockfd,buff,nread,0); in server same data should receive. but some time i am receiveing full and some time 90% only please advice Dharanish _________________________________________________________________ Are you a geek? Do gizmos make you grin? http://www.msn.co.in/Computing/Gizmos/ Click here! From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 12:10:28 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 103EE16A4BF for ; Tue, 19 Aug 2003 12:10:28 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B5643F3F for ; Tue, 19 Aug 2003 12:10:27 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 6013 invoked by uid 84); 19 Aug 2003 19:10:26 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.147365 secs); 19 Aug 2003 19:10:26 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 19 Aug 2003 19:10:26 -0000 Message-ID: <3F42772A.9000106@netli.com> Date: Tue, 19 Aug 2003 12:14:50 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030521 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: DANDY King References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: help X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 19:10:28 -0000 DANDY King wrote: > hello > > > our product is DVR(digital video recorder), it runs on linux system. > i am sending very imp inofrmation to server through sockets. some time i > am getting full data, some time i am getting partial data. > i don't know reasons please advice. > client side we uses VC++ GUI. client sending data neatly. in lcinet > side what i did > > while((nread = read(fd,buff,BUFFSIZE)) >0) > send(sockfd,buff,nread,0); > > in server same data should receive. > but some time i am receiveing full and some time 90% only Are you aware that the send() function could queue less data than requested? The better loop would look like: while((nread = read(fd, buff, BUFFSIZE)) > 0) { ssize_t sent; char *b = buff; while(nread > 0) { sent = send(sockfd, b, nread, 0); if(sent > 0) { nread -= sent; b += sent; } else { /* Handle "can't send" case */ break; } } } > please advice > > Dharanish > > _________________________________________________________________ > Are you a geek? Do gizmos make you grin? > http://www.msn.co.in/Computing/Gizmos/ Click here! > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Lev Walkin vlm@netli.com From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 16:18:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91FE316A4BF for ; Tue, 19 Aug 2003 16:18:07 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0910943FD7 for ; Tue, 19 Aug 2003 16:18:07 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7JNI57N022557 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 19 Aug 2003 16:18:06 -0700 (PDT) (envelope-from sam@errno.com) Date: Tue, 19 Aug 2003 16:18:16 -0700 From: Sam Leffler To: freebsd-net@freebsd.org Message-ID: <448579583.1061309896@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: HEADS UP: network locking work going on X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 23:18:07 -0000 I'm actively working on improving the network performance of -current. Much of this work involves removing Giant from the network stack. I've already been in touch with many developers that are working in this area; this note is to insure "everyone" is aware. If your are actively working on stuff related to the network code and I haven't already corresponded with you; please let me know so we can coordinate our work--I have no interest in duplicating the efforts of others. Otherwise, if you are working in this area I'd appreciate knowing about any significant changes planned that might affect what I'm doing. As to the work itself, the overall goal is to bring the performance for "normal network use" back to at least that of -stable. This is to be done in time for the 5.2 release though the specifics of what is included in 5.2 are to be determined. Obviously the main work here is to remove Giant and to that end I've already made a pass over the following areas (in no specific order): raw sockets routing table (except multicast routing) fast ipsec fast forwarding bridge ipfw 802.11 layer fxp, em, sis, wi, and ath drivers For the most part I've been working "from the bottom up". I run numerous systems w/o Giant in my network drivers and with the "middleware" Giant free (e.g. I have a soekris 4501 running bridge+ipfw w/o Giant). At the moment I am concentrating on correctness and not performance so I cannot report how much improvement there is. I'll be posting all significant changes for review before they are committed. Expect the first wave of stuff today and tomorrow. Developers can "play along" by checking out the sam_netperf branch in the p4 repo. Once the work on the lower layer is stable I'll be turning my attention to the upper layers of the network and to IPv6 and NFS. There's plenty of work to go around, so if you're interested in participating please let me know. Sam From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 16:21:59 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 044A316A4C0; Tue, 19 Aug 2003 16:21:59 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-97.dsl.lsan03.pacbell.net [64.169.107.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15A9D43FE9; Tue, 19 Aug 2003 16:21:58 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 9FCC866B04; Tue, 19 Aug 2003 16:21:56 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 4D99EA56; Tue, 19 Aug 2003 16:21:56 -0700 (PDT) Date: Tue, 19 Aug 2003 16:21:56 -0700 From: Kris Kennaway To: Sam Leffler Message-ID: <20030819232156.GA80650@rot13.obsecurity.org> References: <447450569.1061308767@melange.errno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <447450569.1061308767@melange.errno.com> User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: HEADS UP: network locking work going on X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 23:21:59 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 19, 2003 at 03:59:27PM -0700, Sam Leffler wrote: > I'm actively working on improving the network performance of -current.=20 8b d8 88 Y8, ,8P 88 Y8, ,8P 88 "8aa8" ,adPPYYba, 8b d8 88 `88' "" `Y8 `8b d8' 88 88 ,adPPPPP88 `8b d8' "" 88 88, ,88 `8b,d8' aa 88 `"8bbdP"Y8 Y88' 88 d8' d8' :-) Kris --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/QrEUWry0BWjoQKURAlHiAJ9eZmpoclbob89QUieyfX8fntuVjwCfV8d4 Pk6a+0aF8tGu+D/Cxx0cP7o= =KrZB -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 16:24:37 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3649A16A4BF for ; Tue, 19 Aug 2003 16:24:37 -0700 (PDT) Received: from asp-viruswall02.pironet-ndh.com (asp-viruswall02.pironet-ndh.com [195.94.91.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A2743FBF for ; Tue, 19 Aug 2003 16:24:35 -0700 (PDT) (envelope-from wittur@book-fair.com) Received: from smtprelay (ad96e3ec2.dsl.de.colt.net [62.96.4.194] (may be forged))h7JNOVC08588 for ; Wed, 20 Aug 2003 01:24:32 +0200 Received: from 192.168.142.12 by smtprelay (InterScan E-Mail VirusWall NT); Wed, 20 Aug 2003 01:19:58 +0200 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Wed, 20 Aug 2003 01:24:30 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Your application Thread-Index: AcNmqQqHDHS1vNRTRv2OE+Eypt5JUgAAAAFN From: "Wittur-Ullrich, Yvonne" To: X-MailScanner: Found to be clean X-MailScanner-Information: Please contact the ISP for more information Subject: Abwesenheitsnotiz: Your application X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 23:24:37 -0000 Betreff: Abwesenheitsnotiz Vielen Dank f=FCr Ihre Mail. Ich bin ab dem 08.09.2003 wieder im B=FCro = erreichbar. In dringenden F=E4llen wenden Sie sich bitte an meine = Kollegin Frau Andrea Fiala de Ayerbe , E-Mail fiala@book-fair.com, = Telefon +49 (0) 69 2102-223. Mit freundlichen Gr=FC=DFen Yvonne Wittur-Ullrich Subject: out of office replay Thank you for your message. I will be back in the office as from 08-09- = 2003. If you need any assistance in the meantime, please contact my = colleague Mrs Andrea Fiala de Ayerbe, E-Mail fiala@book-fair.com, phone = +49 (0) 69 2102-223. Best regards, Yvonne Wittur-Ullrich Subject: out of office replay Thank you for your message. I will be back in the office as from June, 2 = 2003.=20 Best wishes Yvonne Wittur-Ullrich From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 16:37:31 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4307C16A4BF for ; Tue, 19 Aug 2003 16:37:31 -0700 (PDT) Received: from hexagon2.stack.nl (hexagon2.stack.nl [131.155.140.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A93E43F93 for ; Tue, 19 Aug 2003 16:37:30 -0700 (PDT) (envelope-from dean@dragon.stack.nl) Received: from dragon.stack.nl (dragon.stack.nl [2001:610:1108:5011:207:e9ff:fe09:230]) by hexagon2.stack.nl (Postfix) with ESMTP id CD91DB864; Wed, 20 Aug 2003 01:37:02 +0200 (CEST) Received: by dragon.stack.nl (Postfix, from userid 1600) id 041A05F187; Wed, 20 Aug 2003 01:37:13 +0200 (CEST) Date: Wed, 20 Aug 2003 01:37:12 +0200 From: Dean Strik To: Shaun Jurrens Message-ID: <20030819233712.GE779@dragon.stack.nl> References: <20030819174358.GN71232@nevada.skoleetaten.oslo.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030819174358.GN71232@nevada.skoleetaten.oslo.no> X-Editor: VIM Rulez! http://www.vim.org/ X-MUD: Outerspace - telnet://mud.stack.nl:3333 X-Really: Yes User-Agent: Mutt/1.5.4i cc: freebsd-net@freebsd.org Subject: Re: ng_fec and vlans X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2003 23:37:31 -0000 Shaun Jurrens wrote: > I have two dell 1750's connected to a c3750 switch. FEC works with ip > addresses attached to the fec0 interfaces (although, single connections seem > to remain on one link or the other, I haven't played with the load-balancing > on the switch yet for the channel group, might be my fault). Not sure what you mean by single connection. If you mean an application connection, e.g. a file transfer, then yes, it will always remain on the same link. With FEC, the physical link used is determined by srcip XOR dstip or srcmac XOR dstmac Since these do not change during a session, the session will always go over one link. > My questions are: > > 1) Is is even possible to successfully "attach" vlan devices to netgraph > nodes, specifically the ng_fec node (I can't decipher enough of netgraph to > begin with to make a guess, just a copy monkey here...), i.e. have interface > fec the parent device? This is not possible, unfortunately. > 2) Is the correct way on the Cisco side to configure interfaces in the FEC > group as trunks, _or_ group them as access ports, and make the FEC group a > trunk? (I haven't read exhaustively on this, seems to be some descrepency > between CatOS and IOS on this anyway...) No idea, sorry. -- Dean C. Strik Eindhoven University of Technology dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/ "This isn't right. This isn't even wrong." -- Wolfgang Pauli From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 21:09:27 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 168D016A4BF; Tue, 19 Aug 2003 21:09:27 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47E7B43F93; Tue, 19 Aug 2003 21:09:26 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7K49N7N023724 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 19 Aug 2003 21:09:25 -0700 (PDT) (envelope-from sam@errno.com) Date: Tue, 19 Aug 2003 21:09:35 -0700 From: Sam Leffler To: Scott Long Message-ID: <466057615.1061327374@melange.errno.com> In-Reply-To: <3F42D8EC.1010706@freebsd.org> References: <447450569.1061308767@melange.errno.com> <3F42D8EC.1010706@freebsd.org> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: HEADS UP: network locking work going on X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 04:09:27 -0000 > Is there any consideration for running some hardware drivers with Giant > while they are converted? I have seen no issues so far mixing drivers w/ and w/o Giant. But that won't be true once drivers stop inheriting Giant when entered "from the top". It's not clear to me that it's any more work to lock drivers than to provide some sort of compatibility shims. Regardless this won't be an issue for a while. Mind you I am still tracking at least one nasty bug... Sam From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 22:00:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E207816A4C0 for ; Tue, 19 Aug 2003 22:00:50 -0700 (PDT) Received: from daniel.ameriroots.com (daniel.ameriroots.com [64.249.12.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 047D343FBD for ; Tue, 19 Aug 2003 22:00:50 -0700 (PDT) (envelope-from orville@weyrich.com) Received: from bashful.weyrich.com (bashful.weyrich.com [198.49.110.8]) by daniel.ameriroots.com (8.11.3/8.11.3) with ESMTP id h7K5Jwr83617 for ; Tue, 19 Aug 2003 22:19:58 -0700 (MST) (envelope-from orville@weyrich.com) Received: from localhost (orville@localhost) by bashful.weyrich.com (8.11.3/8.11.3) with ESMTP id h7K54rO63880 for ; Tue, 19 Aug 2003 22:04:53 -0700 (MST) (envelope-from orville@weyrich.com) X-Authentication-Warning: bashful.weyrich.com: orville owned process doing -bs Date: Tue, 19 Aug 2003 22:04:53 -0700 (MST) From: "Orville R. Weyrich_Jr" X-X-Sender: To: In-Reply-To: <448579583.1061309896@melange.errno.com> Message-ID: <20030819220030.M63814-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: SPAM help X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 05:00:51 -0000 I have recently been getting a lot of bounce messages addressed to an in-mail box on my FreeBSD system . These bounced messages were NOT sent by my system, because there is no user account by that name (it is an incoming forward to the account I am using to send this message). I believe that these messages are spam with a forged header. I am afraid that my system will be black-holed by someone who thinks I really did originate the messages. What can I do? ------------------------------------------------------------------- Orville R. Weyrich, Jr. Weyrich Computer Consulting mailto:orville@weyrich.com KD7HJV http://www.weyrich.com ------------------------------------------------------------------- From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 22:22:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1AB216A4BF for ; Tue, 19 Aug 2003 22:22:43 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0935343F3F for ; Tue, 19 Aug 2003 22:22:43 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9/8.12.9) with ESMTP id h7K5MOM7032499; Tue, 19 Aug 2003 22:22:28 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200308200522.h7K5MOM7032499@gw.catspoiler.org> Date: Tue, 19 Aug 2003 22:22:24 -0700 (PDT) From: Don Lewis To: sam@errno.com In-Reply-To: <448579583.1061309896@melange.errno.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: freebsd-net@FreeBSD.org Subject: Re: HEADS UP: network locking work going on X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 05:22:44 -0000 On 19 Aug, Sam Leffler wrote: > Once the work on the lower layer is stable I'll be turning my attention to > the upper layers of the network and to IPv6 and NFS. There's plenty of > work to go around, so if you're interested in participating please let me > know. BTW, there is a buf vs. vnode locking problem in nfssvc_iod() that I haven't found a good fix for. The code currently just leaves the vnode unlocked. I may have some time to work on this stuff in a month or so. From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 23:34:47 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7F8016A4BF for ; Tue, 19 Aug 2003 23:34:47 -0700 (PDT) Received: from jcmwsm03.mwjc.easylink.com (jcmwsm03a.mwjc.easylink.com [165.251.41.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D55BB43FBF for ; Tue, 19 Aug 2003 23:34:41 -0700 (PDT) (envelope-from help@mailwatch.com) Received: from jcmwmasbdb01.mwjc.easylink.com (mwsmout-vip-1.mwjc.easylink.com [165.251.41.105])h7K6Yfwa021539 for ; Wed, 20 Aug 2003 02:34:41 -0400 (EDT) Received: from mail pickup service by jcmwmasbdb01.mwjc.easylink.com with Microsoft SMTPSVC; Wed, 20 Aug 2003 02:34:41 -0400 MIME-Version: 1.0 Message-Id: <3F431681.07F597.01124@jcmwmasbdb01.mwjc.easylink.com> Date: Wed, 20 Aug 2003 02:34:41 -0400 (Eastern Daylight Time) From: MailWatch Help Desk To: freebsd-net@FreeBSD.ORG X-MW4Notice: Sender 2-323176778000070003-1125 Content-Type: Text/Plain Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Aug 2003 06:34:41.0211 (UTC) FILETIME=[22B188B0:01C366E5] Subject: Your details X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 06:34:48 -0000 --[This is an automatically generated email notification.]-- ***************************** Email Alert! ***************************** The message you sent on 8/19/2003 5:19:38 PM with a subject of Your details triggered one or more automatic email policy. The following policies were automatically applied to your message: Virus - In The following addresses were listed as recipients of This message: Harold.Fix@BenjaminMoore.com This message is only meant to serve as a notification that your message was not immediately delivered to all of the designated recipients. Due to a Corporate policy, your message has been quarantined by the gateway. Please contact your E-mail Administrator for assistance or ext. 2700. ** Important Note: ** --------------------- It is possible that some of the recipients listed were not affected by these policies. --------------------- ************************************************************ NOTE: This is an automated email notification. Please do NOT reply directly to this message! ************************************************************ Message ID: 323176778000030006-2-210250001 ********** MailWatch has scanned your e-mail message and determined it can not be delivered as originally sent. MailWatch can help you avoid these problems in the future by scanning your e-mail for viruses, Spam and objectionable content. Visit http://www.MailWatch.com to read about the benefits of MailWatch. ********** From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 23:47:49 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FF4116A4BF for ; Tue, 19 Aug 2003 23:47:49 -0700 (PDT) Received: from pit.databus.com (p70-227.acedsl.com [66.114.70.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B2DE43FA3 for ; Tue, 19 Aug 2003 23:47:48 -0700 (PDT) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (localhost [127.0.0.1]) by pit.databus.com (8.12.9/8.12.9) with ESMTP id h7K6lkDw038485; Wed, 20 Aug 2003 02:47:46 -0400 (EDT) (envelope-from barney@pit.databus.com) Received: (from barney@localhost) by pit.databus.com (8.12.9/8.12.9/Submit) id h7K6lkWo038484; Wed, 20 Aug 2003 02:47:46 -0400 (EDT) (envelope-from barney) Date: Wed, 20 Aug 2003 02:47:45 -0400 From: Barney Wolff To: "Orville R. Weyrich_Jr" Message-ID: <20030820064745.GA37477@pit.databus.com> References: <448579583.1061309896@melange.errno.com> <20030819220030.M63814-100000@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030819220030.M63814-100000@localhost> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.35 cc: freebsd-net@freebsd.org Subject: Re: SPAM help X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 06:47:49 -0000 On Tue, Aug 19, 2003 at 10:04:53PM -0700, Orville R. Weyrich_Jr wrote: > I have recently been getting a lot of bounce messages addressed to an > in-mail box on my FreeBSD system . > > These bounced messages were NOT sent by my system, because there is no > user account by that name (it is an incoming forward to the account I am > using to send this message). > > I believe that these messages are spam with a forged header. I am afraid > that my system will be black-holed by someone who thinks I really did > originate the messages. > > What can I do? Not a damn thing. Anyone who has the temerity to post to an email list or put an address on a website gets these. So far, I haven't noticed being blacklisted because of them - perhaps the blacklisters have the sense to notice that the From doesn't match the Received headers. If the volume gets too high, procmail is your friend. -- Barney Wolff http://www.databus.com/bwresume.pdf I'm available by contract or FT, in the NYC metro area or via the 'Net. From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 04:24:49 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58FEF16A4C2 for ; Wed, 20 Aug 2003 04:24:49 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 2AAF143FE1 for ; Wed, 20 Aug 2003 04:24:43 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 20324 invoked by uid 5013); 20 Aug 2003 11:21:45 -0000 Date: Wed, 20 Aug 2003 12:21:45 +0100 From: Bruce M Simpson To: Sam Leffler , Bill Fenner , Jake Burkholder , mini@freebsd.org Message-ID: <20030820112145.GB11682@spc.org> Mail-Followup-To: Bruce M Simpson , Sam Leffler , Bill Fenner , Jake Burkholder , mini@freebsd.org, freebsd-net@freebsd.org, freebsd-arch@freebsd.org References: <447450569.1061308767@melange.errno.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline In-Reply-To: <447450569.1061308767@melange.errno.com> User-Agent: Mutt/1.4.1i Organization: SPC cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 11:24:49 -0000 --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 19, 2003 at 03:59:27PM -0700, Sam Leffler wrote: > this note is to insure "everyone" is aware. If your are actively working > on stuff related to the network code and I haven't already corresponded > with you; please let me know so we can coordinate our work--I have no > interest in duplicating the efforts of others. Otherwise, if you are > working in this area I'd appreciate knowing about any significant changes > planned that might affect what I'm doing. I'm preparing to commit the attached, any objections? (As soon as Jake wakes up, anyway ;). Was loosely following the flow of things from BSD/OS; it doesn't appear to impact on locking but I'm grateful for more expert review in this area. mini@ has looked over it and doesn't see any immediate problems. provisional log message: Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on specific interfaces. This is required by aodvd, and may in future help us in getting rid of the requirement for BPF from our import of isc-dhcp. Suggested by: fenestro Reviewed by: mini Referenced by: wstevens Obtained from: BSD/OS BMS --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="onesbc.col.diff" Generated by diffcoll on Wed 20 Aug 2003 12:08:21 BST diff -uN src/sys/netinet/in.h.orig src/sys/netinet/in.h --- /usr/src/sys/netinet/in.h.orig Tue Aug 19 22:57:16 2003 +++ /usr/src/sys/netinet/in.h Wed Aug 20 12:08:16 2003 @@ -388,6 +388,8 @@ #define IP_IPSEC_POLICY 21 /* int; set/get security policy */ #define IP_FAITH 22 /* bool; accept FAITH'ed connections */ +#define IP_ONESBCAST 23 /* bool: send all-ones broadcast */ + #define IP_FW_ADD 50 /* add a firewall rule to chain */ #define IP_FW_DEL 51 /* delete a firewall rule from chain */ #define IP_FW_FLUSH 52 /* flush firewall rule chain */ diff -uN src/sys/netinet/ip_var.h.orig src/sys/netinet/ip_var.h --- /usr/src/sys/netinet/ip_var.h.orig Tue Aug 19 23:08:49 2003 +++ /usr/src/sys/netinet/ip_var.h Wed Aug 20 12:07:48 2003 @@ -139,6 +139,7 @@ /* flags passed to ip_output as last parameter */ #define IP_FORWARDING 0x1 /* most of ip header exists */ #define IP_RAWOUTPUT 0x2 /* raw ip header exists */ +#define IP_SENDONES 0x4 /* send all-ones broadcast */ #define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ #define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */ diff -uN src/sys/netinet/in_pcb.h.orig src/sys/netinet/in_pcb.h --- /usr/src/sys/netinet/in_pcb.h.orig Tue Aug 19 23:00:47 2003 +++ /usr/src/sys/netinet/in_pcb.h Wed Aug 20 12:07:48 2003 @@ -142,6 +142,7 @@ #define INP_IPV6 0x2 #define INP_IPV6PROTO 0x4 /* opened under IPv6 protocol */ #define INP_TIMEWAIT 0x8 /* .. probably doesn't go here */ +#define INP_ONESBCAST 0x10 /* send all-ones broadcast */ u_char inp_ip_ttl; /* time to live proto */ u_char inp_ip_p; /* protocol proto */ diff -uN src/sys/netinet/ip_output.c.orig src/sys/netinet/ip_output.c --- /usr/src/sys/netinet/ip_output.c.orig Tue Aug 19 23:01:37 2003 +++ /usr/src/sys/netinet/ip_output.c Wed Aug 20 12:07:48 2003 @@ -469,6 +469,8 @@ error = EMSGSIZE; goto bad; } + if (flags & IP_SENDONES) + ip->ip_dst.s_addr = INADDR_BROADCAST; m->m_flags |= M_BCAST; } else { m->m_flags &= ~M_BCAST; @@ -1427,6 +1429,7 @@ case IP_RECVTTL: case IP_RECVIF: case IP_FAITH: + case IP_ONESBCAST: error = sooptcopyin(sopt, &optval, sizeof optval, sizeof optval); if (error) @@ -1469,6 +1472,10 @@ case IP_FAITH: OPTSET(INP_FAITH); break; + + case IP_ONESBCAST: + OPTSET(INP_ONESBCAST); + break; } break; #undef OPTSET @@ -1562,6 +1569,7 @@ case IP_RECVIF: case IP_PORTRANGE: case IP_FAITH: + case IP_ONESBCAST: switch (sopt->sopt_name) { case IP_TOS: @@ -1605,6 +1613,10 @@ case IP_FAITH: optval = OPTBIT(INP_FAITH); + break; + + case IP_ONESBCAST: + optval = OPTBIT(INP_ONESBCAST); break; } error = sooptcopyout(sopt, &optval, sizeof optval); diff -uN src/sys/netinet/raw_ip.c.orig src/sys/netinet/raw_ip.c --- /usr/src/sys/netinet/raw_ip.c.orig Tue Aug 19 23:36:29 2003 +++ /usr/src/sys/netinet/raw_ip.c Wed Aug 20 12:07:48 2003 @@ -322,6 +322,9 @@ ipstat.ips_rawout++; } + if (inp->inp_flags & INP_ONESBCAST) + flags |= IP_SENDONES; + return (ip_output(m, inp->inp_options, &inp->inp_route, flags, inp->inp_moptions, inp)); } diff -uN src/sys/netinet/udp_usrreq.c.orig src/sys/netinet/udp_usrreq.c --- /usr/src/sys/netinet/udp_usrreq.c.orig Tue Aug 19 22:46:26 2003 +++ /usr/src/sys/netinet/udp_usrreq.c Wed Aug 20 12:07:48 2003 @@ -693,6 +693,7 @@ struct cmsghdr *cm; struct sockaddr_in *sin, src; int error = 0; + int ipflags; u_short fport, lport; #ifdef MAC @@ -821,6 +822,10 @@ ui->ui_dport = fport; ui->ui_ulen = htons((u_short)len + sizeof(struct udphdr)); + ipflags = inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST); + if (inp->inp_flags & INP_ONESBCAST) + ipflags |= IP_SENDONES; + /* * Set up checksum and output datagram. */ @@ -837,8 +842,7 @@ ((struct ip *)ui)->ip_tos = inp->inp_ip_tos; /* XXX */ udpstat.udps_opackets++; - error = ip_output(m, inp->inp_options, &inp->inp_route, - (inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST)), + error = ip_output(m, inp->inp_options, &inp->inp_route, ipflags, inp->inp_moptions, inp); return (error); diff -uN src/share/man/man4/ip.4.orig src/share/man/man4/ip.4 --- /usr/src/share/man/man4/ip.4.orig Tue Aug 19 23:40:22 2003 +++ /usr/src/share/man/man4/ip.4 Wed Aug 20 12:07:48 2003 @@ -175,6 +175,47 @@ .Xr sendmsg 2 . .Pp If the +.Dv IP_ONESBCAST +option is enabled on a +.Dv SOCK_DGRAM +or a +.Dv SOCK_RAW +socket, the destination address of outgoing +broadcast datagrams on that socket will be forced +to the undirected broadcast address, +.Dv INADDR_BROADCAST , +before transmission. +This is in contrast to the default behavior of the +system, which is to transmit undirected broadcasts +via the first network interface with the +.Dv IFF_BROADCAST flag set. +.Pp +This option allows applications to choose which +interface is used to transmit an undirected broadcast +datagram. +For example, the following code would force an +undirected broadcast to be transmitted via the interface +configured with the broadcast address 192.168.2.255: +.Bd -literal +char msg[512]; +struct sockaddr_in sin; +u_char onesbcast = 1; /* 0 = disable (default), 1 = enable */ + +setsockopt(s, IPPROTO_IP, IP_ONESBCAST, &onesbcast, sizeof(onesbcast)); +sin.sin_addr.s_addr = inet_addr("192.168.2.255"); +sin.sin_port = htons(1234); +sendto(s, msg, sizeof(msg), 0, &sin, sizeof(sin)); +.Ed +.Pp +It is the application's responsibility to set the +.Dv IP_TTL option +to an appropriate value in order to prevent broadcast storms. +The application must have sufficient credentials to set the +.Dv SO_BROADCAST +socket level option, otherwise the +.Dv IP_ONESBCAST option has no effect. +.Pp +If the .Dv IP_RECVTTL option is enabled on a .Dv SOCK_DGRAM --ALfTUftag+2gvp1h-- From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 08:42:54 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F62616A4C0; Wed, 20 Aug 2003 08:42:54 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF54243FE1; Wed, 20 Aug 2003 08:42:53 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KFgn7N026500 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 08:42:53 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 08:43:02 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <507665634.1061368982@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFR: fastforwarding locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 15:42:55 -0000 http://www.freebsd.org/~sam/fastforward.patch These lock the fast forwarding hash table with a lock per hash bucket. There is one known issue with these changes: a LOR with the bridge code caused by holding a lock across the call to forward the packet. Also, some statistics are not consistently updated. Beware of overlap with routing table locking changes. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 08:53:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A441B16A4C0; Wed, 20 Aug 2003 08:53:43 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id E51B043F93; Wed, 20 Aug 2003 08:53:42 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KFrb7N026573 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 08:53:41 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 08:53:49 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <508312264.1061369629@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFR: fast ipsec locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 15:53:44 -0000 http://www.freebsd.org/~sam/fastipsec.patch These changes add locking and cleanup some of the infrastructure; e.g. to do better accounting of dynamically allocated data structures. Basic operation is well-tested but I haven't done extensive testing of the re-keying (e.g. with racoon). There is one known performance bottleneck: the lock in the ipsecrequest structure is held for every outbound packet to guard against modification to the data structure. This looks to be fixable by redoing the SADB but won't happen for a while. Note that with these changes much of fast ipsec runs Giant-free because the crypto code is already Giant-free. I did some performance measurements a while back with this code and a Giant-free em driver and got netperf results over a h/w-accelerated 3DES+SHA1 tunnel that was about the same as -stable. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 08:55:21 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33E3916A4BF; Wed, 20 Aug 2003 08:55:21 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 643F743FCB; Wed, 20 Aug 2003 08:55:20 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KFtJ7N026586 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 08:55:19 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 08:55:32 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <508414881.1061369732@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFG: domain locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 15:55:21 -0000 http://www.freebsd.org/~sam/domain.patch These add locking to the list of domains. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 08:58:32 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7668016A4BF; Wed, 20 Aug 2003 08:58:32 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id CECDE43FA3; Wed, 20 Aug 2003 08:58:31 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KFwS7N026592 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 08:58:31 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 08:58:41 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <508604564.1061369921@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFG: raw socket locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 15:58:32 -0000 http://www.freebsd.org/~sam/rawsock.patch This locks the raw socket protocol control blocks using equivalent techniques to those used for udp, etc. There is one code restructuring done to simplify this work; equivalent to the one I added for udp. Note this change also removes the rip_olddiverterror sysctl. It was marked as "to be removed". I'll probably leave it alone and/or remove it in a separate pass. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 09:14:15 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0786F16A4BF; Wed, 20 Aug 2003 09:14:15 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D63943FBD; Wed, 20 Aug 2003 09:14:14 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KGE77N026653 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 09:14:13 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 09:14:19 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <509542533.1061370859@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFR: routing table locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:14:15 -0000 http://www.freebsd.org/~sam/rtentry.patch This is an extensive set of changes to lock routing table entries. There are some issues with these changes that will need to be resolved before committing the work. In particular the per-entry mutex is stored in the rtentry structure and this struct is visible to user applications like route(8). This must be fixed. For now I've #ifdef'd the mutex to be included only in the kernel. We'll either need to use an indirect reference to a mutex or, more likely, introduce an externalized version of struct rtentry to decouple kernel operation from user applications. It may be possible to jigger the code to make the lock in the entry be a leaf lock in which case we could use a mutex pool and a pointer to a mutex but I'm leaning more to decoupling the kernel from user apps as this has general benefits. These changes have been in use on 4 of my machines for several weeks. IPv6 has only been lightly tested. In general I consider the code very lightly tested so don't be surprised if you encounter issues. Also, because of the wide visibility of the routing table in the system I may have missed some uses that need locking. There are a couple of LOR issues to be resolved. In particular I recall there is one with the ARP cache. Another issue is that these changes do not include multicast routing. That code has been changing recently so I left it alone. I'm not well setup to test multicast routing so if someone with an existing setup is interested in tacking this please let me know. Note there is one API change buried in these diffs. I dropped the last parameter to rtredirect that allowed callers to receive a reference to the associated entry. This was not used in the system and introduced issues for locking. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 09:34:45 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 785AC16A4BF; Wed, 20 Aug 2003 09:34:45 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC96A43F85; Wed, 20 Aug 2003 09:34:44 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KGYe7N026721 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 09:34:43 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 09:34:54 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <510776858.1061372094@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:34:45 -0000 http://www.freebsd.org/~sam/bridge.patch This patch adds locking and also overhauls the bridge code some to do things like replace explicit numbers with #defines and cleanup the debugging code. I also restructured the forwarding code to avoid grabbing the ifnet lock if possible and optimized the common case of bridging two interfaces. There are a couple of LOR issues to be resolved before it can be committed. In particular the output path has a LOR that can deadlock. I'm making it available for review now in case folks have other comments. Beware that buried in these changes are a renaming of the bridge MIB variables to be under a net.link.ether.bridge. node. Those changes will not be carried over into the committed code unless folks are interested (since it'll break lots of rc scripts). Note that drivers that operate Giant-free with bridging need to release their "driver lock" before passing packets up. Otherwise the up call can result in an immediate return through the start method and deadlock (unless the lock is marked to allow recursion, which should be eliminated if at all possible). I've made these modifications for the em, wi, and sis drivers but have not committed them. The fxp driver already does this and the ath driver has a totally different locking strategy where this doesn't occur. Short term dropping the lock around the up call will work but is suboptimal. Long term we may want to revise the locking strategy for drivers to eliminate this issue. This will likely be revisited when I get to more performance tuning (unless someone else does it--hint hint). One other minor change: I moved the printf "BRIDGE 020214 loaded" under bootverbose. Can anyone tell me what 020214 means? This code has been in "production use" on my interior firewall (a soekris box) for a week. This box runs with the sis driver Giant-free. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 09:40:38 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AA9716A4BF; Wed, 20 Aug 2003 09:40:38 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CCE943FBF; Wed, 20 Aug 2003 09:40:37 -0700 (PDT) (envelope-from sam@errno.com) Received: from melange.errno.com (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h7KGeW7N026765 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Aug 2003 09:40:36 -0700 (PDT) (envelope-from sam@errno.com) Date: Wed, 20 Aug 2003 09:40:44 -0700 From: Sam Leffler To: freebsd-net@freebsd.org, freebsd-arch@freebsd.org Message-ID: <511127492.1061372444@melange.errno.com> X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CFR: ipfw locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:40:38 -0000 http://www.freebsd.org/~sam/ipfw.patch These changes add locking. There are two locks: one for static rules and one for dynamic rules. The associated dummynet changes are not included as I haven't tested them yet. The locking scheme may need to be revised to use something like sx locks; this will be revisited in a later pass. I've been running with these changes for a week on my interior firewall, but they are very lightly tested and need a good review and more testing. I don't plan to commit them until they get more of each. Sam From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 09:46:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 327B216A4BF for ; Wed, 20 Aug 2003 09:46:43 -0700 (PDT) Received: from cpu-net.com (host01.cpu-net.com [216.121.191.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91A8343FA3 for ; Wed, 20 Aug 2003 09:46:42 -0700 (PDT) (envelope-from don@cpu-net.com) Received: from Don.cpu-net.com ([65.87.195.2]) by cpu-net.com (8.9.3p2/8.9.3) with ESMTP id MAA11388 for ; Wed, 20 Aug 2003 12:50:24 -0400 Message-Id: <5.2.1.1.2.20030820124224.00baccc8@mail.comcast.net> X-Sender: mistif@mail.comcast.net X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Wed, 20 Aug 2003 12:46:41 -0400 To: freebsd-net@freebsd.org From: Donald Mohlmaster Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: dhclient withmultiple ip's X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 16:46:43 -0000 I am attempting to have dhclient grab two ip's from comcast. I know I have to set up the dhclient.conf with the pseudo section, but I am lost as what to do with the dhclient-script. It has to be different as to not drop the main interface ip configuration, but everything I do seems to just assign the same ip to the iface twice. Does it have to alias the second ip? Are there any suggestions you can give me? FreeBSD 4.7-RELEASE-p13 #22 isc-dhcp3-3.0.1.r11 Thank you for any help you can give, Don From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 10:23:57 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8404616A4BF; Wed, 20 Aug 2003 10:23:57 -0700 (PDT) Received: from b.mx.sonic.net (eth0.b.mx.sonic.net [209.204.159.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE71243FB1; Wed, 20 Aug 2003 10:23:56 -0700 (PDT) (envelope-from bmah@intruder.kitchenlab.org) Received: from intruder.kitchenlab.org (root@adsl-64-142-29-77.sonic.net [64.142.29.77]) by b.mx.sonic.net (8.12.9/8.12.7) with ESMTP id h7KHNjsX032054; Wed, 20 Aug 2003 10:23:55 -0700 Received: from intruder.kitchenlab.org (bmah@localhost [127.0.0.1]) h7KHNimh069232; Wed, 20 Aug 2003 10:23:44 -0700 (PDT) (envelope-from bmah@intruder.kitchenlab.org) Received: (from bmah@localhost) by intruder.kitchenlab.org (8.12.9/8.12.9/Submit) id h7KHNgtw069231; Wed, 20 Aug 2003 10:23:42 -0700 (PDT) (envelope-from bmah) Date: Wed, 20 Aug 2003 10:23:42 -0700 From: "Bruce A. Mah" To: Sam Leffler Message-ID: <20030820172342.GA69189@intruder.kitchenlab.org> References: <510776858.1061372094@melange.errno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <510776858.1061372094@melange.errno.com> User-Agent: Mutt/1.4.1i X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-url: http://www.employees.org/~bmah/ cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 17:23:57 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable If memory serves me right, Sam Leffler wrote: > One other minor change: I moved the printf "BRIDGE 020214 loaded" under= =20 > bootverbose. Can anyone tell me what 020214 means? I recently started using bridge(4) functionality and was wondering about this too. Based on the output of "cvs annotate" and "cvs log", I concluded that it was a datestamp used by Luigi to keep track of which version he was working with (on HEAD, this line was last touched in revision 1.45, which was committed on 15 February 2002). Bruce. --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Q66e2MoxcVugUsMRAp3hAKCxM1N5I5KwFaUEh3raArnoSn2hRACgww6W uwUG6QGPqDjtslEME0Bn7h8= =YTgR -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 10:29:37 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E6C116A4BF; Wed, 20 Aug 2003 10:29:37 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF7CE43FBF; Wed, 20 Aug 2003 10:29:36 -0700 (PDT) (envelope-from larse@ISI.EDU) Received: from isi.edu (c-24-130-112-121.we.client2.attbi.com [24.130.112.121]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h7KHTYn29800; Wed, 20 Aug 2003 10:29:34 -0700 (PDT) Message-ID: <3F43AFFD.6080504@isi.edu> Date: Wed, 20 Aug 2003 10:29:33 -0700 From: Lars Eggert Organization: USC Information Sciences Institute User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sam Leffler References: <510776858.1061372094@melange.errno.com> In-Reply-To: <510776858.1061372094@melange.errno.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms070006010709090100050103" cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 17:29:38 -0000 This is a cryptographically signed message in MIME format. --------------ms070006010709090100050103 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sam Leffler wrote: > http://www.freebsd.org/~sam/bridge.patch > > This patch adds locking and also overhauls the bridge code some to do > things like replace explicit numbers with #defines and cleanup the > debugging code. This is only mildly related, but maybe someone feels like looking at this in addition to your locking changes... I have a PR about the bridge code sitting at http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/41632; the latest patch is at http://www.isi.edu/larse/software/bridge.patch It does two things: 1. Disables bridging for IPv6. This is probably too aggressive, since bridging is only problematic for link-local packets, but it makes a routed IPv6 configuration coexist with a bridged IPv4 one. A much better fix would be an overhaul of the bridge code so that each bridge has a single link-local address, instead of one per physical interface. (Similar to how it should/must only have one IPv4 address, but link-locals are auto-assigned.) Essentially, make a bridge set its own pseudo interface. 2. It forwards a copy of bridged packets to bpfs attached to interfaces in the bridge set that have no carrier. This makes dhcpd work on an interface of a bridge set that is unplugged. Again, a much better fix would be to have bridge sets show up as pseudo interfaces that dhcpd's bpf can then listen on. I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code that implements the pseudo-device approach? Lars PS: I needed both these changes for our Soekris-based "rent-a-subnet" box: http://www.isi.edu/tethernet/ -- Lars Eggert USC Information Sciences Institute --------------ms070006010709090100050103 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJtjCC AzgwggKhoAMCAQICEGZFcrfMdPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAwgdExCzAJBgNV BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgG A1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vydmlj ZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkG CSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMDA4MzAwMDAw MDBaFw0wNDA4MjcyMzU5NTlaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2Vy dGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAw LjguMzAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7SbngnZ4HF2ogZ gpcO40QpimM1Km1wPPrcrvfudG8wvDOQf/k0caCjbZjxw0+iZdsN+kvx1t1hpfmFzVWaNRqd knWoJ67Ycvm6AvbXsJHeHOmr4BgDqHxDQlBRh4M88Dm0m1SKE4f/s5udSWYALQmJ7JRr6aFp AgMBAAGjTjBMMCkGA1UdEQQiMCCkHjAcMRowGAYDVQQDExFQcml2YXRlTGFiZWwxLTI5NzAS BgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQQFAAOBgQAxsUtH XfkBceX1U2xdedY9mMAmE2KBIqcS+CKV6BtJtyd7BDm6/ObyJOuR+r3sDSo491BVqGz3Da1M G7wD9LXrokefbKIMWI0xQgkRbLAaadErErJAXWr5edDqLiXdiuT82w0fnQLzWtvKPPZE6iZp h39Ins6ln+eE2MliYq0FxjCCAzkwggKioAMCAQICAwp2bzANBgkqhkiG9w0BAQQFADCBkjEL MAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3du MQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYD VQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwMB4XDTAzMDgwMTE3MjkyOVoX DTA0MDczMTE3MjkyOVowVDEPMA0GA1UEBBMGRWdnZXJ0MQ0wCwYDVQQqEwRMYXJzMRQwEgYD VQQDEwtMYXJzIEVnZ2VydDEcMBoGCSqGSIb3DQEJARYNbGFyc2VAaXNpLmVkdTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMb7PuLXnwV+45vwlkgogdSijd5HVqUB14bWvoK0 MjWPnkLPMDMDEezdsMG1BPiZyNeqXlJJtEgdAK8H2Mc9/qLeJUq3CoAeD6Wrjq4QaxJBXgdS KcGDeQAZSDgwUJS9vx9+cXJVfLyOYxJ+CLBcO/eu8PvSi17lk6oeAbrskSGDu/Xi1o2SC4Qm l69k8xcZQEMQDodkIk/U5SJmsCRGGYdy7opHZb58yXI8eiIGp5MlgryFmmgrp1pg3OYzPOR9 zJjn7Pu1vsd97LM5hLnKrmNuYt02jLNSjr8HmpLyWCDZq4Jlfq1YgNYZZ4KOSxipia7Bxjcs nMOsxEWiolkVVT8CAwEAAaNWMFQwKgYFK2UBBAEEITAfAgEAMBowGAIBBAQTTDJ1TXlmZkJO VWJOSkpjZFoyczAYBgNVHREEETAPgQ1sYXJzZUBpc2kuZWR1MAwGA1UdEwEB/wQCMAAwDQYJ KoZIhvcNAQEEBQADgYEANRaPsUtrdJzTW0AMj/EQamqxOkZnzwnPWGryqskMKIf+OKa+eaXp zlBv8CHdffv9hrYpvzWUxk0WW+YJ2LRdd4fFiVGXZCGU60eYeZGf7Z8ORoexylJpvUuKZCE4 aPGY2/QZXDfOs1NE82Bhgltx59dpWfH2K0dxbpHslO8/IbowggM5MIICoqADAgECAgMKdm8w DQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MDAeFw0wMzA4MDExNzI5MjlaFw0wNDA3MzExNzI5MjlaMFQxDzANBgNVBAQTBkVnZ2VydDEN MAsGA1UEKhMETGFyczEUMBIGA1UEAxMLTGFycyBFZ2dlcnQxHDAaBgkqhkiG9w0BCQEWDWxh cnNlQGlzaS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDG+z7i158FfuOb 8JZIKIHUoo3eR1alAdeG1r6CtDI1j55CzzAzAxHs3bDBtQT4mcjXql5SSbRIHQCvB9jHPf6i 3iVKtwqAHg+lq46uEGsSQV4HUinBg3kAGUg4MFCUvb8ffnFyVXy8jmMSfgiwXDv3rvD70ote 5ZOqHgG67JEhg7v14taNkguEJpevZPMXGUBDEA6HZCJP1OUiZrAkRhmHcu6KR2W+fMlyPHoi BqeTJYK8hZpoK6daYNzmMzzkfcyY5+z7tb7HfeyzOYS5yq5jbmLdNoyzUo6/B5qS8lgg2auC ZX6tWIDWGWeCjksYqYmuwcY3LJzDrMRFoqJZFVU/AgMBAAGjVjBUMCoGBStlAQQBBCEwHwIB ADAaMBgCAQQEE0wydU15ZmZCTlViTkpKY2RaMnMwGAYDVR0RBBEwD4ENbGFyc2VAaXNpLmVk dTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBADUWj7FLa3Sc01tADI/xEGpqsTpG Z88Jz1hq8qrJDCiH/jimvnml6c5Qb/Ah3X37/Ya2Kb81lMZNFlvmCdi0XXeHxYlRl2QhlOtH mHmRn+2fDkaHscpSab1LimQhOGjxmNv0GVw3zrNTRPNgYYJbcefXaVnx9itHcW6R7JTvPyG6 MYID1TCCA9ECAQEwgZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MAIDCnZvMAkGBSsOAwIaBQCgggIPMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZI hvcNAQkFMQ8XDTAzMDgyMDE3MjkzM1owIwYJKoZIhvcNAQkEMRYEFDBa8fpe4qiVmGVSLWhf MxOITpRMMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0G CCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMIGrBgkrBgEEAYI3EAQxgZ0w gZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNh cGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNl czEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDCnZvMIGtBgsq hkiG9w0BCRACCzGBnaCBmjCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2Fw ZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRp ZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44 LjMwAgMKdm8wDQYJKoZIhvcNAQEBBQAEggEAjooBdkmKJ1xru1gXIQ9bie3A8S5XnaI3gFUP xC4Pou4myhTwI/nCeprgohEbJpqEPYJhK8IW2sTeD6ociKI9/zsTXSGYxH6mP2SSXVff+dcj miMtwSqSO6aa1yBwK07CXkp0S33NkjuvmZWdgpz8gKnSgJW0UOeDE5Ce+hApRG+58B9uPsyj 62FBDH32BBcORLTRvYWQL1D/dezlb/PBe0fuHovPozrges3msAa7DaEm5mwySZjNhEd/IxGH 0iuCWbL8Hq8IHbS6PX+oSKC3Ns5mYID1c+nQLUj4CwrFdfHFfiRCBilSkXg2v/tmQgXIoADm 4TSs5D084Qfz795q7AAAAAAAAA== --------------ms070006010709090100050103-- From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 10:54:05 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FDCD16A4BF; Wed, 20 Aug 2003 10:54:05 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0953443FA3; Wed, 20 Aug 2003 10:54:03 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7KHqlj31005; Wed, 20 Aug 2003 14:52:47 -0300 Message-ID: <3F43B56E.1070100@tcoip.com.br> Date: Wed, 20 Aug 2003 14:52:46 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Lars Eggert References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu> In-Reply-To: <3F43AFFD.6080504@isi.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Sam Leffler cc: freebsd-arch@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 17:54:05 -0000 Lars Eggert wrote: > Sam Leffler wrote: > >> http://www.freebsd.org/~sam/bridge.patch >> >> This patch adds locking and also overhauls the bridge code some to do >> things like replace explicit numbers with #defines and cleanup the >> debugging code. > > > This is only mildly related, but maybe someone feels like looking at > this in addition to your locking changes... > > I have a PR about the bridge code sitting at > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/41632; the latest patch > is at http://www.isi.edu/larse/software/bridge.patch > > It does two things: > > 1. Disables bridging for IPv6. This is probably too aggressive, > since bridging is only problematic for link-local packets, but it > makes a routed IPv6 configuration coexist with a bridged IPv4 one. > > A much better fix would be an overhaul of the bridge code so that > each bridge has a single link-local address, instead of one per > physical interface. (Similar to how it should/must only have one IPv4 > address, but link-locals are auto-assigned.) Essentially, make > a bridge set its own pseudo interface. > > 2. It forwards a copy of bridged packets to bpfs attached to interfaces > in the bridge set that have no carrier. This makes dhcpd work on an > interface of a bridge set that is unplugged. > > Again, a much better fix would be to have bridge sets show up as > pseudo interfaces that dhcpd's bpf can then listen on. If you get bridge to send/receive packets to/from vlan interfaces attached to them, I'll be forever grateful. I've been trying to configure a setup where a firewall is connected to redundant switches, but no solution I found could handle the vlan attachments. :-( -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Many pages make a thick book. From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 11:59:29 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9BC916A4BF; Wed, 20 Aug 2003 11:59:29 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF43C43FDD; Wed, 20 Aug 2003 11:59:28 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h7KIxFrO049285; Wed, 20 Aug 2003 14:59:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h7KIxEak049282; Wed, 20 Aug 2003 14:59:14 -0400 (EDT) Date: Wed, 20 Aug 2003 14:59:14 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Lars Eggert In-Reply-To: <3F43AFFD.6080504@isi.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Sam Leffler cc: freebsd-arch@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 18:59:30 -0000 On Wed, 20 Aug 2003, Lars Eggert wrote: > I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code > that implements the pseudo-device approach? I had an older set of patches (4.x?) that implemented a bridgeX interface that saw all of the packets bridged by the bridge. However, it was just a pseudo-interface for the purposes of BPF -- it didn't carry a link local address, etc. I never tested for interop with IPv6. You can find a very old version of this at www.watson.org/~robert/freebsd/bridge.patch. It required some cleanup of the interactions between the bridge code and IPFW code that have probably since happened in the main tree as well, so the chances of this applying or working are effectively 0. :-) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 12:45:50 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC2616A4C0; Wed, 20 Aug 2003 12:45:50 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id C43F043F85; Wed, 20 Aug 2003 12:45:48 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc13) with ESMTP id <2003082019422301500bnaj1e>; Wed, 20 Aug 2003 19:42:23 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA74511; Wed, 20 Aug 2003 12:42:20 -0700 (PDT) Date: Wed, 20 Aug 2003 12:42:19 -0700 (PDT) From: Julian Elischer To: Robert Watson In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Sam Leffler cc: freebsd-net@freebsd.org cc: Lars Eggert cc: freebsd-arch@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 19:45:50 -0000 On Wed, 20 Aug 2003, Robert Watson wrote: > > On Wed, 20 Aug 2003, Lars Eggert wrote: > > > I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code > > that implements the pseudo-device approach? FreeBSD has both. If you use netgraph bridging then you are using a more "link level device" like approach. > > I had an older set of patches (4.x?) that implemented a bridgeX interface > that saw all of the packets bridged by the bridge. However, it was just a > pseudo-interface for the purposes of BPF -- it didn't carry a link local > address, etc. I never tested for interop with IPv6. You can find a very > old version of this at www.watson.org/~robert/freebsd/bridge.patch. It > required some cleanup of the interactions between the bridge code and IPFW > code that have probably since happened in the main tree as well, so the > chances of this applying or working are effectively 0. :-) > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Network Associates Laboratories > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 12:51:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5542216A4BF; Wed, 20 Aug 2003 12:51:07 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0325343FB1; Wed, 20 Aug 2003 12:51:05 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7KJovj01819; Wed, 20 Aug 2003 16:50:57 -0300 Message-ID: <3F43D120.3050905@tcoip.com.br> Date: Wed, 20 Aug 2003 16:50:56 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Sam Leffler cc: freebsd-arch@freebsd.org cc: Lars Eggert cc: Robert Watson cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 19:51:07 -0000 Julian Elischer wrote: > > On Wed, 20 Aug 2003, Robert Watson wrote: > > >>On Wed, 20 Aug 2003, Lars Eggert wrote: >> >> >>>I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code >>>that implements the pseudo-device approach? > > > FreeBSD has both. > If you use netgraph bridging then you are using a more > "link level device" like approach. Nope. Neither netgraph nor bridge(4) produce a pseudo-interface. Unfortunately. It would have solved the problem I was discussing with you (alas, I found a y2k thread, in which Archie and you were also present, about that very same problem). Netgraph's ng_iface is not enough, because it's much more limitted. > > > >>I had an older set of patches (4.x?) that implemented a bridgeX interface >>that saw all of the packets bridged by the bridge. However, it was just a >>pseudo-interface for the purposes of BPF -- it didn't carry a link local >>address, etc. I never tested for interop with IPv6. You can find a very >>old version of this at www.watson.org/~robert/freebsd/bridge.patch. It >>required some cleanup of the interactions between the bridge code and IPFW >>code that have probably since happened in the main tree as well, so the >>chances of this applying or working are effectively 0. :-) >> >>Robert N M Watson FreeBSD Core Team, TrustedBSD Projects >>robert@fledge.watson.org Network Associates Laboratories >> >>_______________________________________________ >>freebsd-net@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-net >>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net The penalty for laughing in a courtroom is six months in jail; if it were not for this penalty, the jury would never hear the evidence. -- H. L. Mencken From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 12:54:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D76A716A4BF; Wed, 20 Aug 2003 12:54:43 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D54043F93; Wed, 20 Aug 2003 12:54:43 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.8p1/8.12.3) with ESMTP id h7KJsekN072087; Wed, 20 Aug 2003 12:54:40 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h7KJseFs072086; Wed, 20 Aug 2003 12:54:40 -0700 (PDT) (envelope-from rizzo) Date: Wed, 20 Aug 2003 12:54:40 -0700 From: Luigi Rizzo To: "Bruce A. Mah" Message-ID: <20030820125440.A66805@xorpc.icir.org> References: <510776858.1061372094@melange.errno.com> <20030820172342.GA69189@intruder.kitchenlab.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030820172342.GA69189@intruder.kitchenlab.org>; from bmah@freebsd.org on Wed, Aug 20, 2003 at 10:23:42AM -0700 cc: Sam Leffler cc: freebsd-arch@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 19:54:44 -0000 On Wed, Aug 20, 2003 at 10:23:42AM -0700, Bruce A. Mah wrote: > If memory serves me right, Sam Leffler wrote: > > > One other minor change: I moved the printf "BRIDGE 020214 loaded" under > > bootverbose. Can anyone tell me what 020214 means? yes, it is a timestamp -- just to get an idea on when the code was last touched. cheers luigi > I recently started using bridge(4) functionality and was wondering > about this too. Based on the output of "cvs annotate" and "cvs log", > I concluded that it was a datestamp used by Luigi to keep track of > which version he was working with (on HEAD, this line was last touched > in revision 1.45, which was committed on 15 February 2002). > > Bruce. From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 12:56:05 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5F2A16A4BF; Wed, 20 Aug 2003 12:56:05 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5940443FB1; Wed, 20 Aug 2003 12:56:05 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc11) with ESMTP id <20030820195545013008ckg2e>; Wed, 20 Aug 2003 19:55:45 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA74663; Wed, 20 Aug 2003 12:55:43 -0700 (PDT) Date: Wed, 20 Aug 2003 12:55:41 -0700 (PDT) From: Julian Elischer To: "Daniel C. Sobral" In-Reply-To: <3F43D120.3050905@tcoip.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Sam Leffler cc: freebsd-arch@freebsd.org cc: Lars Eggert cc: Robert Watson cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 19:56:06 -0000 On Wed, 20 Aug 2003, Daniel C. Sobral wrote: > Julian Elischer wrote: > > > > On Wed, 20 Aug 2003, Robert Watson wrote: > > > > > >>On Wed, 20 Aug 2003, Lars Eggert wrote: > >> > >> > >>>I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code > >>>that implements the pseudo-device approach? > > > > > > FreeBSD has both. > > If you use netgraph bridging then you are using a more > > "link level device" like approach. > > Nope. Neither netgraph nor bridge(4) produce a pseudo-interface. > Unfortunately. It would have solved the problem I was discussing with > you (alas, I found a y2k thread, in which Archie and you were also > present, about that very same problem). > > Netgraph's ng_iface is not enough, because it's much more limitted. netgraph's eiface node may do better.. > > > > > > > > >>I had an older set of patches (4.x?) that implemented a bridgeX interface > >>that saw all of the packets bridged by the bridge. However, it was just a > >>pseudo-interface for the purposes of BPF -- it didn't carry a link local > >>address, etc. I never tested for interop with IPv6. You can find a very > >>old version of this at www.watson.org/~robert/freebsd/bridge.patch. It > >>required some cleanup of the interactions between the bridge code and IPFW > >>code that have probably since happened in the main tree as well, so the > >>chances of this applying or working are effectively 0. :-) > >> > >>Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > >>robert@fledge.watson.org Network Associates Laboratories > >> > >>_______________________________________________ > >>freebsd-net@freebsd.org mailing list > >>http://lists.freebsd.org/mailman/listinfo/freebsd-net > >>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >> > > > > > > _______________________________________________ > > freebsd-arch@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" > > > -- > Daniel C. Sobral (8-DCS) > Gerencia de Operacoes > Divisao de Comunicacao de Dados > Coordenacao de Seguranca > VIVO Centro Oeste Norte > Fones: 55-61-313-7654/Cel: 55-61-9618-0904 > E-mail: Daniel.Capo@tco.net.br > Daniel.Sobral@tcoip.com.br > dcs@tcoip.com.br > > Outros: > dcs@newsguy.com > dcs@freebsd.org > capo@notorious.bsdconspiracy.net > > The penalty for laughing in a courtroom is six months in jail; if it > were not for this penalty, the jury would never hear the evidence. > -- H. L. Mencken > > From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 13:06:39 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45AB816A4BF; Wed, 20 Aug 2003 13:06:39 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E746543FCB; Wed, 20 Aug 2003 13:06:36 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7KK6Vj02372; Wed, 20 Aug 2003 17:06:31 -0300 Message-ID: <3F43D4C6.2040705@tcoip.com.br> Date: Wed, 20 Aug 2003 17:06:30 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 20:06:39 -0000 >>>>On Wed, 20 Aug 2003, Lars Eggert wrote: >>>> >>>>>I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code >>>>>that implements the pseudo-device approach? >>Julian Elischer wrote: >>> >>>FreeBSD has both. >>>If you use netgraph bridging then you are using a more >>>"link level device" like approach. > On Wed, 20 Aug 2003, Daniel C. Sobral wrote: >> >>Nope. Neither netgraph nor bridge(4) produce a pseudo-interface. >>Unfortunately. It would have solved the problem I was discussing with >>you (alas, I found a y2k thread, in which Archie and you were also >>present, about that very same problem). >> >>Netgraph's ng_iface is not enough, because it's much more limitted. Julian Elischer wrote: > > netgraph's eiface node may do better.. ENODOCS. :-) I can barely configure this stuff with the existing docs. Without, I won't even know what hooks there are for it! :-) -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net ( /\__________/\ ) \(^ @___..___@ ^)/ /\ (\/\/\/\/) /\ / \(/\/\/\/\)/ \ -( """""""""" ) \ _____ / ( /( )\ ) _) (_V) (V_) (_ (V)(V)(V) (V)(V)(V) From owner-freebsd-net@FreeBSD.ORG Wed Aug 20 15:41:52 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6525016A4BF for ; Wed, 20 Aug 2003 15:41:52 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACF5043FD7 for ; Wed, 20 Aug 2003 15:41:51 -0700 (PDT) (envelope-from emaste@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Aug 2003 18:41:51 -0400 Message-ID: From: Ed Maste To: 'Mike Silbersack' Date: Wed, 20 Aug 2003 18:41:49 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" cc: freebsd-net@freebsd.org Subject: RE: TCP socket shutdown race condition X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 22:41:52 -0000 >Well, I guess the spl() fix is probably going to be the quickest here >then, please send it to me once you've pounded on it, Ed. So my spl() fix seems to eliminate the problem for me but while I'm looking at this stuff I want to make sure there aren't any related cases left in. My current patch is at the end of this message. One potential problem is a crfree() interrupting code that's incrementing a ucred reference. For example, uipc_socket.c:socreate(): so->so_cred = p->p_ucred; crhold(so->so_cred); However, I don't think a crfree() interrupting between these should cause a problem. The refcount would always be at least 2 to begin with, so the ucred wouldn't be free()d. Another possible problem is a crfree() interrupting a crfree() for the same ucred. This would result in a double free, leading to who knows what corruption. I did try the test against a kernel with invariants on, but nothing happened; presumably the timing changed enough that the race condition wouldn't occur. I protected the if (--cr->cr_ref == 0) in crfree() with splhigh() but left the actuall free() out of splhigh. The cr->cr_ref++ in crhold() assembles to an incl (%eax) which will be atomic on a single processor. However I don't think anything guarantees gcc will emit that code for that source instruction, so I put a splhigh around it too. Probably atomic_add_int would be better -- I'll try that out too. Our stress test is running against the patch below, and I'll report any findings. If you have any comments on this, please let me know. Index: kern_prot.c =================================================================== RCS file: /cvs/src/sys/kern/kern_prot.c,v retrieving revision 1.53.2.9 diff -c -3 -r1.53.2.9 kern_prot.c *** kern_prot.c 9 Mar 2002 05:20:26 -0000 1.53.2.9 --- kern_prot.c 20 Aug 2003 22:12:29 -0000 *************** *** 997,1003 **** --- 997,1005 ---- crhold(cr) struct ucred *cr; { + int s = splhigh(); cr->cr_ref++; + splx(s); } /* *************** *** 1008,1017 **** --- 1010,1021 ---- crfree(cr) struct ucred *cr; { + int s = splhigh(); if (cr->cr_ref == 0) panic("Freeing already free credential! %p", cr); if (--cr->cr_ref == 0) { + splx(s); /* * Some callers of crget(), such as nfs_statfs(), * allocate a temporary credential, but don't *************** *** 1020,1026 **** --- 1024,1032 ---- if (cr->cr_uidinfo != NULL) uifree(cr->cr_uidinfo); FREE((caddr_t)cr, M_CRED); + return; } + splx(s); } /* From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 01:01:05 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82F7D16A4BF for ; Thu, 21 Aug 2003 01:01:05 -0700 (PDT) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B5FC43FE9 for ; Thu, 21 Aug 2003 01:01:04 -0700 (PDT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) h7L810el022820 for ; Thu, 21 Aug 2003 16:01:00 +0800 (KRAST) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.12.9/8.12.9/Submit) id h7L80xC2022814 for net@freebsd.org; Thu, 21 Aug 2003 16:00:59 +0800 (KRAST) Date: Thu, 21 Aug 2003 16:00:59 +0800 From: Eugene Grosbein To: net@freebsd.org Message-ID: <20030821080059.GA22509@svzserv.kemerovo.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: PnP VendorID list X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 08:01:05 -0000 Hi! Where can I get list of officially assigned PnP Vendor IDs? I have a noname PnP ISA NIC that does not work. Eugene Grosbein From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 02:23:53 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5F7516A4BF for ; Thu, 21 Aug 2003 02:23:53 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62D1D43FCB for ; Thu, 21 Aug 2003 02:23:52 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (de31u0sy@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h7L9Nbf12969565; Thu, 21 Aug 2003 13:23:37 +0400 (MSD) Date: Thu, 21 Aug 2003 13:23:37 +0400 (MSD) From: Maxim Konovalov To: "Daniel C. Sobral" In-Reply-To: <3F43B56E.1070100@tcoip.com.br> Message-ID: <20030821132232.V48944@news1.macomnet.ru> References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu> <3F43B56E.1070100@tcoip.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 09:23:54 -0000 [ CC: trimmed ] On Wed, 20 Aug 2003, 14:52-0300, Daniel C. Sobral wrote: [...] > If you get bridge to send/receive packets to/from vlan interfaces > attached to them, I'll be forever grateful. > > I've been trying to configure a setup where a firewall is connected to > redundant switches, but no solution I found could handle the vlan > attachments. :-( http://people.freebsd.org/~maxim/diff/bridge.diff Let me know if it helps. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 04:00:19 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1866D16A4BF for ; Thu, 21 Aug 2003 04:00:19 -0700 (PDT) Received: from tomts13-srv.bellnexxia.net (tomts13-srv.bellnexxia.net [209.226.175.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 082DE43FA3 for ; Thu, 21 Aug 2003 04:00:18 -0700 (PDT) (envelope-from matt@compar.com) Received: from hermes ([65.95.185.143]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030821110016.MACE13547.tomts13-srv.bellnexxia.net@hermes>; Thu, 21 Aug 2003 07:00:16 -0400 Message-ID: <004b01c367d3$246b5480$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Eugene Grosbein" , References: <20030821080059.GA22509@svzserv.kemerovo.su> Date: Thu, 21 Aug 2003 06:58:24 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: PnP VendorID list X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 11:00:19 -0000 > Where can I get list of officially assigned PnP Vendor IDs? > I have a noname PnP ISA NIC that does not work. There is no "official" list (at least for free access), but the "unofficial" list is here: http://www.yourvote.com/pci/ -- Matt Emmerton From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 04:06:42 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDD1416A4BF for ; Thu, 21 Aug 2003 04:06:42 -0700 (PDT) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2B9043F93 for ; Thu, 21 Aug 2003 04:06:40 -0700 (PDT) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82])h7LB6Uel040629; Thu, 21 Aug 2003 19:06:30 +0800 (KRAST) (envelope-from eugen@kuzbass.ru) Message-ID: <3F44A781.8AEEAF80@kuzbass.ru> Date: Thu, 21 Aug 2003 19:05:37 +0800 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: Matthew Emmerton References: <20030821080059.GA22509@svzserv.kemerovo.su> <004b01c367d3$246b5480$1200a8c0@gsicomp.on.ca> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit cc: net@freebsd.org cc: Eugene Grosbein Subject: Re: PnP VendorID list X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 11:06:43 -0000 Matthew Emmerton wrote: > > > Where can I get list of officially assigned PnP Vendor IDs? > > I have a noname PnP ISA NIC that does not work. > > There is no "official" list (at least for free access), but the "unofficial" > list is here: http://www.yourvote.com/pci/ Hmm, I have not PCI, I have ISA PnP device. Are PCI and PnP vendor IDs related? Eugene From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 05:22:25 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F10E16A4BF for ; Thu, 21 Aug 2003 05:22:25 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 867BC43FE3 for ; Thu, 21 Aug 2003 05:22:17 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7LCM0j22819; Thu, 21 Aug 2003 09:22:00 -0300 Message-ID: <3F44B967.8090003@tcoip.com.br> Date: Thu, 21 Aug 2003 09:21:59 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Maxim Konovalov References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu> <3F43B56E.1070100@tcoip.com.br> <20030821132232.V48944@news1.macomnet.ru> In-Reply-To: <20030821132232.V48944@news1.macomnet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 12:22:25 -0000 Maxim Konovalov wrote: > [ CC: trimmed ] > > On Wed, 20 Aug 2003, 14:52-0300, Daniel C. Sobral wrote: > > [...] > >>If you get bridge to send/receive packets to/from vlan interfaces >>attached to them, I'll be forever grateful. >> >>I've been trying to configure a setup where a firewall is connected to >>redundant switches, but no solution I found could handle the vlan >>attachments. :-( > > > http://people.freebsd.org/~maxim/diff/bridge.diff > > Let me know if it helps. It didn't. The test I'm doing is the following: kldload bridge sysctl net.link.ether.bridge=1 sysctl net.link.ether.bridge_cfg="fxp1 fxp3" ifconfig fxp1 up ifconfig fxp3 up ifconfig vlan0 create ifconfig vlan0 vlan 999 vlandev fxp1 ifconfig vlan0 200.220.254.190/26 On the switch side, the port connected to fxp1 is down and the one connected to fxp3 is up. Next, I ping all around. What I see with your patch is: ARP packets received on fxp3 go to fxp1 but not vlan0. ARP packets sent through vlan0 go to fxp1 but not fxp3. This is 4.7-RELEASE. The patch did not apply cleanly, but I went through it and fixed all failed chunks. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net As of next Thursday, UNIX will be flushed in favor of TOPS-10. Please update your programs. From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 05:26:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9662916A4BF for ; Thu, 21 Aug 2003 05:26:44 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 246D143FF9 for ; Thu, 21 Aug 2003 05:26:43 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (72z9ay6d@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h7LCQMf13084336; Thu, 21 Aug 2003 16:26:22 +0400 (MSD) Date: Thu, 21 Aug 2003 16:26:21 +0400 (MSD) From: Maxim Konovalov To: "Daniel C. Sobral" In-Reply-To: <3F44B967.8090003@tcoip.com.br> Message-ID: <20030821162516.G29541@news1.macomnet.ru> References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu><20030821132232.V48944@news1.macomnet.ru> <3F44B967.8090003@tcoip.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 12:26:44 -0000 On Thu, 21 Aug 2003, 09:21-0300, Daniel C. Sobral wrote: > Maxim Konovalov wrote: > > [ CC: trimmed ] > > > > On Wed, 20 Aug 2003, 14:52-0300, Daniel C. Sobral wrote: > > > > [...] > > > >>If you get bridge to send/receive packets to/from vlan interfaces > >>attached to them, I'll be forever grateful. > >> > >>I've been trying to configure a setup where a firewall is connected to > >>redundant switches, but no solution I found could handle the vlan > >>attachments. :-( > > > > > > http://people.freebsd.org/~maxim/diff/bridge.diff > > > > Let me know if it helps. > > It didn't. > > The test I'm doing is the following: > > kldload bridge > sysctl net.link.ether.bridge=1 > sysctl net.link.ether.bridge_cfg="fxp1 fxp3" > ifconfig fxp1 up > ifconfig fxp3 up > ifconfig vlan0 create > ifconfig vlan0 vlan 999 vlandev fxp1 > ifconfig vlan0 200.220.254.190/26 sysctl net.link.ether.bridge_cfg="vlan0 fxp3" -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 05:28:30 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8A8E16A4BF for ; Thu, 21 Aug 2003 05:28:30 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57A1B43F3F for ; Thu, 21 Aug 2003 05:28:21 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7LCS8j23012; Thu, 21 Aug 2003 09:28:08 -0300 Message-ID: <3F44BAD8.5020101@tcoip.com.br> Date: Thu, 21 Aug 2003 09:28:08 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Maxim Konovalov References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu> <3F43B56E.1070100@tcoip.com.br> <20030821132232.V48944@news1.macomnet.ru> <3F44B967.8090003@tcoip.com.br> <20030821162516.G29541@news1.macomnet.ru> In-Reply-To: <20030821162516.G29541@news1.macomnet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 12:28:30 -0000 Maxim Konovalov wrote: > On Thu, 21 Aug 2003, 09:21-0300, Daniel C. Sobral wrote: > > >>Maxim Konovalov wrote: >> >>>[ CC: trimmed ] >>> >>>On Wed, 20 Aug 2003, 14:52-0300, Daniel C. Sobral wrote: >>> >>>[...] >>> >>> >>>>If you get bridge to send/receive packets to/from vlan interfaces >>>>attached to them, I'll be forever grateful. >>>> >>>>I've been trying to configure a setup where a firewall is connected to >>>>redundant switches, but no solution I found could handle the vlan >>>>attachments. :-( >>> >>> >>>http://people.freebsd.org/~maxim/diff/bridge.diff >>> >>>Let me know if it helps. >> >>It didn't. >> >>The test I'm doing is the following: >> >>kldload bridge >>sysctl net.link.ether.bridge=1 >>sysctl net.link.ether.bridge_cfg="fxp1 fxp3" >>ifconfig fxp1 up >>ifconfig fxp3 up >>ifconfig vlan0 create >>ifconfig vlan0 vlan 999 vlandev fxp1 >>ifconfig vlan0 200.220.254.190/26 > > > sysctl net.link.ether.bridge_cfg="vlan0 fxp3" That would not produce the desired results. fxp3 receive encapsulated packets. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net I want you to MEMORIZE the collected poems of EDNA ST VINCENT MILLAY ... BACKWARDS!! From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 07:25:02 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13B8916A4BF for ; Thu, 21 Aug 2003 07:25:02 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 1BA9D43FE1 for ; Thu, 21 Aug 2003 07:25:01 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 4213 invoked by uid 5013); 21 Aug 2003 14:22:01 -0000 Date: Thu, 21 Aug 2003 15:22:01 +0100 From: Bruce M Simpson To: freebsd-net@freebsd.org Message-ID: <20030821142201.GE1417@spc.org> Mail-Followup-To: Bruce M Simpson , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Organization: SPC Subject: IP_ONESBCAST and upcoming RELENG_4_9 freeze X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 14:25:02 -0000 Hi all, Does anyone have any major objections to an MFC'ing of IP_ONESBCAST which I committed yesterday before the upcoming 4.9 code freeze next Monday? If you could let me know before, say, Saturday PM BST, that would be great. Regards BMS From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 07:54:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7FD716A4BF for ; Thu, 21 Aug 2003 07:54:44 -0700 (PDT) Received: from web40609.mail.yahoo.com (web40609.mail.yahoo.com [66.218.78.146]) by mx1.FreeBSD.org (Postfix) with SMTP id 3456043FE1 for ; Thu, 21 Aug 2003 07:54:44 -0700 (PDT) (envelope-from deesto@yahoo.com) Message-ID: <20030821145444.11984.qmail@web40609.mail.yahoo.com> Received: from [143.48.14.233] by web40609.mail.yahoo.com via HTTP; Thu, 21 Aug 2003 07:54:44 PDT Date: Thu, 21 Aug 2003 07:54:44 -0700 (PDT) From: John DeStefano To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: nVidia2 chipset and on-board ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 14:54:45 -0000 Over the past few months, there have been a handful of posts regarding the lack of support in FreeBSD for on-board ethernet interfaces using the nVidia2 chipset. I have currently a network-impared machine with an Asus A7N8X motherboard, which uses this chipset. In one exchange, Mr. Bill Paul requested information from other users (which I was glad to provide) that he could pool together in order to justify a demand for related drivers. He indicated that the response was great, but I've not since noticed any further report of results and was wondering if it had gotten anywhere. I'd love to get this box on the network and on the 'Net with FreeBSD, without adding another NIC interface, which would affect the other OSes I have on this particular box (and which support this interface without trouble). Thanks, ~John __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 08:58:52 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE00916A4BF; Thu, 21 Aug 2003 08:58:52 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id C201F43FB1; Thu, 21 Aug 2003 08:58:35 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h7LFwKAk066461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Aug 2003 18:58:21 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h7LFwKo3066456; Thu, 21 Aug 2003 18:58:20 +0300 (EEST) (envelope-from ru) Date: Thu, 21 Aug 2003 18:58:20 +0300 From: Ruslan Ermilov To: ume@FreeBSD.org Message-ID: <20030821155820.GA65691@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline User-Agent: Mutt/1.5.4i cc: net@FreeBSD.org Subject: [IPsec] ipcomp in tunnel mode still broken? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 15:58:53 -0000 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there! It seems that ipcomp in the tunnel mode is still broken in at least 4.x (I cannot test it with two 5.x boxes at the moment). Can you please look into this? Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/ROwbUkv4P6juNwoRAmZIAJ420Nji1wi6fFZMrpxD6xk6rONepQCeJJOj KVI3kz30mz9p6RpoxFE0kMI= =Mqtj -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO-- From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 09:25:08 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCAC416A4C0; Thu, 21 Aug 2003 09:25:08 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A20243FD7; Thu, 21 Aug 2003 09:25:06 -0700 (PDT) (envelope-from pete@rommon.com) Received: from rommon.com (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.9/8.11.4) with ESMTP id h7LGP35L075964; Thu, 21 Aug 2003 19:25:04 +0300 (EEST) (envelope-from pete@rommon.com) Message-ID: <3F44F25F.6050409@rommon.com> Date: Thu, 21 Aug 2003 19:25:03 +0300 From: Petri Helenius Organization: ROMmon Ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030501 X-Accept-Language: English [en],Finnish [fi] MIME-Version: 1.0 To: freebsd-net@freebsd.org, freebsd-current@freebsd.org, wpaul@windriver.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: D-link DUB-E100 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 16:25:09 -0000 My D-link USB DUB-E100 adapter seems to work only for a while on recent and older 5.1-CURRENT. After that it seems to lose sight of it's PHY; Also on boots it complains about MII without any PHY! randomly, pulling and re-plugging it will eventually get it running and it works for 5-10 minutes after failing again. This happens on two different desktops and IBM X31 thinkpad I've tried so far. (all running current, oldest is about 1.5mo old, most recent two days old) It's also curious that the LINK led does not work on the adapter. axe0: read PHY failed axe0: read PHY failed axe0: read PHY failed axe0: read PHY failed axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: usb error on rx: IOERROR axe0: at uhub0 port 1 (addr 2) disconnected bmtphy0: detached miibus0: detached axe0: detached axe0: D-Link 10/100 ethernet adapter, rev 2.00/0.01, addr 2 axe0: Ethernet address: 00:40:05:90:95:5d axe0: MII without any PHY! device_probe_and_attach: axe0 attach returned 6 ugen0: D-Link 10/100 ethernet adapter, rev 2.00/0.01, addr 2 ugen0: at uhub0 port 1 (addr 2) disconnected ugen0: detached axe0: D-Link 10/100 ethernet adapter, rev 2.00/0.01, addr 2 axe0: Ethernet address: 00:40:05:90:95:5d miibus0: on axe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Pete From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 09:46:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E71516A4BF for ; Thu, 21 Aug 2003 09:46:44 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 178EF43FD7 for ; Thu, 21 Aug 2003 09:46:30 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7LGidj29680; Thu, 21 Aug 2003 13:44:39 -0300 Message-ID: <3F44F6F6.9090606@tcoip.com.br> Date: Thu, 21 Aug 2003 13:44:38 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Doug Ambrisko References: <200308210336.h7L3adqP091151@ambrisko.com> In-Reply-To: <200308210336.h7L3adqP091151@ambrisko.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Sam Leffler cc: Lars Eggert cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 16:46:44 -0000 Doug Ambrisko wrote: > Daniel C. Sobral writes: > | If you get bridge to send/receive packets to/from vlan interfaces > | attached to them, I'll be forever grateful. > | > | I've been trying to configure a setup where a firewall is connected to > | redundant switches, but no solution I found could handle the vlan > | attachments. :-( > > I assuming you are using SW VLANs then you need this. There is supposed > to be work to fix this correctly in progress but this works for > me when bridging VLANs. This didn't work for me. I don't know if I'm using SW or HW vlans. But since I can see the vlan packets with tcpdump, I tend to believe it would be SW vlans. The test I'm doing is the following: kldload bridge sysctl net.link.ether.bridge=1 sysctl net.link.ether.bridge_cfg="fxp1 fxp3" ifconfig fxp1 up ifconfig fxp3 up ifconfig vlan0 create ifconfig vlan0 vlan 999 vlandev fxp1 ifconfig vlan0 200.220.254.190/26 On the switch side, the port connected to fxp1 is down and the one connected to fxp3 is up. Next, I ping all around. What I see with your patch is: ARP packets received on fxp3 go to fxp1 but not vlan0. ARP packets sent through vlan0 go to fxp1 but not fxp3. This is 4.7-RELEASE. The patch did not apply cleanly, but I went through it and fixed all failed chunks. (yes, this is pretty much like the other message I sent -- the results were the same, but then I wondered if I hadn't made an error in one of the above steps and went back to test it again, so, in the mean time, I copied the above to the other message, adjusted, and set that reply. :) > > Doug A. > > Index: net/if_ethersubr.c > =================================================================== > RCS file: /cvs/src/sys/net/if_ethersubr.c,v > retrieving revision 1.70.2.33 > diff -c -r1.70.2.33 if_ethersubr.c > *** net/if_ethersubr.c 28 Apr 2003 15:45:53 -0000 1.70.2.33 > --- net/if_ethersubr.c 21 Aug 2003 03:31:09 -0000 > *************** > *** 667,674 **** > && bcmp(eh->ether_dhost, > IFP2AC(ifp)->ac_enaddr, ETHER_ADDR_LEN) != 0 > && (ifp->if_ipending & IFF_PPROMISC) == 0) { > ! m_freem(m); > ! return; > } > > /* Discard packet if interface is not up */ > --- 667,681 ---- > && bcmp(eh->ether_dhost, > IFP2AC(ifp)->ac_enaddr, ETHER_ADDR_LEN) != 0 > && (ifp->if_ipending & IFF_PPROMISC) == 0) { > ! /* > ! * Let VLAN packets go to the SW VLAN node needed for > ! * bridging > ! */ > ! if (! (ntohs(eh->ether_type) == ETHERTYPE_VLAN > ! && vlan_input_p != NULL)) { > ! m_freem(m); > ! return; > ! } > } > > /* Discard packet if interface is not up */ -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net "man hier" will explain the way FreeBSD filesystems are normally laid out. -- David Scheidt From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 10:13:17 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EBA616A4BF for ; Thu, 21 Aug 2003 10:13:17 -0700 (PDT) Received: from www.ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63D6A43FCB for ; Thu, 21 Aug 2003 10:13:16 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.8p1/8.12.8) with ESMTP id h7LHDEf8034711; Thu, 21 Aug 2003 10:13:14 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.8p1/8.12.8/Submit) id h7LHDEwn034710; Thu, 21 Aug 2003 10:13:14 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200308211713.h7LHDEwn034710@ambrisko.com> In-Reply-To: <3F44F6F6.9090606@tcoip.com.br> To: "Daniel C. Sobral" Date: Thu, 21 Aug 2003 10:13:14 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-net@freebsd.org cc: larse@ISI.EDU Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 17:13:17 -0000 Daniel C. Sobral writes: | Doug Ambrisko wrote: | > Daniel C. Sobral writes: | > | If you get bridge to send/receive packets to/from vlan interfaces | > | attached to them, I'll be forever grateful. | > | | > | I've been trying to configure a setup where a firewall is connected to | > | redundant switches, but no solution I found could handle the vlan | > | attachments. :-( | > | > I assuming you are using SW VLANs then you need this. There is supposed | > to be work to fix this correctly in progress but this works for | > me when bridging VLANs. | | This didn't work for me. I don't know if I'm using SW or HW vlans. But | since I can see the vlan packets with tcpdump, I tend to believe it | would be SW vlans. | | The test I'm doing is the following: | | kldload bridge | sysctl net.link.ether.bridge=1 | sysctl net.link.ether.bridge_cfg="fxp1 fxp3" | ifconfig fxp1 up | ifconfig fxp3 up | ifconfig vlan0 create | ifconfig vlan0 vlan 999 vlandev fxp1 | ifconfig vlan0 200.220.254.190/26 | | On the switch side, the port connected to fxp1 is down and the one | connected to fxp3 is up. Next, I ping all around. What I see with your | patch is: | | ARP packets received on fxp3 go to fxp1 but not vlan0. | ARP packets sent through vlan0 go to fxp1 but not fxp3. | | This is 4.7-RELEASE. The patch did not apply cleanly, but I went through | it and fixed all failed chunks. | | (yes, this is pretty much like the other message I sent -- the results | were the same, but then I wondered if I hadn't made an error in one of | the above steps and went back to test it again, so, in the mean time, I | copied the above to the other message, adjusted, and set that reply. :) No my mistake ... I was thinking you were trying to bridge the traffic out of the FreeBSD vlan device. That is what my patch fixes. Sorry. For kicks you could try netgraph bridging. I found it sometimes works better. Tweak the script in /usr/share/example/netgraph. For some purposes I use bridge others I use the netgraph version. Depends on the need. FWIW I have created a vmnet iface then bridged to it. However, for it to work with netgraph you need to make it work. I use vmnet since it is persistant and I can just do an echo -n > /dev/vmnet1 to create it. Then I can do various things to it. So you could run the vlan off vmnet1 and then bridge it to the others. Doug A. Index: if_tap.c =================================================================== RCS file: /cvs/src/sys/net/if_tap.c,v retrieving revision 1.3.2.3 diff -c -r1.3.2.3 if_tap.c *** if_tap.c 14 Apr 2002 21:41:48 -0000 1.3.2.3 --- if_tap.c 22 Aug 2003 00:08:45 -0000 *************** *** 426,431 **** --- 426,432 ---- return (dummy); case SIOCSIFFLAGS: /* XXX -- just like vmnet does */ + tapifinit(tp); case SIOCADDMULTI: case SIOCDELMULTI: break; From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 10:32:37 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1FD316A4C1; Thu, 21 Aug 2003 10:32:36 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE824400B; Thu, 21 Aug 2003 10:32:25 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7LHVij30871; Thu, 21 Aug 2003 14:31:44 -0300 Message-ID: <3F4501FF.6040608@tcoip.com.br> Date: Thu, 21 Aug 2003 14:31:43 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Doug Ambrisko References: <200308211713.h7LHDEwn034710@ambrisko.com> In-Reply-To: <200308211713.h7LHDEwn034710@ambrisko.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: larse@ISI.EDU Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 17:32:37 -0000 Doug Ambrisko wrote: > | ... > | The test I'm doing is the following: > | > | kldload bridge > | sysctl net.link.ether.bridge=1 > | sysctl net.link.ether.bridge_cfg="fxp1 fxp3" > | ifconfig fxp1 up > | ifconfig fxp3 up > | ifconfig vlan0 create > | ifconfig vlan0 vlan 999 vlandev fxp1 > | ifconfig vlan0 200.220.254.190/26 > | > | On the switch side, the port connected to fxp1 is down and the one > | connected to fxp3 is up. Next, I ping all around. What I see with your > | patch is: > | > | ARP packets received on fxp3 go to fxp1 but not vlan0. > | ARP packets sent through vlan0 go to fxp1 but not fxp3. ... > > No my mistake ... I was thinking you were trying to bridge the > traffic out of the FreeBSD vlan device. That is what my patch fixes. > Sorry. > > For kicks you could try netgraph bridging. I found it sometimes works > better. Tweak the script in /usr/share/example/netgraph. For some > purposes I use bridge others I use the netgraph version. Depends on > the need. > > FWIW I have created a vmnet iface then bridged to it. However, for it > to work with netgraph you need to make it work. I use vmnet since it > is persistant and I can just do an > echo -n > /dev/vmnet1 > to create it. Then I can do various things to it. So you could run > the vlan off vmnet1 and then bridge it to the others. Err... mmmm... I don't know what a vmnet is, and "apropos" told me no tales. :-) Alas, I tried netgraph to. It suffers from about the same problem. Packets on the bridge do not go to the vlan, and packets from the vlan do not get sent to the bridged interfaces (just the attached one). I tried ng_iface, but vlan won't attach to that. Someone mentioned ng_eiface, which, from the looks of it, has potential. Unfortunately, there's no documentation on it, so I don't have any idea on how to use it. And, on the curious side, it's has been mfc in time for 4.6-RELEASE, but it still hasn't been hasn't been connected to the build. :-) I'll cc Julian in this message, see if he feels guilty or something. :-) -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt. From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 10:48:39 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1FDB16A4BF; Thu, 21 Aug 2003 10:48:38 -0700 (PDT) Received: from www.ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FCC243FBF; Thu, 21 Aug 2003 10:48:38 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.8p1/8.12.8) with ESMTP id h7LHmbf8036730; Thu, 21 Aug 2003 10:48:37 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.8p1/8.12.8/Submit) id h7LHmbw9036729; Thu, 21 Aug 2003 10:48:37 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200308211748.h7LHmbw9036729@ambrisko.com> In-Reply-To: <3F4501FF.6040608@tcoip.com.br> To: "Daniel C. Sobral" Date: Thu, 21 Aug 2003 10:48:37 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-net@freebsd.org cc: larse@ISI.EDU Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 17:48:39 -0000 Daniel C. Sobral writes: | Err... mmmm... I don't know what a vmnet is, and "apropos" told me no | tales. :-) man tap | Alas, I tried netgraph to. It suffers from about the same problem. | Packets on the bridge do not go to the vlan, and packets from the vlan | do not get sent to the bridged interfaces (just the attached one). | | I tried ng_iface, but vlan won't attach to that. | | Someone mentioned ng_eiface, which, from the looks of it, has potential. | Unfortunately, there's no documentation on it, so I don't have any idea | on how to use it. Tell, me about. I couldn't figure out how to use it so I just tie a vmnet device to it (but after 4.6 you need the tap patch) ... BTW a hint was in the patch file since the patch was to if_tap.c. a21p% uname -a FreeBSD a21p 4.8-STABLE FreeBSD 4.8-STABLE #1: Thu Aug 7 22:08:31 PDT 2003 root@a21p:/data/home/ambrisko/stable/usr/src/sys/compile/THINK i386 a21p% man ng_eiface No manual entry for ng_eiface a21p% Doug A. From owner-freebsd-net@FreeBSD.ORG Thu Aug 21 17:18:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 171B116A4BF for ; Thu, 21 Aug 2003 17:18:43 -0700 (PDT) Received: from tomts23-srv.bellnexxia.net (tomts23.bellnexxia.net [209.226.175.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2940243FDF for ; Thu, 21 Aug 2003 17:18:42 -0700 (PDT) (envelope-from matt@compar.com) Received: from hermes ([65.95.185.143]) by tomts23-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030822001839.QDZV26593.tomts23-srv.bellnexxia.net@hermes>; Thu, 21 Aug 2003 20:18:39 -0400 Message-ID: <003701c36842$ad04a980$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Eugene Grosbein" References: <20030821080059.GA22509@svzserv.kemerovo.su><004b01c367d3$246b5480$1200a8c0@gsicomp.on.ca> <3F44A781.8AEEAF80@kuzbass.ru> Date: Thu, 21 Aug 2003 20:16:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: Eugene Grosbein cc: net@freebsd.org Subject: Re: PnP VendorID list X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 00:18:43 -0000 > Matthew Emmerton wrote: > > > > > Where can I get list of officially assigned PnP Vendor IDs? > > > I have a noname PnP ISA NIC that does not work. > > > > There is no "official" list (at least for free access), but the "unofficial" > > list is here: http://www.yourvote.com/pci/ > > Hmm, I have not PCI, I have ISA PnP device. My apologies for reading your message too quickly. > Are PCI and PnP vendor IDs related? I don't know. There's a remote possibility that they might be, but that would be "too easy". -- Matt Emmerton From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 00:11:47 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0DD916A4BF for ; Fri, 22 Aug 2003 00:11:46 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 8060343FAF for ; Fri, 22 Aug 2003 00:11:45 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 16084 invoked by uid 5013); 22 Aug 2003 07:08:44 -0000 Date: Fri, 22 Aug 2003 08:08:44 +0100 From: Bruce M Simpson To: Wes Peters Message-ID: <20030822070844.GF1417@spc.org> Mail-Followup-To: Bruce M Simpson , Wes Peters , freebsd-net@freebsd.org References: <20030821142201.GE1417@spc.org> <200308212235.03055.wes@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308212235.03055.wes@softweyr.com> User-Agent: Mutt/1.4.1i Organization: SPC cc: freebsd-net@freebsd.org Subject: Re: IP_ONESBCAST and upcoming RELENG_4_9 freeze X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 07:11:47 -0000 On Thu, Aug 21, 2003 at 10:35:03PM -0700, Wes Peters wrote: > Your change makes it so that broadcasts sent to 255.255.255.255 will > be transmitted on all interfaces marked with a ONES_BCAST flag, right? It really is a very simple addition. It's a protocol-level socket option, so doesn't interfere with the legacy behaviour unless processes specifically request it, but that's about the gist of it. It is an identical API to that documented by Stevens in "UNIX Network Programming" and present in BSD/OS from 4.x onwards. Ours is slightly more complete in that it will heed the option for a raw IP socket without IP_HDRINCL. It is less obfuscated due to our delayed checksumming than the BSD/OS code. > A nice solution to the problem; I was gonna hack it so such packets > were sent on all interfaces with IFF_BROADCAST. I like your solution > better. I'm happy to know that will be in 5.2 and I have PR or two > to assign over to you so you can close them. ;^) No problemo. Will do. BMS From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 04:19:39 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0786116A4BF for ; Fri, 22 Aug 2003 04:19:39 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BEF443FB1 for ; Fri, 22 Aug 2003 04:19:37 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 18686 invoked by uid 5013); 22 Aug 2003 11:16:36 -0000 Date: Fri, 22 Aug 2003 12:16:36 +0100 From: Bruce M Simpson To: freebsd-net@freebsd.org Message-ID: <20030822111636.GG1417@spc.org> Mail-Followup-To: Bruce M Simpson , freebsd-net@freebsd.org, fenner@freebsd.org, wes@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Organization: SPC cc: fenner@freebsd.org cc: wes@freebsd.org Subject: Receiving INADDR_BROADCAST packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 11:19:39 -0000 Hi all, Ok, the broadcast sending problem is solved, as far as I'm concerned. However, the reception problem isn't: 14766 broadcast/multicast datagrams dropped due to no socket This despite: wi0: flags=8843 mtu 1500 inet 1.234.56.78 netmask 0xff000000 broadcast 1.255.255.255 udp4 0 0 1.234.56.78.654 *.* I can: a) patch udp_input() to pass INADDR_BROADCAST traffic to all sockets bound to the port and on the interface where the traffic was received. Possibly conditionalise this interface based on a socket-level option. e.g. 'Yes, I'm an interface-bound socket and I'd like undirected broadcasts on my interface thankyou very much'. This would be done in such a way which was 'opt-in' and didn't impact existing applications. b) preserve the existing 4.2BSD kludge of binding to INADDR_ANY and not knowing what interface an undirected broadcast came in on. c) same as b) but use IP_RECVIF to determine which interface the broadcast came in on, and change my network event dispatch code accordingly. d) use a SOCK_RAW socket. e) use BPF. b), d), e) are not solutions. They are cop-outs. Please don't suggest them. Really. I note that Apple are using IP_RECVIF in their mDNS code. The problem there is not the same (they're dealing with multicasts), but similar. I already cache the interface index in my internal RIB and track RTM_IFINFO, RTM_IFANNOUNCE events, so this isn't too big a hit (the fact that this ioctl provides an index, not a name). I'm going to go with solution c) for now, but has anyone considered a)? (Little choice really, we have a code freeze coming up, and I'd like my code to run unchanged on 4.9-RELEASE). BMS From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 05:22:23 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDC3B16A4C0 for ; Fri, 22 Aug 2003 05:22:23 -0700 (PDT) Received: from web40609.mail.yahoo.com (web40609.mail.yahoo.com [66.218.78.146]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D1B343FB1 for ; Fri, 22 Aug 2003 05:22:22 -0700 (PDT) (envelope-from pjn0211@yahoo.com) Message-ID: <20030822122222.6293.qmail@web40609.mail.yahoo.com> Received: from [202.183.248.166] by web40609.mail.yahoo.com via HTTP; Fri, 22 Aug 2003 13:22:22 BST Date: Fri, 22 Aug 2003 13:22:22 +0100 (BST) From: =?iso-8859-1?q?Supote=20Leelasupphakorn?= To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-isp@freebsd.org cc: freebsd-net@freebsd.org Subject: How can I subnetting my network ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 12:22:24 -0000 Hi, all I want to build a network as shown below. All devices is in my responsibity except the upsteam router. My question is If I will assign public IP address to all interfaces, is it neccessary that I must inform the upstream router's administrator to add my subnet in routing table of upstream router ? Or any comments are welcome. |-------------| | Upstream | | router | | or | | gateway | |-------------| | | |-------------| | FreeBSD | | firewall | |-------------| | | |-----------------| | switching hub | |-----------------| | | | | |--------| |--------| | client | | client | |--------| |--------| Thanks in advance, Pote ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 05:33:00 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD5316A4BF; Fri, 22 Aug 2003 05:33:00 -0700 (PDT) Received: from pop018.verizon.net (pop018pub.verizon.net [206.46.170.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 217B943FA3; Fri, 22 Aug 2003 05:32:59 -0700 (PDT) (envelope-from mike@pcmedx.com) Received: from duron.pcmedx.com ([4.46.1.67]) by pop018.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030822123258.ZXMW11703.pop018.verizon.net@duron.pcmedx.com>; Fri, 22 Aug 2003 07:32:58 -0500 Received: from localhost (localhost [127.0.0.1]) by duron.pcmedx.com (Postfix) with ESMTP id 8B515AACD; Fri, 22 Aug 2003 05:32:57 -0700 (PDT) Received: from mike (mike.pcmedx.com [192.168.240.244]) by duron.pcmedx.com (Postfix) with SMTP id E706CAA39; Fri, 22 Aug 2003 05:32:56 -0700 (PDT) Message-ID: <001201c368a9$8960f3a0$f4f0a8c0@pcmedx.com> From: "Mike Maltese" To: References: <20030822122222.6293.qmail@web40609.mail.yahoo.com> Date: Fri, 22 Aug 2003 05:33:05 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd (http://www.amavis.org) and f-prot (http://www.f-prot.com) at pcmedx.com X-Authentication-Info: Submitted using SMTP AUTH at pop018.verizon.net from [4.46.1.67] at Fri, 22 Aug 2003 07:32:58 -0500 cc: freebsd-net@freebsd.org cc: Supote Leelasupphakorn Subject: Re: How can I subnetting my network ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 12:33:00 -0000 > I want to build a network as shown below. > All devices is in my responsibity except the > upsteam router. My question is > > If I will assign public IP address to all > interfaces, is it neccessary that I must > inform the upstream router's administrator > to add my subnet in routing table of upstream > router ? Have a look here: http://ezine.daemonnews.org/200211/ipfilter-bridge.html From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 06:19:01 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30CBB16A4BF; Fri, 22 Aug 2003 06:19:01 -0700 (PDT) Received: from linux.research.att.com (H-135-207-24-16.research.att.com [135.207.24.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72B9543FE5; Fri, 22 Aug 2003 06:18:59 -0700 (PDT) (envelope-from fenner@research.att.com) Received: from unixmail.research.att.com (unixmail.research.att.com [135.207.26.71])h7MDKoWC014861; Fri, 22 Aug 2003 09:20:50 -0400 Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46])h7MDI8Zn028942; Fri, 22 Aug 2003 09:18:08 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.11.6+Sun/8.8.5) id h7MDIwW24087; Fri, 22 Aug 2003 06:18:58 -0700 (PDT) Message-Id: <200308221318.h7MDIwW24087@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: bms@spc.org Date: Fri, 22 Aug 2003 06:18:57 -0700 Versions: dmail (solaris) 2.5a/makemail 2.9d cc: freebsd-net@freebsd.org cc: wes@freebsd.org Subject: Re: Receiving INADDR_BROADCAST packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 13:19:01 -0000 I think c) (perhaps combined with IP_RECVDSTADDR so that you know whether you got a unicast or broadcast) is the correct answer. I think binding UDP sockets to tell what interface/address was the destination is a historical artifact. Bill From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 06:58:22 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D54EA16A4BF for ; Fri, 22 Aug 2003 06:58:22 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95C3043F75 for ; Fri, 22 Aug 2003 06:58:11 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h7MDvhj27614; Fri, 22 Aug 2003 10:57:44 -0300 Message-ID: <3F462156.2020809@tcoip.com.br> Date: Fri, 22 Aug 2003 10:57:42 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Maxim Konovalov References: <510776858.1061372094@melange.errno.com> <3F43AFFD.6080504@isi.edu> <3F43B56E.1070100@tcoip.com.br> <20030821132232.V48944@news1.macomnet.ru> In-Reply-To: <20030821132232.V48944@news1.macomnet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: CFR: bridge locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 13:58:23 -0000 Maxim Konovalov wrote: > [ CC: trimmed ] > > On Wed, 20 Aug 2003, 14:52-0300, Daniel C. Sobral wrote: > > [...] > >>If you get bridge to send/receive packets to/from vlan interfaces >>attached to them, I'll be forever grateful. >> >>I've been trying to configure a setup where a firewall is connected to >>redundant switches, but no solution I found could handle the vlan >>attachments. :-( > > > http://people.freebsd.org/~maxim/diff/bridge.diff > > Let me know if it helps. Actually, this *did* help with something else. ifconfig fxp1 up ifconfig fxp3 up ifconfig vlan0 create ifconfig vlan1 create ifconfig vlan0 vlan 999 vlandev fxp1 ifconfig vlan1 vlan 999 vlandev fxp3 ifconfig vlan0 200.220.254.190/26 ifconfig vlan1 up sysctl net.link.ether.bridge=1 sysctl net.link.ether.bridge_cfg="vlan0 vlan1" Link to fxp1 down, link to fxp3 up. Without this patch, pings to and from 200.220.254.190 won't work. With your patch, they do. Thanks. This was tested on a FreeBSD 4.7. The patch did not apply cleanly, and required removal of a couple of lines (because "verbose", removed in the patch, is used in one place), but both these things were easily done. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Telling the truth to people who misunderstand you is generally promoting a falsehood, isn't it? -- A. Hope From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 10:55:25 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2A3116A4BF; Fri, 22 Aug 2003 10:55:25 -0700 (PDT) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D155243F3F; Fri, 22 Aug 2003 10:55:24 -0700 (PDT) (envelope-from mike@sentex.net) Received: from BLUELAPIS.sentex.ca ([192.168.43.170]) by lava.sentex.ca (8.12.9/8.12.8) with SMTP id h7MHtNFa044123; Fri, 22 Aug 2003 13:55:23 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: Ruslan Ermilov Date: Fri, 22 Aug 2003 13:55:25 -0400 Message-ID: References: In-Reply-To: X-Mailer: Forte Free Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: By Sentex Communications (lava/20020517) cc: freebsd-net@freebsd.org Subject: Re: [IPsec] ipcomp in tunnel mode still broken? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 17:55:26 -0000 Hi, what is the config you are using to test this ? IPSEC ? =46AST_IPSEC ? type of keying ? ---Mike On Thu, 21 Aug 2003 18:58:20 +0300, in sentex.lists.freebsd.net you wrote: >Hi there! > >It seems that ipcomp in the tunnel mode is still broken in at >least 4.x (I cannot test it with two 5.x boxes at the moment). >Can you please look into this? > > >Cheers, From owner-freebsd-net@FreeBSD.ORG Fri Aug 22 11:33:24 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3609E16A4C2 for ; Fri, 22 Aug 2003 11:33:24 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 3D5D743FE1 for ; Fri, 22 Aug 2003 11:33:22 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 23310 invoked by uid 5013); 22 Aug 2003 18:30:18 -0000 Date: Fri, 22 Aug 2003 19:30:18 +0100 From: Bruce M Simpson To: Bill Fenner Message-ID: <20030822183018.GH1417@spc.org> Mail-Followup-To: Bruce M Simpson , Bill Fenner , freebsd-net@freebsd.org, wes@freebsd.org References: <200308221318.h7MDIwW24087@windsor.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308221318.h7MDIwW24087@windsor.research.att.com> User-Agent: Mutt/1.4.1i Organization: SPC cc: freebsd-net@freebsd.org cc: wes@freebsd.org Subject: Re: Receiving INADDR_BROADCAST packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 18:33:24 -0000 On Fri, Aug 22, 2003 at 06:18:57AM -0700, Bill Fenner wrote: > I think c) (perhaps combined with IP_RECVDSTADDR so that you know > whether you got a unicast or broadcast) is the correct answer. > I think binding UDP sockets to tell what interface/address was > the destination is a historical artifact. I've implemented the fix you've suggested. Thanks! I probably wouldn't need to bind sockets to each interface if I were doing purely broadcast traffic. I'm happy with what works for the time being, however; I may revisit this if I ever implement IPv6 support for the daemon I'm currently hacking. IP_ONESBCAST has saved a lot of trouble for me. Regards, BMS From owner-freebsd-net@FreeBSD.ORG Sat Aug 23 03:05:41 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BDA716A4BF; Sat, 23 Aug 2003 03:05:41 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E0C843FE9; Sat, 23 Aug 2003 03:05:34 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h7NA5NAk081350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Aug 2003 13:05:23 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h7NA5MMt081345; Sat, 23 Aug 2003 13:05:22 +0300 (EEST) (envelope-from ru) Date: Sat, 23 Aug 2003 13:05:22 +0300 From: Ruslan Ermilov To: Mike Tancsa Message-ID: <20030823100522.GA80252@sunbay.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: freebsd-net@freebsd.org cc: Sam Leffler Subject: Re: [IPsec] ipcomp in tunnel mode still broken? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 10:05:41 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 22, 2003 at 01:55:25PM -0400, Mike Tancsa wrote: > On Thu, 21 Aug 2003 18:58:20 +0300, in sentex.lists.freebsd.net you > wrote: >=20 > >Hi there! > > > >It seems that ipcomp in the tunnel mode is still broken in at > >least 4.x (I cannot test it with two 5.x boxes at the moment). > >Can you please look into this? >=20 > Hi, what is the config you are using to test this ? IPSEC ? > FAST_IPSEC ? >=20 IPSEC in tunnel mode, with or without ESP; fast_ipsec(4) is documented not to work with IPcomp at the moment. > type of keying ? >=20 Manual, but keying doesn't have to do anything with compression. If you (magically) have it working, I'd be grateful for an example config. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/RzxiUkv4P6juNwoRAiwBAJ42DFAnvEplU01daCZyeFng24nHDQCghwQ9 cq+dK7fkH8xzDXFGU0YzCQk= =8xFw -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--