From owner-freebsd-net@FreeBSD.ORG Mon Aug 22 11:02:20 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 052F916A44A for ; Mon, 22 Aug 2005 11:02:20 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DABF43D48 for ; Mon, 22 Aug 2005 11:02:19 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7MB2Igh036917 for ; Mon, 22 Aug 2005 11:02:18 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7MB2IEu036911 for freebsd-net@freebsd.org; Mon, 22 Aug 2005 11:02:18 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 22 Aug 2005 11:02:18 GMT Message-Id: <200508221102.j7MB2IEu036911@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 Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 22 Aug 2005 11:02:20 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/11] kern/54383 net [nfs] [patch] NFS root configurations wit 1 problem total. From owner-freebsd-net@FreeBSD.ORG Mon Aug 22 16:24:58 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 D995116A41F for ; Mon, 22 Aug 2005 16:24:58 +0000 (GMT) (envelope-from paul@distributel.net) Received: from smtp.distributel.net (cns2.distributel.NET [66.38.181.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F3E443D46 for ; Mon, 22 Aug 2005 16:24:57 +0000 (GMT) (envelope-from paul@distributel.net) Received: from localhost (localhost [127.0.0.1]) by smtp.distributel.net (8.12.6/8.12.6) with ESMTP id j7MGOpCi050877; Mon, 22 Aug 2005 12:24:51 -0400 (EDT) Date: Mon, 22 Aug 2005 12:24:51 -0400 (EDT) From: Paul Khavkine X-X-Sender: paul@krusty.mtl.distributel.net To: Julian Elischer In-Reply-To: <4306BFFB.8060307@elischer.org> Message-ID: <20050822122049.T50220-100000@krusty.mtl.distributel.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: Reading raw ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 22 Aug 2005 16:24:59 -0000 Julian. >>>You should probably look at the ng_etf node too BTW. >> >> >> How does ng_etf deal with that ? > >no, but as an example of something that is designed to be attached directly >to the ng_ether nodes. in ng_etf, do you check ethertype for only Ethernet II frames ? or also 802.3 frames ? Thanx Paul > > >> >_______________________________________________ >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" > ************************************************ Paul Khavkine Networks/Systems Planning and Engineering DISTRIBUTEL Communications. 740 Notre Dame West, Suite 1135 Montreal, Quebec, Canada, H3C 3X6 +1-514-877-5505 x 263 http://www.distributel.net ************************************************ From owner-freebsd-net@FreeBSD.ORG Mon Aug 22 22:39:55 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 EBA3716A41F for ; Mon, 22 Aug 2005 22:39:55 +0000 (GMT) (envelope-from peter@dataloss.nl) Received: from useful.dataloss.nl (useful.dataloss.nl [80.84.249.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 391D343D45 for ; Mon, 22 Aug 2005 22:39:54 +0000 (GMT) (envelope-from peter@dataloss.nl) Received: (qmail 64967 invoked by uid 1001); 22 Aug 2005 22:39:53 -0000 Date: Tue, 23 Aug 2005 00:39:53 +0200 From: Peter van Dijk To: freebsd-net@freebsd.org Message-ID: <20050822223952.GA62234@dataloss.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Cc: freebsd-current@freebsd.org Subject: freebsd 6-beta2, pf, route-to, checksum errors X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 22 Aug 2005 22:39:56 -0000 Hi, I recently upgraded my FreeBSD/sparc64 5.4 router at home to 6-BETA2, without changing pf.conf. Since this upgrade, UDP packets redirected with pf's route-to feature get the wrong checksum. My complete ruleset: root@onion# grep -v ^# /etc/pf.conf ext_if="hme0" # replace with actual external interface name i.e., dc0 int_if="vlan2" # replace with actual internal interface name i.e., dc1 virtix_if="vlan4" # replace with actual internal interface name i.e., dc1 scrub in all nat on $ext_if from $int_if:network to any -> ($ext_if) nat on $virtix_if from $int_if:network to any -> ($virtix_if) pass out on $ext_if route-to ( $virtix_if 195.16.85.169 ) from $virtix_if:network to any ifconfig snippets to understand :network above: vlan2: flags=8843 mtu 1500 inet 172.16.13.32 netmask 0xffffff00 broadcast 172.16.13.255 vlan4: flags=8843 mtu 1500 inet 195.16.85.170 netmask 0xfffffff8 broadcast 195.16.85.175 tcpdump output of a broken DNS request: onion# tcpdump -n -i vlan4 -s 0 -v port 53 tcpdump: listening on vlan4, link-type EN10MB (Ethernet), capture size 65535 bytes 00:28:37.762481 IP (tos 0x0, ttl 56, id 0, offset 0, flags [DF], proto: UDP (17), length: 68) 83.160.178.78.32812 > 195.16.85.170.53: 31240+ A? onion.home.dataloss.nl. (40) 00:28:37.765844 IP (tos 0x0, ttl 64, id 37505, offset 0, flags [none], proto: UDP (17), length: 117, bad cksum 86f (->c94d)!) 195.16.85.170.53 > 83.160.178.78.32812: 31240*- 1/1/1 onion.home.dataloss.nl. A 195.16.85.170 (89) Note the 'bad cksum'. When I set a route to this client IP (83.160.178.78), thereby never matching the relevant pf rule, the packet is fine and the answer arrives: 00:29:57.498780 IP (tos 0x0, ttl 64, id 38175, offset 0, flags [none], proto: UDP (17), length: 117) 195.16.85.170.53 > 83.160.178.78.32812: 33831*- 1/1/1 onion.home.dataloss.nl. A 195.16.85.170 (89) Am I doing something wrong, did I miss a notice in upgrading, or have I uncovered a bug? Thank you for your time. Cheers, Peter -- peter@dataloss.nl | ~ tonight tonight, what is this potion http://blog.dataloss.nl/ | ~ that makes a fool of me UnderNet/#clue | Wayfinder, fr-025 soundtrack From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 02:38:23 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 F214116A41F; Tue, 23 Aug 2005 02:38:22 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: from rusunix.org (rusunix.org [212.118.165.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DD4943D48; Tue, 23 Aug 2005 02:38:20 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: by rusunix.org (Postfix, from userid 1111) id B0F3922802E; Tue, 23 Aug 2005 04:35:54 +0200 (CEST) To: FreeBSD-gnats-submit@freebsd.org From: Evgueni V. Gavrilov X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20050823023554.B0F3922802E@rusunix.org> Date: Tue, 23 Aug 2005 04:35:54 +0200 (CEST) Cc: freebsd-current@FreeBSD.org, wpaul@FreeBSD.org, glebius@FreeBSD.org, freebsd-net@FreeBSD.org Subject: assigning an address to ng_fec(4) iface causes panic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Evgueni V. Gavrilov" List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 02:38:23 -0000 >Submitter-Id: current-users >Originator: Evgueni V. Gavrilov >Organization: rusunix.org >Confidential: no >Synopsis: assigning an address to ng_fec(4) iface causes panic >Severity: serious >Priority: medium >Category: kern >Class: sw-bug >Release: FreeBSD 6.0-BETA3 i386 >Environment: System: FreeBSD blackbird.opsb 6.0-BETA3 FreeBSD 6.0-BETA2 #0: Sun Aug 22 14:42:49 OMSST 2005 root@blackbird.opsb:/usr/obj/usr/src/sys/BLACKBIRD6 i386 >Description: assigning an address to ng_fec(4) iface causes panic during dumping to dumpdev another panic occurs preventing to identify the source of the first panic and having the crash dump ng_iface creation sequence: mkpeer fec dummy fec msg fec0: add_iface "em0" msg fec0: add_iface "em1" msg fec0: set_mode_mac >How-To-Repeat: create ng_fec node/iface, assign an address to it >Fix: wish I knew... From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 03:04:08 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 D1EEF16A41F for ; Tue, 23 Aug 2005 03:04:08 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 775DF43D45 for ; Tue, 23 Aug 2005 03:04:08 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 61F618B87; Mon, 22 Aug 2005 20:04:08 -0700 (PDT) Received: from [192.168.2.2] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j7N347X5074612; Mon, 22 Aug 2005 20:04:07 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <430A9226.3050600@elischer.org> Date: Mon, 22 Aug 2005 20:04:06 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: Paul Khavkine References: <20050822122049.T50220-100000@krusty.mtl.distributel.net> In-Reply-To: <20050822122049.T50220-100000@krusty.mtl.distributel.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Reading raw ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 03:04:08 -0000 Paul Khavkine wrote: > Julian. > > >>>>You should probably look at the ng_etf node too BTW. >>> >>> >>>How does ng_etf deal with that ? >> >>no, but as an example of something that is designed to be attached directly >>to the ng_ether nodes. > > > in ng_etf, do you check ethertype for only Ethernet II frames ? or also > 802.3 frames ? only ethertype, but it would probably only take you about 3 hours to add in the other.. > > > Thanx > Paul > > >> >>_______________________________________________ >>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" >> > > > ************************************************ > Paul Khavkine > Networks/Systems Planning and Engineering > DISTRIBUTEL Communications. > 740 Notre Dame West, Suite 1135 > Montreal, Quebec, Canada, H3C 3X6 > +1-514-877-5505 x 263 > http://www.distributel.net > ************************************************ From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 03:24:12 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 5EC3F16A41F for ; Tue, 23 Aug 2005 03:24:12 +0000 (GMT) (envelope-from paul@distributel.net) Received: from smtp.distributel.net (cns2.distributel.NET [66.38.181.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 072BE43D45 for ; Tue, 23 Aug 2005 03:24:11 +0000 (GMT) (envelope-from paul@distributel.net) Received: from localhost (localhost [127.0.0.1]) by smtp.distributel.net (8.12.6/8.12.6) with ESMTP id j7N3O8Ci035204; Mon, 22 Aug 2005 23:24:08 -0400 (EDT) Date: Mon, 22 Aug 2005 23:24:08 -0400 (EDT) From: Paul Khavkine X-X-Sender: paul@krusty.mtl.distributel.net To: Julian Elischer In-Reply-To: <430A9226.3050600@elischer.org> Message-ID: <20050822232032.L34978-100000@krusty.mtl.distributel.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: Reading raw ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 03:24:12 -0000 On Mon, 22 Aug 2005, Julian Elischer wrote: >Paul Khavkine wrote: >> Julian. >> >> >>>>>You should probably look at the ng_etf node too BTW. >>>> >>>> >>>>How does ng_etf deal with that ? >>> >>>no, but as an example of something that is designed to be attached directly >>>to the ng_ether nodes. >> >> >> in ng_etf, do you check ethertype for only Ethernet II frames ? or also >> 802.3 frames ? > >only ethertype, but it would probably only take you about 3 hours to add in >the other.. 30 min, haven't tested it yet though, still trying to figure out the netgraph library. Will send you the code when i have a chance to test it if you want. Cheers Paul > >> >> >> Thanx >> Paul >> >> >>> >>>_______________________________________________ >>>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" >>> >> >> >> ************************************************ >> Paul Khavkine >> Networks/Systems Planning and Engineering >> DISTRIBUTEL Communications. >> 740 Notre Dame West, Suite 1135 >> Montreal, Quebec, Canada, H3C 3X6 >> +1-514-877-5505 x 263 >> http://www.distributel.net >> ************************************************ > > ************************************************ Paul Khavkine Networks/Systems Planning and Engineering DISTRIBUTEL Communications. 740 Notre Dame West, Suite 1135 Montreal, Quebec, Canada, H3C 3X6 +1-514-877-5505 x 263 http://www.distributel.net ************************************************ From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 03:31:40 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 470C816A41F for ; Tue, 23 Aug 2005 03:31:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BEC243D46 for ; Tue, 23 Aug 2005 03:31:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id E7A211F7B72; Mon, 22 Aug 2005 20:31:39 -0700 (PDT) Received: from [192.168.2.2] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j7N3Va87009334; Mon, 22 Aug 2005 20:31:37 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <430A9898.7080709@elischer.org> Date: Mon, 22 Aug 2005 20:31:36 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: Paul Khavkine References: <20050822232032.L34978-100000@krusty.mtl.distributel.net> In-Reply-To: <20050822232032.L34978-100000@krusty.mtl.distributel.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Reading raw ethernet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 03:31:40 -0000 Paul Khavkine wrote: > On Mon, 22 Aug 2005, Julian Elischer wrote: > > >>Paul Khavkine wrote: >> >>>Julian. >>> >>> >>> >>>>>>You should probably look at the ng_etf node too BTW. >>>>> >>>>> >>>>>How does ng_etf deal with that ? >>>> >>>>no, but as an example of something that is designed to be attached directly >>>>to the ng_ether nodes. >>> >>> >>>in ng_etf, do you check ethertype for only Ethernet II frames ? or also >>>802.3 frames ? >> >>only ethertype, but it would probably only take you about 3 hours to add in >>the other.. > > > 30 min, haven't tested it yet though, still trying to figure out the > netgraph library. I was including testing and learning :-) The library shouldn't be needed unless you want to control it from a C program. you should be able to do anything that needs to be done from ngctl. > > Will send you the code when i have a chance to test it if you want. > > > C From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 03:50:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 24A0216A41F; Tue, 23 Aug 2005 03:50:16 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from dmzraw4.extranet.tce.com (dmzraw4.extranet.tce.com [157.254.234.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7696843D48; Tue, 23 Aug 2005 03:50:15 +0000 (GMT) (envelope-from david.mao@thomson.net) Received: from indyvss4.am.thmulti.com (unknown [157.254.92.63]) by dmzraw4.extranet.tce.com (Postfix) with ESMTP id CAD67AE8; Tue, 23 Aug 2005 03:50:14 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by indyvss4.am.thmulti.com (Postfix) with ESMTP id 4EB791DB8D; Tue, 23 Aug 2005 03:48:00 +0000 (GMT) Received: from indyvss4.am.thmulti.com ([127.0.0.1]) by localhost (indyvss4 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25052-01-54; Tue, 23 Aug 2005 03:47:58 +0000 (GMT) Received: from smtprelay2.indy.tce.com (smtprelay2.indy.tce.com [157.254.96.95]) by indyvss4.am.thmulti.com (Postfix) with ESMTP id 5DE4D1DB97; Tue, 23 Aug 2005 03:47:58 +0000 (GMT) Received: from boulsmailbh02.eu.thmulti.com (localhost [127.0.0.1]) by smtprelay2.indy.tce.com (8.12.9/8.12.8) with ESMTP id j7N3oAgt026822; Tue, 23 Aug 2005 03:50:11 GMT Received: from tahksmail02.ap.thmulti.com ([141.11.12.26]) by boulsmailbh02.eu.thmulti.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 23 Aug 2005 05:50:10 +0200 Received: from tahksmail01.ap.thmulti.com ([141.11.13.38]) by tahksmail02.ap.thmulti.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 23 Aug 2005 11:49:59 +0800 Received: from bjngsmail01.ap.thmulti.com ([10.11.70.35]) by tahksmail01.ap.thmulti.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 23 Aug 2005 11:49:58 +0800 content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Date: Tue, 23 Aug 2005 11:49:56 +0800 Message-ID: <31021C278A7A6B4AB95E9A085C3552180FF7C5@bjngsmail01> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: polling in 4.11 vs 5.4 Thread-Index: AcWnlbkoaz+XPRoeTBeeCJZ2nOm7kQ== From: "Mao Shou Yan" To: , X-OriginalArrivalTime: 23 Aug 2005 03:49:58.0717 (UTC) FILETIME=[BB791ED0:01C5A795] X-Virus-Scanned: amavisd-new at thomson.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: polling in 4.11 vs 5.4 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 03:50:16 -0000 Hi, everybody, =20 I hope this is the right place that I post to! =20 When I enabled polling in 5.4 and 4.11, I found that CPU load in 5.4 is much higher than 4.11. For example, suppose HZ is 5000, in 5.4 the idle CPU is about 87%, but in 4.11, the idle CPU is about 99.9%. Is this right? Or the statistic is wrong in 4.11? BTW, ACPI is disabled under 5.4. BTW, I found that context switch in 5.4 is much higher than 5.4 while enabling polling. (Using systat -vmstat 1) I'm looking forward your reply. Any response is welcome! =20 =20 =20 David.Mao =20 =20 From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 11:26:30 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 AE15B16A41F; Tue, 23 Aug 2005 11:26:30 +0000 (GMT) (envelope-from _pppp@mail.ru) Received: from f31.mail.ru (f31.mail.ru [194.67.57.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B08F43D45; Tue, 23 Aug 2005 11:26:30 +0000 (GMT) (envelope-from _pppp@mail.ru) Received: from mail by f31.mail.ru with local id 1E7WvD-000LZD-00; Tue, 23 Aug 2005 15:26:27 +0400 Received: from [212.5.170.174] by win.mail.ru with HTTP; Tue, 23 Aug 2005 15:26:27 +0400 From: dima <_pppp@mail.ru> To: Mao Shou Yan Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [212.5.170.174] Date: Tue, 23 Aug 2005 15:26:27 +0400 In-Reply-To: <31021C278A7A6B4AB95E9A085C3552180FF7C5@bjngsmail01> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: polling in 4.11 vs 5.4 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dima <_pppp@mail.ru> List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 11:26:30 -0000 > I hope this is the right place that I post to! > > > > When I enabled polling in 5.4 and 4.11, I found that CPU load > in 5.4 is much higher than 4.11. For example, suppose HZ is 5000, in 5.4 > the idle CPU is about 87%, but in 4.11, the idle CPU is about 99.9%. Is > this right? Or the statistic is wrong in 4.11? > > BTW, ACPI is disabled under 5.4. > > BTW, I found that context switch in 5.4 is much higher than 5.4 while > enabling polling. (Using systat -vmstat 1) > > I'm looking forward your reply. The polling code hasn't been changed since 4.11. I've posted a patch to resolve giant lock issue in it, but it wasn't merged. I don't have enough time by now to rewrite it according the opinions mentioned. But the cost of context switch is definitely higher on 5.x HZ == 5000 is too much i think. 1000 is quite enough for network-intensive applications. > > Any response is welcome! From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 16:56:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 6465916A41F for ; Tue, 23 Aug 2005 16:56:16 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from mx2-out.seton.org (mx2-out.seton.org [65.118.63.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8E7343D46 for ; Tue, 23 Aug 2005 16:56:15 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from localhost (unknown [127.0.0.1]) by mx2-out.seton.org (Postfix) with ESMTP id 6D267FB0 for ; Tue, 23 Aug 2005 11:56:14 -0500 (CDT) Received: from mx2-out.seton.org ([10.21.254.241]) by localhost (mx2 [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 32506-01 for ; Tue, 23 Aug 2005 11:56:14 -0500 (CDT) Received: from ausexfe02.seton.org (unknown [10.20.10.186]) by mx2-out.seton.org (Postfix) with ESMTP id 5BD3BB01 for ; Tue, 23 Aug 2005 11:56:14 -0500 (CDT) Received: from [10.20.160.190] ([10.20.160.190]) by ausexfe02.seton.org with Microsoft SMTPSVC(6.0.3790.211); Tue, 23 Aug 2005 11:56:14 -0500 Message-ID: <430B5680.1060506@shrew.net> Date: Tue, 23 Aug 2005 12:01:52 -0500 From: Matthew Grooms User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Aug 2005 16:56:14.0242 (UTC) FILETIME=[9246F820:01C5A803] X-Virus-Scanned: by amavisd-new at seton.org Subject: odd tcpdump output w/ 6.0-BETA2 ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 16:56:16 -0000 Is anyone else seeing this issue? I get useless output from tcpdump ( no header or protocol decode ) but only when I specify a filter on the command line. For example ... root@hole# tcpdump -ne -i pflog0 src or dst www.21.com tcpdump: WARNING: BIOCPROMISC: Network is down tcpdump: WARNING: pflog0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 96 bytes 11:33:05.172950 [|pflog] 11:33:05.222612 [|pflog] ^C 2 packets captured 2 packets received by filter 0 packets dropped by kernel ... or ... root@hole# tcpdump -i xl0 src or dst www.21.com tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes 11:33:32.920031 [|ether] 11:33:35.203998 [|ether] 11:33:35.375459 [|ether] 11:33:35.555475 [|ether] 11:33:35.728465 [|ether] 11:33:36.077081 [|ether] ^C 6 packets captured 67 packets received by filter 0 packets dropped by kernel ... but with no filter ... root@hole# tcpdump -i xl0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes 11:35:15.224237 IP 66-90-165-114.dyn.grandenetworks.net.ssh > fw1.seton.org.62909: P 507679271:507679463(192) ack 1455983273 win 65535 11:35:15.342434 IP fw1.seton.org.62909 > 66-90-165-114.dyn.grandenetworks.net.ssh: . ack 192 win 63760 11:35:15.371456 arp who-has 24-155-229-142.dyn.grandenetworks.net tell 24-155-229-254.dyn.grandenetworks.net 11:35:15.374214 arp who-has 66-90-146-196.dyn.grandenetworks.net tell 66-90-147-254.dyn.grandenetworks.net 11:35:15.496867 arp who-has 24-155-108-156.dyn.grandenetworks.net tell 24-155-109-254.dyn.grandenetworks.net 11:35:15.509748 arp who-has 24-155-108-208.dyn.grandenetworks.net tell 24-155-109-254.dyn.grandenetworks.net 11:35:15.533528 arp who-has 66-90-245-22.dyn.grandenetworks.net tell 66-90-245-254.dyn.grandenetworks.net ^C11:35:15.554105 arp who-has 216-188-225-208.dyn.grandenetworks.net tell 216-188-225-254.dyn.grandenetworks.net 8 packets captured 65 packets received by filter 0 packets dropped by kernel ... I did compile a custom kernel but haven't cvsup'ed any source since it was installed from the iso. Would like to cvsup and rebuild the kernel and userland but am restricted on diskspace. Does anyone know what collections are considered minimal to sync and rebuild or do I really need to cvsup src-all? Thanks, -Matthew From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 17:09:09 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 5D1B816A429 for ; Tue, 23 Aug 2005 17:09:09 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id D07B643D46 for ; Tue, 23 Aug 2005 17:09:07 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1195158rne for ; Tue, 23 Aug 2005 10:09:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mYT/zLbUx3OLo70Ujt0Hl75OQLbUi8gN9ePRPDnc/QcdWSRVQrPUx0mcc8p0vKH6DxenrzUEYWPEvGS4PFmoHQAHeAeAvgmTVida3unJZ1Vo9BTk9GTwePbfqcYP+B2eGZiN4jPGgr0zcELQ/BdXUlKyqSErcoDHYBf8uwOXjyQ= Received: by 10.38.79.29 with SMTP id c29mr509865rnb; Tue, 23 Aug 2005 10:09:06 -0700 (PDT) Received: by 10.38.208.5 with HTTP; Tue, 23 Aug 2005 10:09:06 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 10:09:06 -0700 From: Maksim Yevmenkin To: "Evgueni V. Gavrilov" In-Reply-To: <430B57A7.1050402@savvis.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_924_4736612.1124816946869" References: <430B57A7.1050402@savvis.net> Cc: freebsd-net@FreeBSD.org, freebsd-current@freebsd.org, glebius@FreeBSD.org Subject: Re: [Fwd: assigning an address to ng_fec(4) iface causes panic] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 17:09:09 -0000 ------=_Part_924_4736612.1124816946869 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, please try the attached patch. > >Description: > assigning an address to ng_fec(4) iface causes panic > during dumping to dumpdev another panic occurs preventing to iden= tify the source of the first panic and having the crash dump >=20 > ng_iface creation sequence: > mkpeer fec dummy fec > msg fec0: add_iface "em0" > msg fec0: add_iface "em1" > msg fec0: set_mode_mac > ------=_Part_924_4736612.1124816946869 Content-Type: text/plain; name="ng_fec.c.diff.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ng_fec.c.diff.txt" LS0tIG5nX2ZlYy5jLm9yaWcJTW9uIEF1ZyAyMiAxMTo0Mjo1MSAyMDA1CisrKyBuZ19mZWMuYwlU dWUgQXVnIDIzIDEwOjA1OjIzIDIwMDUKQEAgLTU0NCw4ICs1NDQsOCBAQAogCXN0cnVjdCBpZm5l dAkJKmlmcCwgKmJpZnA7CiAJc3RydWN0IG5nX2ZlY19wb3J0bGlzdAkqcDsKIAotCWlmcCA9IGFy ZzsKLQlwcml2ID0gaWZwLT5pZl9zb2Z0YzsKKwlwcml2ID0gYXJnOworCWlmcCA9IHByaXYtPmlm cDsKIAliID0gJnByaXYtPmZlY19idW5kbGU7CiAKIAlpZiAoYi0+ZmVjX2lmY250ID09IDEgfHwg Yi0+ZmVjX2lmY250ID09IDMpIHsK ------=_Part_924_4736612.1124816946869-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 17:36:23 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 8090016A41F; Tue, 23 Aug 2005 17:36:23 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BEC343D45; Tue, 23 Aug 2005 17:36:23 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7NHaMKJ019046; Tue, 23 Aug 2005 10:36:22 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7NHaMeb019045; Tue, 23 Aug 2005 10:36:22 -0700 Date: Tue, 23 Aug 2005 10:36:22 -0700 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20050823173622.GB6926@odin.ac.hmc.edu> References: <430B57A7.1050402@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: "Evgueni V. Gavrilov" , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: [Fwd: assigning an address to ng_fec(4) iface causes panic] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 17:36:23 -0000 --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2005 at 10:09:06AM -0700, Maksim Yevmenkin wrote: > Hello, >=20 > please try the attached patch. >=20 > > >Description: > > assigning an address to ng_fec(4) iface causes panic > > during dumping to dumpdev another panic occurs preventing to id= entify the source of the first panic and having the crash dump > >=20 > > ng_iface creation sequence: > > mkpeer fec dummy fec > > msg fec0: add_iface "em0" > > msg fec0: add_iface "em1" > > msg fec0: set_mode_mac > > > --- ng_fec.c.orig Mon Aug 22 11:42:51 2005 > +++ ng_fec.c Tue Aug 23 10:05:23 2005 > @@ -544,8 +544,8 @@ > struct ifnet *ifp, *bifp; > struct ng_fec_portlist *p; > =20 > - ifp =3D arg; > - priv =3D ifp->if_softc; > + priv =3D arg; > + ifp =3D priv->ifp; > b =3D &priv->fec_bundle; > =20 > if (b->fec_ifcnt =3D=3D 1 || b->fec_ifcnt =3D=3D 3) { This isn't quite sufficent. You also should change the ng_fec_init(ifp) call on line 718 to ng_fec_init(ifp->if_softc). If that work's I'll commit it. I've got to say this calling convention is really stupid. I'm really tempted to change ifp->if_init() to take a struct ifnet * even though it means an API change and a tree sweep. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDC16VXY6L6fI4GtQRArvTAJ0eCAQE1rElgHPWqd2QJ0jidlTiRQCgpZbs 9ZAmmrsGXJg8ibYmcs7d8ts= =GUpk -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 18:14:33 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 5CF8316A41F for ; Tue, 23 Aug 2005 18:14:33 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from mail.thelostparadise.com (129pc197.sshunet.nl [145.97.197.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3B0F43D45 for ; Tue, 23 Aug 2005 18:14:32 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from [195.16.84.90] (serkoon@jura.thelostparadise.com [195.16.84.90] (may be forged)) by mail.thelostparadise.com (8.13.1/8.13.1) with ESMTP id j7NIEThu011398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2005 20:14:30 +0200 (CEST) (envelope-from pieter@thedarkside.nl) Message-ID: <430B6785.7040209@thedarkside.nl> Date: Tue, 23 Aug 2005 20:14:29 +0200 From: Pieter de Boer User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Grooms References: <430B5680.1060506@shrew.net> In-Reply-To: <430B5680.1060506@shrew.net> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: odd tcpdump output w/ 6.0-BETA2 ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 18:14:33 -0000 Matthew Grooms wrote: > Is anyone else seeing this issue? I get useless output from tcpdump ( no > header or protocol decode ) but only when I specify a filter on the > command line. > listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes > 11:33:32.920031 [|ether] > 11:33:35.203998 [|ether] I've seen this too and heard from someone else with the same problem. Both 6.0-BETA2 systems. I upgraded mine to a newer version of 6.0-BETA2, using cvsup, but can't remember nor test (at least during this week) if that fixed the problem. Both tcpdump and libpcap are in contrib/, but ENOCLUE if only those sources (together with the kernel-sources and the makefiles) would be enough to build a new tcpdump... -- Pieter From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 18:33:12 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 9600C16A420 for ; Tue, 23 Aug 2005 18:33:12 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BFCD43D55 for ; Tue, 23 Aug 2005 18:33:11 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1208856rne for ; Tue, 23 Aug 2005 11:33:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VAwAlZs1whsl/GPlnZilCWpiWEP1zoGu2sVe+zfJ6DvCnaDqdgURY3VHex/bsIHpQhNb4SEVo7fNpiaP3q7JLB/JDqPn4e9JCart0spYfqBTBjX4BW9ZhHRRcNgbxnY2mKsn8eHSTeyReHz1kVelwwcuDedImowwchAxGKAH4rs= Received: by 10.38.88.28 with SMTP id l28mr533909rnb; Tue, 23 Aug 2005 11:33:10 -0700 (PDT) Received: by 10.38.208.5 with HTTP; Tue, 23 Aug 2005 11:33:10 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 11:33:10 -0700 From: Maksim Yevmenkin To: Brooks Davis In-Reply-To: <20050823173622.GB6926@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1088_19999326.1124821990561" References: <430B57A7.1050402@savvis.net> <20050823173622.GB6926@odin.ac.hmc.edu> Cc: "Evgueni V. Gavrilov" , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: [Fwd: assigning an address to ng_fec(4) iface causes panic] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 18:33:12 -0000 ------=_Part_1088_19999326.1124821990561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/23/05, Brooks Davis wrote: > On Tue, Aug 23, 2005 at 10:09:06AM -0700, Maksim Yevmenkin wrote: > > Hello, > > > > please try the attached patch. > > > > > >Description: > > > assigning an address to ng_fec(4) iface causes panic > > > during dumping to dumpdev another panic occurs preventing to = identify the source of the first panic and having the crash dump > > > > > > ng_iface creation sequence: > > > mkpeer fec dummy fec > > > msg fec0: add_iface "em0" > > > msg fec0: add_iface "em1" > > > msg fec0: set_mode_mac > > > >=20 > > --- ng_fec.c.orig Mon Aug 22 11:42:51 2005 > > +++ ng_fec.c Tue Aug 23 10:05:23 2005 > > @@ -544,8 +544,8 @@ > > struct ifnet *ifp, *bifp; > > struct ng_fec_portlist *p; > > > > - ifp =3D arg; > > - priv =3D ifp->if_softc; > > + priv =3D arg; > > + ifp =3D priv->ifp; > > b =3D &priv->fec_bundle; > > > > if (b->fec_ifcnt =3D=3D 1 || b->fec_ifcnt =3D=3D 3) { >=20 > This isn't quite sufficent. You also should change the ng_fec_init(ifp) > call on line 718 to ng_fec_init(ifp->if_softc). If that work's I'll > commit it. oops... i missed this. thanks for catching this! i do not have hardware to test it :) i have attached updated path. if anyone could please test it and confirm that it works then feel free to commit it (or let me know and i can commit it myself :) > I've got to say this calling convention is really stupid. I'm > really tempted to change ifp->if_init() to take a struct ifnet * even > though it means an API change and a tree sweep. sounds good to me. thanks, max ------=_Part_1088_19999326.1124821990561 Content-Type: text/plain; name="ng_fec.c.diff.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ng_fec.c.diff.txt" LS0tIG5nX2ZlYy5jLm9yaWcJTW9uIEF1ZyAyMiAxMTo0Mjo1MSAyMDA1CisrKyBuZ19mZWMuYwlU dWUgQXVnIDIzIDExOjI4OjM2IDIwMDUKQEAgLTU0NCw4ICs1NDQsOCBAQAogCXN0cnVjdCBpZm5l dAkJKmlmcCwgKmJpZnA7CiAJc3RydWN0IG5nX2ZlY19wb3J0bGlzdAkqcDsKIAotCWlmcCA9IGFy ZzsKLQlwcml2ID0gaWZwLT5pZl9zb2Z0YzsKKwlwcml2ID0gYXJnOworCWlmcCA9IHByaXYtPmlm cDsKIAliID0gJnByaXYtPmZlY19idW5kbGU7CiAKIAlpZiAoYi0+ZmVjX2lmY250ID09IDEgfHwg Yi0+ZmVjX2lmY250ID09IDMpIHsKQEAgLTcxNSw3ICs3MTUsNyBAQAogCQkJCX0KIAkJCQlpZnAt PmlmX2Rydl9mbGFncyAmPSB+KElGRl9EUlZfT0FDVElWRSk7CiAJCQkJaWZwLT5pZl9kcnZfZmxh Z3MgfD0gSUZGX0RSVl9SVU5OSU5HOwotCQkJCW5nX2ZlY19pbml0KGlmcCk7CisJCQkJbmdfZmVj X2luaXQocHJpdik7CiAJCQl9CiAJCQkvKgogCQkJICogQnViYmxlIGRvd24gY2hhbmdlcyBpbiBw cm9taXNjIG1vZGUgdG8K ------=_Part_1088_19999326.1124821990561-- From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 19:10:04 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 686C416A41F for ; Tue, 23 Aug 2005 19:10:04 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from mx2-out.seton.org (mx2-out.seton.org [65.118.63.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 936AB43D76 for ; Tue, 23 Aug 2005 19:10:02 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from localhost (unknown [127.0.0.1]) by mx2-out.seton.org (Postfix) with ESMTP id 2AC321119; Tue, 23 Aug 2005 14:10:02 -0500 (CDT) Received: from mx2-out.seton.org ([10.21.254.241]) by localhost (mx2 [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 00889-41; Tue, 23 Aug 2005 14:10:02 -0500 (CDT) Received: from ausexfe02.seton.org (unknown [10.20.10.186]) by mx2-out.seton.org (Postfix) with ESMTP id 1B61710DC; Tue, 23 Aug 2005 14:10:02 -0500 (CDT) Received: from [10.20.160.190] ([10.20.160.190]) by ausexfe02.seton.org with Microsoft SMTPSVC(6.0.3790.211); Tue, 23 Aug 2005 14:10:01 -0500 Message-ID: <430B75DC.9050003@shrew.net> Date: Tue, 23 Aug 2005 14:15:40 -0500 From: Matthew Grooms User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pieter de Boer References: <430B5680.1060506@shrew.net> <430B6785.7040209@thedarkside.nl> In-Reply-To: <430B6785.7040209@thedarkside.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Aug 2005 19:10:02.0015 (UTC) FILETIME=[4333EAF0:01C5A816] X-Virus-Scanned: by amavisd-new at seton.org Cc: freebsd-net@freebsd.org Subject: Re: odd tcpdump output w/ 6.0-BETA2 ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 19:10:04 -0000 Pieter de Boer wrote: > Matthew Grooms wrote: > > >>Is anyone else seeing this issue? I get useless output from tcpdump ( no >>header or protocol decode ) but only when I specify a filter on the >>command line. > > >>listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes >>11:33:32.920031 [|ether] >>11:33:35.203998 [|ether] > > > I've seen this too and heard from someone else with the same problem. > Both 6.0-BETA2 systems. I upgraded mine to a newer version of 6.0-BETA2, > using cvsup, but can't remember nor test (at least during this week) if > that fixed the problem. > > Both tcpdump and libpcap are in contrib/, but ENOCLUE if only those > sources (together with the kernel-sources and the makefiles) would be > enough to build a new tcpdump... > Did you make modifications or are were you running GENERIC? The only modifications I made to my kernel were to disable IPV6 and to enable pf, pflog, ALTQ and FAST_IPSEC. Could someone with a stock BETA2 kernel try a tcpdump with a simple filter and see if it they get normal output? -Matthew From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 20:15:58 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 1EA2316A41F for ; Tue, 23 Aug 2005 20:15:58 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from mail.thelostparadise.com (129pc197.sshunet.nl [145.97.197.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FA9843D55 for ; Tue, 23 Aug 2005 20:15:57 +0000 (GMT) (envelope-from pieter@thedarkside.nl) Received: from [195.16.84.90] (serkoon@jura.thelostparadise.com [195.16.84.90] (may be forged)) by mail.thelostparadise.com (8.13.1/8.13.1) with ESMTP id j7NKFtXY011840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2005 22:15:56 +0200 (CEST) (envelope-from pieter@thedarkside.nl) Message-ID: <430B83FB.6020008@thedarkside.nl> Date: Tue, 23 Aug 2005 22:15:55 +0200 From: Pieter de Boer User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Grooms References: <430B5680.1060506@shrew.net> <430B6785.7040209@thedarkside.nl> <430B75DC.9050003@shrew.net> In-Reply-To: <430B75DC.9050003@shrew.net> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: odd tcpdump output w/ 6.0-BETA2 ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 20:15:58 -0000 Matthew Grooms wrote: >>> Is anyone else seeing this issue? I get useless output from tcpdump ( no >>> header or protocol decode ) but only when I specify a filter on the >>> command line. >>> listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes >>> 11:33:32.920031 [|ether] >>> 11:33:35.203998 [|ether] >> I've seen this too and heard from someone else with the same problem. >> Both 6.0-BETA2 systems. I upgraded mine to a newer version of 6.0-BETA2, >> using cvsup, but can't remember nor test (at least during this week) if >> that fixed the problem. > Did you make modifications or are were you running GENERIC? The only > modifications I made to my kernel were to disable IPV6 and to enable pf, > pflog, ALTQ and FAST_IPSEC. I've made quite some changes, yes: removing drivers I don't need, adding pf.. Doubt it's a problem in the kernel configuration, sounds more like a problem in libpcap or bpf.. -- Pieter From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 20:38:14 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 B229516A41F for ; Tue, 23 Aug 2005 20:38:14 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B4943DC3 for ; Tue, 23 Aug 2005 20:31:47 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j7NKZop1004478; Tue, 23 Aug 2005 16:35:50 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-net@FreeBSD.org Date: Tue, 23 Aug 2005 16:31:24 -0400 User-Agent: KMail/1.6.2 References: <430B5680.1060506@shrew.net> <430B75DC.9050003@shrew.net> <430B83FB.6020008@thedarkside.nl> In-Reply-To: <430B83FB.6020008@thedarkside.nl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200508231631.26252.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.85.1/1036/Tue Aug 23 09:55:28 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Matthew Grooms , Pieter de Boer Subject: Re: odd tcpdump output w/ 6.0-BETA2 ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 20:38:14 -0000 On Tuesday 23 August 2005 04:15 pm, Pieter de Boer wrote: > Matthew Grooms wrote: > >>> Is anyone else seeing this issue? I get useless output from > >>> tcpdump ( no header or protocol decode ) but only when I > >>> specify a filter on the command line. > >>> listening on xl0, link-type EN10MB (Ethernet), capture size 96 > >>> bytes 11:33:32.920031 [|ether] > >>> 11:33:35.203998 [|ether] > >> > >> I've seen this too and heard from someone else with the same > >> problem. Both 6.0-BETA2 systems. I upgraded mine to a newer > >> version of 6.0-BETA2, using cvsup, but can't remember nor test > >> (at least during this week) if that fixed the problem. > > > > Did you make modifications or are were you running GENERIC? The > > only modifications I made to my kernel were to disable IPV6 and > > to enable pf, pflog, ALTQ and FAST_IPSEC. > > I've made quite some changes, yes: removing drivers I don't need, > adding pf.. Doubt it's a problem in the kernel configuration, > sounds more like a problem in libpcap or bpf.. It should be fixed by this commit: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/bpf.c.diff?r1=1.156&r2=1.157 MFC: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/bpf.c.diff?r1=1.153.2.2&r2=1.153.2.3 Therefore, it will be available from BETA3. Jung-uk Kim From owner-freebsd-net@FreeBSD.ORG Tue Aug 23 22:14:52 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 2451816A427; Tue, 23 Aug 2005 22:14:52 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from mx2-out.seton.org (mx2-out.seton.org [65.118.63.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A6F543D45; Tue, 23 Aug 2005 22:14:49 +0000 (GMT) (envelope-from mgrooms@shrew.net) Received: from localhost (unknown [127.0.0.1]) by mx2-out.seton.org (Postfix) with ESMTP id BAE5210B8; Tue, 23 Aug 2005 17:14:48 -0500 (CDT) Received: from mx2-out.seton.org ([10.21.254.241]) by localhost (mx2 [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 01824-48; Tue, 23 Aug 2005 17:14:48 -0500 (CDT) Received: from ausexfe02.seton.org (unknown [10.20.10.186]) by mx2-out.seton.org (Postfix) with ESMTP id AAB57B44; Tue, 23 Aug 2005 17:14:48 -0500 (CDT) Received: from [10.20.160.190] ([10.20.160.190]) by ausexfe02.seton.org with Microsoft SMTPSVC(6.0.3790.211); Tue, 23 Aug 2005 17:14:48 -0500 Message-ID: <430BA12B.102@shrew.net> Date: Tue, 23 Aug 2005 17:20:27 -0500 From: Matthew Grooms User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jung-uk Kim References: <430B5680.1060506@shrew.net> <430B75DC.9050003@shrew.net> <430B83FB.6020008@thedarkside.nl> <200508231631.26252.jkim@FreeBSD.org> In-Reply-To: <200508231631.26252.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Aug 2005 22:14:48.0475 (UTC) FILETIME=[133F76B0:01C5A830] X-Virus-Scanned: by amavisd-new at seton.org Cc: freebsd-net@FreeBSD.org, Pieter de Boer Subject: Re: odd tcpdump output w/ 6.0-BETA2 [ resolved ] ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Aug 2005 22:14:52 -0000 Jung-uk Kim wrote: > On Tuesday 23 August 2005 04:15 pm, Pieter de Boer wrote: > >>Matthew Grooms wrote: >> >>>>>Is anyone else seeing this issue? I get useless output from >>>>>tcpdump ( no header or protocol decode ) but only when I >>>>>specify a filter on the command line. >>>>>listening on xl0, link-type EN10MB (Ethernet), capture size 96 >>>>>bytes 11:33:32.920031 [|ether] >>>>>11:33:35.203998 [|ether] >>>> >>>>I've seen this too and heard from someone else with the same >>>>problem. Both 6.0-BETA2 systems. I upgraded mine to a newer >>>>version of 6.0-BETA2, using cvsup, but can't remember nor test >>>>(at least during this week) if that fixed the problem. >>> >>>Did you make modifications or are were you running GENERIC? The >>>only modifications I made to my kernel were to disable IPV6 and >>>to enable pf, pflog, ALTQ and FAST_IPSEC. >> >>I've made quite some changes, yes: removing drivers I don't need, >>adding pf.. Doubt it's a problem in the kernel configuration, >>sounds more like a problem in libpcap or bpf.. > > > It should be fixed by this commit: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/bpf.c.diff?r1=1.156&r2=1.157 > > MFC: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/bpf.c.diff?r1=1.153.2.2&r2=1.153.2.3 > > Therefore, it will be available from BETA3. > > Jung-uk Kim I was able to update my source tree and all is now well. Thanks for your help. -Matthew From owner-freebsd-net@FreeBSD.ORG Wed Aug 24 15:08:40 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 A366316A420 for ; Wed, 24 Aug 2005 15:08:40 +0000 (GMT) (envelope-from fin7pl@dnainternet.net) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E09943D46 for ; Wed, 24 Aug 2005 15:08:39 +0000 (GMT) (envelope-from fin7pl@dnainternet.net) Received: from b-179-254.dsl.ipy.dnainternet.fi ([212.149.179.254]:4799 "EHLO PATE.dnainternet.net" TLS-CIPHER: ) by smtp2.dnainternet.net with ESMTP id S1230067AbVHXPIi convert rfc822-to-8bit (ORCPT ); Wed, 24 Aug 2005 18:08:38 +0300 Message-Id: <6.2.0.14.2.20050824180234.03fe4f88@mail.dnainternet.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Wed, 24 Aug 2005 18:04:51 +0300 To: freebsd-net@freebsd.org From: Patrick Lindholm Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8BIT Subject: Routing? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 24 Aug 2005 15:08:40 -0000 Here´s the deal I have my Freebsd 4.10 gateway/nat/firewall on my network. On my LAN i have couple WIN machines and a Linux Redhat machine working ok to outside and other machine´s with IP 192.168.255.252 eth0 I have one software running on Redhat Machine that uses SLIP and i have configured sl0 with 192.168.255.252 P-t-P 192.168.0.6 The 192.168.0.6 is the IP of that Software Ok with these configurations i can connect from my Linuxbox locally to the software with 192.168.0.6 But the 192.168.0.6 Does´nt appear to be available for other computers on my LAN So i checked out some manuals and used command: ARP -Ds 192.168.0.6 sl0 pub and 92.168.0.6 came visible to other computers on my LAN. So now i thought that all i have to do is to put on my BSDBOX natd.conf to redirect all requests from 23 and 81 to 192.168.0.6 right? and allow of course ports from Firewall (My software with the SLIP has entrance via HTTP and TELNET) Well nobody can´t still connect to my Linux software from outside? From my LAN it´works ok. I tried also adding allow ip from any to 192.168.0.6 via ep0 and that worked for a while (now anybody from outside can connect to my software) It works only for couple hours and the no response? I´cant understand how the allow ip from any to 192.168.0.6 can help. Well if anyone has understood what i´m trying to do here and wants to send couple hints i would be glad. :-) Thanks for your reply. Patrick From owner-freebsd-net@FreeBSD.ORG Thu Aug 25 20:10:13 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 950D616A41F for ; Thu, 25 Aug 2005 20:10:13 +0000 (GMT) (envelope-from fming@borderware.com) Received: from mail.borderware.com (mail.borderware.com [207.236.65.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ADD443D48 for ; Thu, 25 Aug 2005 20:10:12 +0000 (GMT) (envelope-from fming@borderware.com) Message-ID: <430E25A3.8080503@borderware.com> Date: Thu, 25 Aug 2005 16:10:11 -0400 From: ming fu User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD 5 ip_gre and netisr_enable=1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Aug 2005 20:10:13 -0000 Hi, This problem exit in some old gre.c (not a part of official freebsd) to handle wccp packets. A carefully crafted packet can cause it to deplete kernel stack and casuing a panic. It can crash a 4.2 kernel with about 200-300 repeated ip+gre header. I believe the problem appears on FreeBSD 5 with ip_gre() and net.isr.enable = 1. It probably easier to crash a 5.x because more calls are involved in FreeBSD 5 than 4.x, thus more stack can be consumed with the same repetition of headers. when a GRE packet gets into the ip_gre2(), its gre header is stripped and sent to netisr_dispatch() for ip_input() processing again. In case, the net.isr.enable is 1, the packet will be delivered to ip_input directly instead of put in the queue. If someone create a packet consists of repeated ip and gre header, ip hdr : gre hdr : ip hdr : gre hdr : ...... repeat a few hundred times. it can cause a loop around ip_gre->ip_gre2->netisr_dispatch->ip_input->ip_gre ..., not too difficult to deplete the kernel stack. It only takes 24 bytes to force the kernel to go one round through these calls. Any suggestion of how to fix this? send the gre stripped packet to netisr_queue() is an easy, albeit slow solution. I fix the older gre.c file by making sure the inner packet is not a GRE before deliver to ip_input. However, it was ugly to parse the inner header of in ip_gre2(). Regards, Ming From owner-freebsd-net@FreeBSD.ORG Thu Aug 25 21:01:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 0ACA516A41F for ; Thu, 25 Aug 2005 21:01:16 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C13743D45 for ; Thu, 25 Aug 2005 21:01:15 +0000 (GMT) (envelope-from max@love2party.net) Received: from p54A3E16E.dip.t-dialin.net [84.163.225.110] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwpI-1E8OqV38im-0003p7; Thu, 25 Aug 2005 23:01:11 +0200 From: Max Laier To: freebsd-net@freebsd.org Date: Thu, 25 Aug 2005 23:00:58 +0200 User-Agent: KMail/1.8.2 References: <430E25A3.8080503@borderware.com> In-Reply-To: <430E25A3.8080503@borderware.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2657445.VVav6zdg1M"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508252301.09736.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: ming fu Subject: Re: FreeBSD 5 ip_gre and netisr_enable=1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Aug 2005 21:01:16 -0000 --nextPart2657445.VVav6zdg1M Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 25 August 2005 22:10, ming fu wrote: > Hi, > > This problem exit in some old gre.c (not a part of official freebsd) to > handle wccp packets. A carefully crafted packet can cause it to deplete > kernel stack and casuing a panic. It can crash a 4.2 kernel with about > 200-300 repeated ip+gre header. > > I believe the problem appears on FreeBSD 5 with ip_gre() and > net.isr.enable =3D 1. It probably easier to crash a 5.x because more calls > are involved in FreeBSD 5 than 4.x, thus more stack can be consumed with > the same repetition of headers. > > when a GRE packet gets into the ip_gre2(), its gre header is stripped > and sent to netisr_dispatch() for ip_input() processing again. In case, > the net.isr.enable is 1, the packet will be delivered to ip_input > directly instead of put in the queue. > > If someone create a packet consists of repeated ip and gre header, > > ip hdr : gre hdr : ip hdr : gre hdr : ...... repeat a few > hundred times. > > it can cause a loop around > ip_gre->ip_gre2->netisr_dispatch->ip_input->ip_gre ..., not too > difficult to deplete the kernel stack. > > It only takes 24 bytes to force the kernel to go one round through these > calls. > > Any suggestion of how to fix this? > > send the gre stripped packet to netisr_queue() is an easy, albeit slow > solution. > > I fix the older gre.c file by making sure the inner packet is not a GRE > before deliver to ip_input. However, it was ugly to parse the inner > header of in ip_gre2(). You could use an mbuf_tag to keep track of recursion in the same way it is= =20 done in gif. There is certainly some overhead involved as well, however. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2657445.VVav6zdg1M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDDjGVXyyEoT62BG0RArihAJ0R7huSD3TWysATBVvff0YGkci/DQCggLKq 62g3nghK0PuGnxHS0G2L7Tg= =ePE2 -----END PGP SIGNATURE----- --nextPart2657445.VVav6zdg1M-- From owner-freebsd-net@FreeBSD.ORG Thu Aug 25 21:09:46 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 26F3816A41F for ; Thu, 25 Aug 2005 21:09:46 +0000 (GMT) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6431B43D46 for ; Thu, 25 Aug 2005 21:09:45 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 54938 invoked from network); 25 Aug 2005 20:48:35 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 25 Aug 2005 20:48:35 -0000 Message-ID: <430E339F.3BAEDB8D@freebsd.org> Date: Thu, 25 Aug 2005 23:09:51 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Max Laier References: <430E25A3.8080503@borderware.com> <200508252301.09736.max@love2party.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, ming fu Subject: Re: FreeBSD 5 ip_gre and netisr_enable=1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Aug 2005 21:09:46 -0000 Max Laier wrote: > > On Thursday 25 August 2005 22:10, ming fu wrote: > > Hi, > > > > This problem exit in some old gre.c (not a part of official freebsd) to > > handle wccp packets. A carefully crafted packet can cause it to deplete > > kernel stack and casuing a panic. It can crash a 4.2 kernel with about > > 200-300 repeated ip+gre header. > > > > I believe the problem appears on FreeBSD 5 with ip_gre() and > > net.isr.enable = 1. It probably easier to crash a 5.x because more calls > > are involved in FreeBSD 5 than 4.x, thus more stack can be consumed with > > the same repetition of headers. > > > > when a GRE packet gets into the ip_gre2(), its gre header is stripped > > and sent to netisr_dispatch() for ip_input() processing again. In case, > > the net.isr.enable is 1, the packet will be delivered to ip_input > > directly instead of put in the queue. > > > > If someone create a packet consists of repeated ip and gre header, > > > > ip hdr : gre hdr : ip hdr : gre hdr : ...... repeat a few > > hundred times. > > > > it can cause a loop around > > ip_gre->ip_gre2->netisr_dispatch->ip_input->ip_gre ..., not too > > difficult to deplete the kernel stack. > > > > It only takes 24 bytes to force the kernel to go one round through these > > calls. > > > > Any suggestion of how to fix this? > > > > send the gre stripped packet to netisr_queue() is an easy, albeit slow > > solution. > > > > I fix the older gre.c file by making sure the inner packet is not a GRE > > before deliver to ip_input. However, it was ugly to parse the inner > > header of in ip_gre2(). > > You could use an mbuf_tag to keep track of recursion in the same way it is > done in gif. There is certainly some overhead involved as well, however. Or set "m->m_pkthdr.rcvif = self" in gre_output() and in gre_input() check for (m->m_pkthdr.rcvif != self). -- Andre From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 02:09:39 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 986BE16A41F for ; Fri, 26 Aug 2005 02:09:39 +0000 (GMT) (envelope-from gary@tbe.net) Received: from kerplunk.tbe.net (kerplunk.tbe.net [209.123.115.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D1F043D46 for ; Fri, 26 Aug 2005 02:09:39 +0000 (GMT) (envelope-from gary@tbe.net) Received: by kerplunk.tbe.net (Postfix, from userid 1001) id 2FB1D5CE0; Thu, 25 Aug 2005 22:09:01 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by kerplunk.tbe.net (Postfix) with ESMTP id C469B5C63 for ; Thu, 25 Aug 2005 22:09:01 -0400 (EDT) Date: Thu, 25 Aug 2005 22:09:01 -0400 (EDT) From: "Gary D. Margiotta" To: freebsd-net@freebsd.org Message-ID: <20050825220248.E9058@kerplunk.tbe.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 02:09:39 -0000 Hello, Probably a stupid question, but I've not had much luck searching for the answers (probably because I'm not using the correct search terminology). Is there a way to bond multiple network cards together, so as to get a higher aggregate bandwith? And also, if it is possible, is it recommended to do so, or am I looking at more trouble than its worth? Thanks to a liquidation of office equipment from a previous employer, I ended up with several Intel series 10/100 switches (530 host and 535 member series), and a whole basket of Intel and 3Com 10/100 network cards. Rather than going out and buying new gigabit hardware, and since I have the spare PCI slots, switch ports and cards lying around, I'm curious to see if this could be a solution. Please cc: replies directly to me, as I'm not subscribed to this particular list (and if this really should belong on another list, please let me know as well, and I'll repost). Thanks for any info, -Gary From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 02:32:58 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 C376916A41F for ; Fri, 26 Aug 2005 02:32:58 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id EFF9D43D45 for ; Fri, 26 Aug 2005 02:32:57 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 72306 invoked by uid 89); 26 Aug 2005 02:32:55 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Fri, 26 Aug 2005 12:32:54 +1000 (EST) References: <20050825220248.E9058@kerplunk.tbe.net> In-Reply-To: <20050825220248.E9058@kerplunk.tbe.net> To: "Gary D. Margiotta" Date: Fri, 26 Aug 2005 12:32:52 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1125023574.72285.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Dave+Seddon Cc: freebsd-net@freebsd.org Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 02:32:58 -0000 Greetings, - Gig cards are cheap. - PCI bus throughput is really bad (like 32MB/s) - There is no easy way to "bond" on FreeBSD, but you can just use multiple IP addresses. It would be cool to have something like Etherchannel, but that doesn't work. Solaris has Etherchannel. Regards, Dave Gary D. Margiotta writes: > Hello, > > Probably a stupid question, but I've not had much luck searching for the > answers (probably because I'm not using the correct search terminology). > > Is there a way to bond multiple network cards together, so as to get a > higher aggregate bandwith? And also, if it is possible, is it recommended > to do so, or am I looking at more trouble than its worth? > > Thanks to a liquidation of office equipment from a previous employer, I > ended up with several Intel series 10/100 switches (530 host and 535 > member series), and a whole basket of Intel and 3Com 10/100 network cards. > > Rather than going out and buying new gigabit hardware, and since I have > the spare PCI slots, switch ports and cards lying around, I'm curious to > see if this could be a solution. > > Please cc: replies directly to me, as I'm not subscribed to this > particular list (and if this really should belong on another list, please > let me know as well, and I'll repost). > > Thanks for any info, > > -Gary > _______________________________________________ > 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 Fri Aug 26 04:02:31 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 0DCFF16A41F for ; Fri, 26 Aug 2005 04:02:31 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B58843D60 for ; Fri, 26 Aug 2005 04:02:27 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7Q42RnI029920; Thu, 25 Aug 2005 21:02:27 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7Q42QYJ029918; Thu, 25 Aug 2005 21:02:26 -0700 Date: Thu, 25 Aug 2005 21:02:26 -0700 From: Brooks Davis To: Dave+Seddon Message-ID: <20050826040226.GB28894@odin.ac.hmc.edu> References: <20050825220248.E9058@kerplunk.tbe.net> <1125023574.72285.TMDA@seddon.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <1125023574.72285.TMDA@seddon.ca> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org, "Gary D. Margiotta" Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 04:02:31 -0000 --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 26, 2005 at 12:32:52PM +1000, Dave+Seddon wrote: > - There is no easy way to "bond" on FreeBSD, but you can just use multipl= e=20 > IP addresses. It would be cool to have something like Etherchannel, but= =20 > that doesn't work. Solaris has Etherchannel.=20 FreeBSD has EtherChannel support. See ng_fec(4). Etherchannel is of no use for two hosts talking to each other since the algorithm chooses a nic based on the pair of hosts. ng_one2many may also be of interest for some applications. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDDpRRXY6L6fI4GtQRAg/hAJ0dGIpCx3uS5KepVJEzPQ7LFAEG2wCg4qAn +6IUowsfdBoA/AgpK9THiw0= =Htv0 -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8-- From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 04:15:28 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 AF4CD16A41F for ; Fri, 26 Aug 2005 04:15:28 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: from rusunix.org (rusunix.org [212.118.165.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 631E643D48 for ; Fri, 26 Aug 2005 04:15:28 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: by rusunix.org (Postfix, from userid 1111) id D82A7228737; Fri, 26 Aug 2005 06:13:14 +0200 (CEST) From: "Evgueni V. Gavrilov" To: freebsd-net@FreeBSD.org In-Reply-To: <1125023574.72285.TMDA@seddon.ca> X-Newsgroups: freebsd.net User-Agent: tin/1.7.8-20050321 ("Hellisay") (UNIX) (FreeBSD/7.0-CURRENT (i386)) Message-Id: <20050826041314.D82A7228737@rusunix.org> Date: Fri, 26 Aug 2005 06:13:14 +0200 (CEST) Cc: Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 04:15:28 -0000 In article <1125023574.72285.TMDA@seddon.ca> you wrote: > IP addresses. It would be cool to have something like Etherchannel, but > that doesn't work. Solaris has Etherchannel. you missed ng_fec(4) which runs fine for me with Catalyst 3750 stack (Cisco WS-C3750G-24TS) (gigabit ethernet) -- http://aquatique.rusunix.org From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 04:49:21 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 91B3216A41F for ; Fri, 26 Aug 2005 04:49:21 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: from seddon.ca (seddon.ca [203.209.212.18]) by mx1.FreeBSD.org (Postfix) with SMTP id BFE9143D46 for ; Fri, 26 Aug 2005 04:49:20 +0000 (GMT) (envelope-from dave-sender-1932b5@seddon.ca) Received: (qmail 79737 invoked by uid 89); 26 Aug 2005 04:49:18 -0000 Received: by seddon.ca (tmda-sendmail, from uid 89); Fri, 26 Aug 2005 14:49:17 +1000 (EST) References: <20050826041314.D82A7228737@rusunix.org> In-Reply-To: <20050826041314.D82A7228737@rusunix.org> To: freebsd-net@FreeBSD.org Date: Fri, 26 Aug 2005 14:49:16 +1000 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit From: Dave+Seddon Message-ID: <1125031757.79719.TMDA@seddon.ca> X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Cc: Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave+Seddon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 04:49:21 -0000 Greetings, Oh wow! That's cool. I missed that somehow. The 'man' page doesn't mention the hash functions options. On the Cat 6500s you can log into the Sup and change the hash function so it's not just IP, but rather IP+Port. I've previously used this to balance the load across multiple gig links with traffic going to a sinlge backup host, for example. (I you want to know how I'll have to look that up) Regards, Dave Seddon Evgueni V. Gavrilov writes: > In article <1125023574.72285.TMDA@seddon.ca> you wrote: > >> IP addresses. It would be cool to have something like Etherchannel, but >> that doesn't work. Solaris has Etherchannel. > you missed ng_fec(4) which runs fine for me with Catalyst 3750 stack (Cisco WS-C3750G-24TS) (gigabit ethernet) > > -- > http://aquatique.rusunix.org > > _______________________________________________ > 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 Fri Aug 26 05:25:14 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 84E6A16A41F for ; Fri, 26 Aug 2005 05:25:14 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: from rusunix.org (rusunix.org [212.118.165.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D9B43D49 for ; Fri, 26 Aug 2005 05:25:13 +0000 (GMT) (envelope-from aquatique@rusunix.org) Received: by rusunix.org (Postfix, from userid 1111) id 62F13228737; Fri, 26 Aug 2005 07:23:01 +0200 (CEST) From: "Evgueni V. Gavrilov" To: freebsd-net@FreeBSD.org In-Reply-To: <1125031757.79719.TMDA@seddon.ca> X-Newsgroups: freebsd.net User-Agent: tin/1.7.8-20050321 ("Hellisay") (UNIX) (FreeBSD/7.0-CURRENT (i386)) Message-Id: <20050826052301.62F13228737@rusunix.org> Date: Fri, 26 Aug 2005 07:23:01 +0200 (CEST) Cc: Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 05:25:14 -0000 In article <1125031757.79719.TMDA@seddon.ca> you wrote: > Oh wow! That's cool. I missed that somehow. The 'man' page doesn't > mention the hash functions options. > > On the Cat 6500s you can log into the Sup and change the hash function so > it's not just IP, but rather IP+Port. I've previously used this to balance > the load across multiple gig links with traffic going to a sinlge backup > host, for example. (I you want to know how I'll have to look that up) Fast EtherChannel/GigaChannel does ballance itself AFAIK upon closing kern/85239 (by emax, not me) I did some tests, and one of them was parallel transfers (input/output) to/from several hosts. so I noticed funny balancing: transfers to/from one host ballanced over 2 interfaces in the bundle so that incoming traffic goes through one interface, outgoing traffic goes through another. further transfers from/to another hosts will be ballanced the same way until peak rate will hit. after peak hit both interfaces in the bundle are used for transmit and receiving. I suppose that behaviour for the most part caused by switch/stack ports config, since ng_fec(4) has only 1 setting: forwarding method (set_mode_mac/set_mode_inet). May be it would be great to have some description of switch/stack ports configuration in the ng_fec(4) man page. From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 05:53:47 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 6CE2416A41F for ; Fri, 26 Aug 2005 05:53:47 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC0E443D48 for ; Fri, 26 Aug 2005 05:53:46 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id j7Q5rj83047144; Thu, 25 Aug 2005 22:53:45 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id j7Q5rhFo047143; Thu, 25 Aug 2005 22:53:43 -0700 (PDT) (envelope-from jmg) Date: Thu, 25 Aug 2005 22:53:43 -0700 From: John-Mark Gurney To: Dave+Seddon Message-ID: <20050826055343.GF30465@funkthat.com> Mail-Followup-To: Dave+Seddon , "Gary D. Margiotta" , freebsd-net@freebsd.org References: <20050825220248.E9058@kerplunk.tbe.net> <1125023574.72285.TMDA@seddon.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125023574.72285.TMDA@seddon.ca> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p1 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-net@freebsd.org, "Gary D. Margiotta" Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 05:53:47 -0000 Dave+Seddon wrote this message on Fri, Aug 26, 2005 at 12:32 +1000: > - Gig cards are cheap. yep... $25 for a card, and $100 will get you a 8 port switch that will do jumbo frames (MTU sizes of 9000 and more instead of the default 1500)... and you can even use the same wiring, no need for cat5e, cat5 works just fine for gige (as long as you wired all four pairs through)... > - PCI bus throughput is really bad (like 32MB/s) nope, PCI raw bandwidth is 133MB/s... 33.3mhz * 4 bytes/cycle, though some of that is lost to command overhead, but you can do 100MB/s on PCI if the bridge doesn't interrupt your card too much... The usual problem is that the PCI bus bandwidth is shared with your HD, so you'll use 50MB/sec reading from your HD, and then the other 50MB/sec out the gige.. (if you're lucky).. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 10:33:13 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 CCEF816A41F; Fri, 26 Aug 2005 10:33:13 +0000 (GMT) (envelope-from anders@fupp.net) Received: from totem.fix.no (totem.fix.no [80.91.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B3C743D48; Fri, 26 Aug 2005 10:33:13 +0000 (GMT) (envelope-from anders@fupp.net) Received: from localhost (totem.fix.no [80.91.36.20]) by totem.fix.no (Postfix) with ESMTP id 1A46F5F3823; Fri, 26 Aug 2005 12:33:11 +0200 (CEST) Received: from totem.fix.no ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id 94125-02; Fri, 26 Aug 2005 12:33:10 +0200 (CEST) Received: by totem.fix.no (Postfix, from userid 1000) id 88CD25F380D; Fri, 26 Aug 2005 12:33:10 +0200 (CEST) Date: Fri, 26 Aug 2005 12:33:10 +0200 From: Anders Nordby To: freebsd-net@FreeBSD.org, freebsd-security@FreeBSD.org Message-ID: <20050826103310.GA94494@totem.fix.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.6i Cc: Subject: Filtering jail IP traffic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 10:33:13 -0000 Hi, IP traffic from one jail to another jail, arrives on destination jail on lo0 having the destination jails IP as source IP. Why not the source jail's IP address? How can I filter traffic from one jail to another, using ipfw of ipf? Cheers, -- Anders. From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 14:41:23 2005 Return-Path: X-Original-To: freebsd-net@FreeBSD.org 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 CA28316A41F; Fri, 26 Aug 2005 14:41:23 +0000 (GMT) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3065D43D45; Fri, 26 Aug 2005 14:41:22 +0000 (GMT) (envelope-from bra@fsn.hu) Received: from localhost (localhost [127.0.0.1]) by people.fsn.hu (Postfix) with ESMTP id 0B8EE8441E; Fri, 26 Aug 2005 16:41:20 +0200 (CEST) Received: from people.fsn.hu ([127.0.0.1]) by localhost (people.fsn.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 59952-01-3; Fri, 26 Aug 2005 16:41:13 +0200 (CEST) Received: from [172.16.129.72] (japan.t-online.co.hu [195.228.243.99]) by people.fsn.hu (Postfix) with ESMTP id 7795C8441F; Fri, 26 Aug 2005 16:41:13 +0200 (CEST) Message-ID: <430F2A09.5000301@fsn.hu> Date: Fri, 26 Aug 2005 16:41:13 +0200 From: Attila Nagy User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050725) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anders Nordby References: <20050826103310.GA94494@totem.fix.no> In-Reply-To: <20050826103310.GA94494@totem.fix.no> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at fsn.hu Cc: freebsd-net@FreeBSD.org, freebsd-security@FreeBSD.org Subject: Re: Filtering jail IP traffic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 14:41:23 -0000 Anders Nordby wrote: > IP traffic from one jail to another jail, arrives on destination jail on > lo0 having the destination jails IP as source IP. Why not the source > jail's IP address? > How can I filter traffic from one jail to another, using ipfw of ipf? AFAIK (at least with pf), you can't really filter on loopback interfaces. Last time I tried, I could not filter on TCP or UDP ports, filtering from and to IP and protocol worked. -- Attila Nagy e-mail: Attila.Nagy@fsn.hu Adopt a directory on our free software phone @work: +361 371 3536 server! http://www.fsn.hu/?f=brick cell.: +3630 306 6758 From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 14:52:40 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 1E93616A43E for ; Fri, 26 Aug 2005 14:52:39 +0000 (GMT) (envelope-from paul@distributel.net) Received: from smtp.distributel.net (cns2.distributel.NET [66.38.181.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F80C43D45 for ; Fri, 26 Aug 2005 14:52:37 +0000 (GMT) (envelope-from paul@distributel.net) Received: from localhost (localhost [127.0.0.1]) by smtp.distributel.net (8.12.6/8.12.6) with ESMTP id j7QEqasq003897; Fri, 26 Aug 2005 10:52:36 -0400 (EDT) Date: Fri, 26 Aug 2005 10:52:36 -0400 (EDT) From: Paul Khavkine X-X-Sender: paul@krusty.mtl.distributel.net To: Dave+Seddon In-Reply-To: <1125023574.72285.TMDA@seddon.ca> Message-ID: <20050826105149.X2418-100000@krusty.mtl.distributel.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org, "Gary D. Margiotta" Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 14:52:40 -0000 YOu can try ng_fec which is Etherchannel, not sure if it works in FreeBSD 5.x properly, it did in 4.x Cheers Paul On Fri, 26 Aug 2005, Dave+Seddon wrote: >Greetings, > > - Gig cards are cheap. > - PCI bus throughput is really bad (like 32MB/s) > - There is no easy way to "bond" on FreeBSD, but you can just use multiple >IP addresses. It would be cool to have something like Etherchannel, but >that doesn't work. Solaris has Etherchannel. > >Regards, >Dave > > >Gary D. Margiotta writes: > >> Hello, >> >> Probably a stupid question, but I've not had much luck searching for the >> answers (probably because I'm not using the correct search terminology). >> >> Is there a way to bond multiple network cards together, so as to get a >> higher aggregate bandwith? And also, if it is possible, is it recommended >> to do so, or am I looking at more trouble than its worth? >> >> Thanks to a liquidation of office equipment from a previous employer, I >> ended up with several Intel series 10/100 switches (530 host and 535 >> member series), and a whole basket of Intel and 3Com 10/100 network cards. >> >> Rather than going out and buying new gigabit hardware, and since I have >> the spare PCI slots, switch ports and cards lying around, I'm curious to >> see if this could be a solution. >> >> Please cc: replies directly to me, as I'm not subscribed to this >> particular list (and if this really should belong on another list, please >> let me know as well, and I'll repost). >> >> Thanks for any info, >> >> -Gary >> _______________________________________________ >> 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-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > ************************************************ Paul Khavkine Networks/Systems Planning and Engineering DISTRIBUTEL Communications. 740 Notre Dame West, Suite 1135 Montreal, Quebec, Canada, H3C 3X6 +1-514-877-5505 x 263 http://www.distributel.net ************************************************ From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 16:43:11 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 4859816A41F for ; Fri, 26 Aug 2005 16:43:11 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0F7A43D49 for ; Fri, 26 Aug 2005 16:43:10 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-2.free.fr (Postfix) with ESMTP id 28822C1E8; Fri, 26 Aug 2005 18:43:09 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id E803A405A; Fri, 26 Aug 2005 18:43:31 +0200 (CEST) Date: Fri, 26 Aug 2005 18:43:31 +0200 From: Jeremie Le Hen To: Dave+Seddon Message-ID: <20050826164331.GC659@obiwan.tataz.chchile.org> References: <20050825220248.E9058@kerplunk.tbe.net> <1125023574.72285.TMDA@seddon.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1125023574.72285.TMDA@seddon.ca> User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org, "Gary D. Margiotta" Subject: Re: Aggregate network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 16:43:11 -0000 Hi, > - Gig cards are cheap. > - PCI bus throughput is really bad (like 32MB/s) > - There is no easy way to "bond" on FreeBSD, but you can just use multiple > IP addresses. It would be cool to have something like Etherchannel, but > that doesn't work. Solaris has Etherchannel. For the sake of completeness, I would add that OpenBSD has the trunk(4) interface which allows to bond multiple network interfaces with configurable trunk protocols. http://www.openbsd.org/cgi-bin/man.cgi?query=trunk&sektion=4&arch=i386&apropos=0&manpath=OpenBSD+Current Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-net@FreeBSD.ORG Fri Aug 26 21:09:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 B793E16A41F for ; Fri, 26 Aug 2005 21:09:25 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7664643D45 for ; Fri, 26 Aug 2005 21:09:25 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 7AC2346B7E; Fri, 26 Aug 2005 17:09:21 -0400 (EDT) Date: Fri, 26 Aug 2005 22:09:21 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: ming fu In-Reply-To: <430E25A3.8080503@borderware.com> Message-ID: <20050826220749.H33851@fledge.watson.org> References: <430E25A3.8080503@borderware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5 ip_gre and netisr_enable=1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2005 21:09:25 -0000 On Thu, 25 Aug 2005, ming fu wrote: > when a GRE packet gets into the ip_gre2(), its gre header is stripped > and sent to netisr_dispatch() for ip_input() processing again. In case, > the net.isr.enable is 1, the packet will be delivered to ip_input > directly instead of put in the queue. Probably, we should use netisr_queue() here instead of netisr_dispatch() to force indirect dispatch in this case? The _dispatch() variant should only be used when the calling context is willing to perform a full netisr dispatch. Robert N M Watson