From owner-freebsd-net Sun May 28 0: 6:33 2000 Delivered-To: freebsd-net@freebsd.org Received: from juice.shallow.net (node16229.a2000.nl [24.132.98.41]) by hub.freebsd.org (Postfix) with ESMTP id DDD3237B8B9 for ; Sun, 28 May 2000 00:06:19 -0700 (PDT) (envelope-from joshua@roughtrade.net) Received: from localhost (joshua@localhost) by juice.shallow.net (8.9.3/8.9.3) with ESMTP id JAA04399; Sun, 28 May 2000 09:05:50 +0200 (CEST) (envelope-from joshua@roughtrade.net) Date: Sun, 28 May 2000 09:05:50 +0200 (CEST) From: Joshua Goodall To: Steve Shah Cc: Mike Silbersack , Olaf Hoyer , freebsd-net@FreeBSD.ORG Subject: Re: BPF vs. promiscuous mode In-Reply-To: <20000524072320.C14568@clickarray.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > What would have been entertaining is to try and put ever student > on their own subnet. This would keep the script kiddies from > doing broadcast based attacks since all the other hosts would just > ignore the packets within the first few checks in their IP stack. > There are certainly enough networks to support a few thousand > 30 bit netmasks.... > The RIR's should beat you into the ground with a cluestick if you try that. - J To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 28 4:32:29 2000 Delivered-To: freebsd-net@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id A480137B53D for ; Sun, 28 May 2000 04:32:25 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost (shuttle.sixyards.wide.toshiba.co.jp [3ffe:501:100f:0:200:f8ff:fe01:61cf]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id UAA24732; Sun, 28 May 2000 20:18:46 +0900 (JST) Date: Sun, 28 May 2000 20:29:36 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: jsilva@utad.pt Cc: freebsd-net@FreeBSD.ORG Subject: Re: help In-Reply-To: In your message of "Fri, 26 May 2000 10:50:41 +0100" <200005260848.KAA09332@marao.utad.pt> References: <200005260848.KAA09332@marao.utad.pt> User-Agent: Wanderlust/2.3.0 (Roam) Emacs/20.6 Mule/4.0 (HANANOEN) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 24 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> On Fri, 26 May 2000 10:50:41 +0100, >>>>> "Jorge Sa' Silva" said: > I have installed the FreeBSD 4.0. How can I use the IPv6 functionalities - > for example the ping6 between 2 IPv6 - Ethernet machines? Is it necessary > to modify any configuration file or to use the ifconfig? How? Basically no. However, if you don't have an IPv6 router that sends router advertisements on your segment, you might have to configure some IPv6 addresses by hand. If this is the case, see ifconfig(8). > Can I use the route command to the IPv6 address translation tables, like > the arp in IPv4? I don't understand what "IPv6 address translation table" means...but in any case, you don't have to use the route command to configure the IPv6 routing table in a typical usage. The kernel will configure an appropriate default route automatically. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 28 4:40:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 0BBBE37B540 for ; Sun, 28 May 2000 04:40:14 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost (shuttle.sixyards.wide.toshiba.co.jp [3ffe:501:100f:0:200:f8ff:fe01:61cf]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id UAA24769; Sun, 28 May 2000 20:26:39 +0900 (JST) Date: Sun, 28 May 2000 20:37:28 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: jsilva@utad.pt Cc: freebsd-net@FreeBSD.ORG Subject: Re: help In-Reply-To: In your message of "Fri, 26 May 2000 10:50:41 +0100" <200005260848.KAA09332@marao.utad.pt> References: <200005260848.KAA09332@marao.utad.pt> User-Agent: Wanderlust/2.3.0 (Roam) Emacs/20.6 Mule/4.0 (HANANOEN) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 18 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (although I responded to the following question in another list, I'll repeat the answer here. Sorry for the duplication) >>>>> On Fri, 26 May 2000 10:50:41 +0100, >>>>> "Jorge Sa' Silva" said: > Is it possible to run and debug the FreeBSD kernel source in the same > machine, without the need of a null modem between 2 machines? Sorry, I can't understand your question. However, you might want to look at the following URL: http://www.freebsd.org/handbook/kerneldebug.html JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 28 11:19:39 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id B2A1337B56F for ; Sun, 28 May 2000 11:19:37 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA18451; Sun, 28 May 2000 14:19:28 -0400 (EDT) (envelope-from wollman) Date: Sun, 28 May 2000 14:19:28 -0400 (EDT) From: Garrett Wollman Message-Id: <200005281819.OAA18451@khavrinen.lcs.mit.edu> To: Joshua Goodall Cc: Steve Shah , Mike Silbersack , Olaf Hoyer , freebsd-net@FreeBSD.ORG Subject: Re: BPF vs. promiscuous mode In-Reply-To: References: <20000524072320.C14568@clickarray.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > The RIR's should beat you into the ground with a cluestick if you try > that. Depends on who you are and how much pull you have.... (Speaking as manager of 3/64ths of 18.0.0.0/8.) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 28 22:11:26 2000 Delivered-To: freebsd-net@freebsd.org Received: from elmls01.ce.mediaone.net (elmls01.ce.mediaone.net [24.131.128.25]) by hub.freebsd.org (Postfix) with ESMTP id 0747937BF42 for ; Sun, 28 May 2000 22:11:20 -0700 (PDT) (envelope-from dcschooley@ieee.org) Received: from [192.168.1.4] (el01-24-131-141-107.ce.mediaone.net [24.131.141.107]) by elmls01.ce.mediaone.net (8.8.7/8.8.7) with ESMTP id AAA04575 for ; Mon, 29 May 2000 00:14:46 -0500 (CDT) Mime-Version: 1.0 X-Sender: dcs@192.168.1.2 Message-Id: x-advocacy: An Apple a Day Keeps Windows Away Date: Mon, 29 May 2000 00:01:13 -0500 To: freebsd-net@freebsd.org From: David Schooley Subject: Strange Network Traffic Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, My FreeBSD 4.0-Stable box is part of a LAN that gets out onto the internet via a Linksys Cable/DSL router and cable modem. I used to route packets through the FreeBSD box using NAT, but the Linksys thing lets me do strange things to the BSD side without cutting off the rest of the network from the internet. I am the only user on the LAN. The Linksys router acts as a firewall, but since I don't really know how good it is for that, I am using ipfw to provide backup protection for the FreeBSD box. The router's IP address is 192.168.1.1 to the LAN. The IP address of the FreeBSD box is 192.168.1.2 on fxp0. Both address are fixed. fxp1 is a second ethernet card on the FreeBSD machine, but it only carries AppleTalk traffic and does not have an IP address. My ruleset looks like this: 00100 allow ip from any to any via lo0 00200 deny log logamount 100 ip from any to 127.0.0.0/8 00250 deny log logamount 100 ip from 127.0.0.0/8 to any via fxp0 00300 allow ip from 192.168.1.2 to 192.168.1.0/24 00400 allow ip from 192.168.1.0/24 to 192.168.1.2 00500 check-state 00600 allow ip from any to any frag 00700 allow tcp from 192.168.1.2 to any keep-state setup 00800 allow udp from any 53 to 192.168.1.2 00900 allow udp from 192.168.1.2 to any 53 01000 deny log logamount 100 ip from any to any 65535 deny ip from any to any I log all failures so that I can see what makes it through the Linksys. Now for the question, the following shows up in the security log: May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 255.255.255.255:162 in via fxp1 May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 255.255.255.255:162 in via fxp0 and later, it happens again: May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 255.255.255.255:162 in via fxp1 May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 255.255.255.255:162 in via fxp0 The Linksys shouldn't be doing anything with SNMP, so are evil crackers trying to do something? -- --------------------------------------------------- David C. Schooley, Ph.D. Transmission Operations/Technical Operations Support Commonwealth Edison Company work phone: 630-691-4466/(472)-4466 work email: mailto:david.c.schooley@ucm.com home email: mailto:dcschooley@ieee.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 28 22:22:28 2000 Delivered-To: freebsd-net@freebsd.org Received: from hydrant.intranova.net (hydrant.intranova.net [209.201.95.10]) by hub.freebsd.org (Postfix) with ESMTP id 3741B37BA4C for ; Sun, 28 May 2000 22:22:19 -0700 (PDT) (envelope-from oogali@intranova.net) Received: from localhost (localhost [127.0.0.1]) by hydrant.intranova.net (Postfix) with ESMTP id 6A9CAE0CCD; Mon, 29 May 2000 01:23:31 -0400 (EDT) Date: Mon, 29 May 2000 01:23:31 -0400 (EDT) From: Omachonu Ogali To: David Schooley Cc: freebsd-net@freebsd.org Subject: Re: Strange Network Traffic In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 29 May 2000, David Schooley wrote: > Hi, > > My FreeBSD 4.0-Stable box is part of a LAN that gets out onto the > internet via a Linksys Cable/DSL router and cable modem. I used to > route packets through the FreeBSD box using NAT, but the Linksys > thing lets me do strange things to the BSD side without cutting off > the rest of the network from the internet. I am the only user on the > LAN. The Linksys router acts as a firewall, but since I don't really > know how good it is for that, I am using ipfw to provide backup > protection for the FreeBSD box. > > The router's IP address is 192.168.1.1 to the LAN. The IP address of > the FreeBSD box is 192.168.1.2 on fxp0. Both address are fixed. fxp1 > is a second ethernet card on the FreeBSD machine, but it only carries > AppleTalk traffic and does not have an IP address. > > My ruleset looks like this: > > 00100 allow ip from any to any via lo0 > 00200 deny log logamount 100 ip from any to 127.0.0.0/8 > 00250 deny log logamount 100 ip from 127.0.0.0/8 to any via fxp0 > 00300 allow ip from 192.168.1.2 to 192.168.1.0/24 > 00400 allow ip from 192.168.1.0/24 to 192.168.1.2 > 00500 check-state > 00600 allow ip from any to any frag > 00700 allow tcp from 192.168.1.2 to any keep-state setup > 00800 allow udp from any 53 to 192.168.1.2 > 00900 allow udp from 192.168.1.2 to any 53 > 01000 deny log logamount 100 ip from any to any > 65535 deny ip from any to any > > I log all failures so that I can see what makes it through the > Linksys. Now for the question, the following shows up in the security > log: > > May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 > 255.255.255.255:162 in via fxp1 > May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 > 255.255.255.255:162 in via fxp0 > > and later, it happens again: > > May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 > 255.255.255.255:162 in via fxp1 > May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 > 255.255.255.255:162 in via fxp0 > > The Linksys shouldn't be doing anything with SNMP, so are evil > crackers trying to do something? > > The router is broadcasting SNMP traps (port 162) to the LAN. -- +-----------------------------------------------------------------------+ | Omachonu Ogali oogali@intranova.net | | Intranova Networking Group http://www.intranova.net | | PGP Key ID: 0xBFE60839 | | PGP Fingerprint: 8 51 14 FD 2A 87 53 D1 E3 AA 12 12 01 93 BD 34 | +-----------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 0:37:49 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 7AEA037BBDC; Mon, 29 May 2000 00:37:42 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA03010; Mon, 29 May 2000 13:05:41 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Mon, 29 May 2000 13:05:41 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id NAA07137; Mon, 29 May 2000 13:04:46 +0530 Date: Mon, 29 May 2000 13:04:45 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: How do I time in kernel... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I would like to know how to get time of the day in side kernel. When I used gettimeofday() in side kernel, it was giving panic on 3.3 FreeBSD release. It didnt panic on 3.1-RELEASE. So what is the problem? Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot why 3.1 is not panicking? Next question is how can I achieve the equal functionality of gettimeofday() call in kernel? Is there anyway? One more question: Is it wrong to call system call from kernel files? Any help is appreciated. thanks --gb -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 0:39:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from elmls01.ce.mediaone.net (elmls01.ce.mediaone.net [24.131.128.25]) by hub.freebsd.org (Postfix) with ESMTP id C4A8537BC11 for ; Mon, 29 May 2000 00:39:09 -0700 (PDT) (envelope-from dcschooley@ieee.org) Received: from [192.168.1.4] (el01-24-131-141-107.ce.mediaone.net [24.131.141.107]) by elmls01.ce.mediaone.net (8.8.7/8.8.7) with ESMTP id CAA23703; Mon, 29 May 2000 02:42:36 -0500 (CDT) Mime-Version: 1.0 X-Sender: dcs@192.168.1.2 Message-Id: In-Reply-To: References: x-advocacy: An Apple a Day Keeps Windows Away Date: Mon, 29 May 2000 02:38:54 -0500 To: Omachonu Ogali From: David Schooley Subject: Re: Strange Network Traffic Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 1:23 AM -0400 5/29/00, Omachonu Ogali wrote: > > > >> May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 >> 255.255.255.255:162 in via fxp1 >> May 25 23:30:00 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1030 >> 255.255.255.255:162 in via fxp0 >> >> and later, it happens again: >> >> May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 >> 255.255.255.255:162 in via fxp1 >> May 28 16:52:04 bicycle /kernel: ipfw: 1000 Deny UDP 192.168.1.1:1031 >> 255.255.255.255:162 in via fxp0 >> >> The Linksys shouldn't be doing anything with SNMP, so are evil >> crackers trying to do something? >> >> > >The router is broadcasting SNMP traps (port 162) to the LAN. > I know that's what I am getting, but the documentation for the router doesn't say anything about support for SNMP, nor does the router respond when SNMP packets go the other way, so I got suspicious. I have been playing around with it, and cycling power to the router causes those packets to be sent out, so I guess the router really is doing it. -- --------------------------------------------------- David C. Schooley, Ph.D. Transmission Operations/Technical Operations Support Commonwealth Edison Company work phone: 630-691-4466/(472)-4466 work email: mailto:david.c.schooley@ucm.com home email: mailto:dcschooley@ieee.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 1:48:20 2000 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 4562A37B8B3; Mon, 29 May 2000 01:48:15 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e4T98jR04260; Mon, 29 May 2000 02:08:45 -0700 (PDT) Date: Mon, 29 May 2000 02:08:45 -0700 From: Alfred Perlstein To: "G.B.Naidu" Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: How do I time in kernel... Message-ID: <20000529020845.U28594@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from gbnaidu@sasi.com on Mon, May 29, 2000 at 01:04:45PM +0530 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * G.B.Naidu [000529 01:13] wrote: > > Hi, > > I would like to know how to get time of the day in side kernel. When I > used gettimeofday() in side kernel, it was giving panic on 3.3 FreeBSD > release. It didnt panic on 3.1-RELEASE. So what is the problem? > > Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot > why 3.1 is not panicking? > > Next question is how can I achieve the equal functionality of > gettimeofday() call in kernel? Is there anyway? > > One more question: Is it wrong to call system call from kernel files? It depends on how you call it, look at the sendfile implementation and see how it has to call writev(), userland_writev() != kernel_writev(), you need to munge with the arguements. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 2:32: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 0446837B8D7; Mon, 29 May 2000 02:31:57 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id LAA25075; Mon, 29 May 2000 11:15:12 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "G.B.Naidu" Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: How do I time in kernel... In-reply-to: Your message of "Mon, 29 May 2000 13:04:45 +0530." Date: Mon, 29 May 2000 11:15:12 +0200 Message-ID: <25073.959591712@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot >why 3.1 is not panicking? It's called "microtime()" in the kernel. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 4:22:14 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id E4E0F37BA51; Mon, 29 May 2000 04:22:01 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id QAA07950; Mon, 29 May 2000 16:50:00 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Mon, 29 May 2000 16:48:50 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id QAA07278; Mon, 29 May 2000 16:28:56 +0530 Date: Mon, 29 May 2000 16:28:56 +0530 (IST) From: "G.B.Naidu" To: Alfred Perlstein Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: How do I time in kernel... In-Reply-To: <20000529020845.U28594@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, thanks a lot for the reply. Please see my comments below: On Mon, 29 May 2000, Alfred Perlstein wrote: > * G.B.Naidu [000529 01:13] wrote: > > > > Hi, > > > > I would like to know how to get time of the day in side kernel. When I > > used gettimeofday() in side kernel, it was giving panic on 3.3 FreeBSD > > release. It didnt panic on 3.1-RELEASE. So what is the problem? > > > > Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot > > why 3.1 is not panicking? > > > > Next question is how can I achieve the equal functionality of > > gettimeofday() call in kernel? Is there anyway? > > > > One more question: Is it wrong to call system call from kernel files? > > It depends on how you call it, look at the sendfile implementation and > see how it has to call writev(), userland_writev() != kernel_writev(), > you need to munge with the arguements. > The kernel_writev() calls requre a proc structure. Now my question is how can I get a proc structure? My requirement is as follows: I want to open a driver as open("/dev/nic0"...), then I want to write() and read() from the driver. I have two choices. Either to go for the kernel or user level. Kernel level is to restrict the normal user from fiddling with the driver data. User lever is for simplicity. Now which choice should I make? If I want to go for kernel level, my question is how do I do open, write, read and close. For the kernel versions of these system calls, I need proc structure. How do I get it? Next I read in the book : design of 4.4 BSD O/S that the user interface for the system calls is thorugh library routines write(), open() etc. I want to know where is the source code for these user land write(), open() etc library calls. Where this implementation of interface between library calls and system calls? How it is done? Any help is appreciated. thanks --gb -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 4:56:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 58BB737B558; Mon, 29 May 2000 04:56:43 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id RAA09561; Mon, 29 May 2000 17:24:33 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Mon, 29 May 2000 17:23:58 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id PAA07215; Mon, 29 May 2000 15:02:47 +0530 Date: Mon, 29 May 2000 15:02:47 +0530 (IST) From: "G.B.Naidu" To: Poul-Henning Kamp Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: How do I time in kernel... In-Reply-To: <25073.959591712@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Thanks guys, for the answer. We tracked that down and now it is not panicing. Thanks Poul-Henning for the answer. thanks --gb On Mon, 29 May 2000, Poul-Henning Kamp wrote: > > >Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot > >why 3.1 is not panicking? > > It's called "microtime()" in the kernel. > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD coreteam member | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 9:19: 9 2000 Delivered-To: freebsd-net@freebsd.org Received: from eden.dei.uc.pt (eden.dei.uc.pt [193.137.203.230]) by hub.freebsd.org (Postfix) with ESMTP id 652CD37BC4F for ; Mon, 29 May 2000 09:18:57 -0700 (PDT) (envelope-from nunov@eden.dei.uc.pt) Received: from localhost (nunov@localhost) by eden.dei.uc.pt (8.10.1/8.10.1) with ESMTP id e4TFqCF21829; Mon, 29 May 2000 16:54:52 +0100 (WET DST) Date: Mon, 29 May 2000 16:52:11 +0100 (WET DST) From: Nuno Veiga To: freebsd-net@FreeBSD.ORG Cc: Jorge Miguel Sa Silva , Nuno Veiga Subject: FreeBSD 2.2 -> 4.0 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! I have the code of an ATM driver for FreeBSD 2.2 I would like to port it to FreeBSD 4.0 What cautions should I have? When I tried to compile the code, I got a warning: "Don't #include ioctl.h in the kernel. Include xxxio.h instead." So I did it. Then an error: ... ################: MAKING DRIVER ################ #####: [1]> [install] driver (host) #####: [2]> [install] driver/FREEBSD (host) #####: [3]> [install] driver/FREEBSD/i386 (host) #####: [5]> [install] driver/FREEBSD/i386/host (host) gmake[6]: *** No rule to make target `/usr/include/machine/spl.h', needed by `_lebuscom.ldep'. Stop. gmake[5]: *** [host] Error 2 gmake[4]: *** [install] Error 2 gmake[3]: *** [install] Error 2 gmake[2]: *** [install] Error 2 gmake[1]: *** [driver] Error 2 gmake: *** [all] Error 2 Could you help me? Thank you Nuno Veiga To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 12:39:38 2000 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 3061B37BCE8; Mon, 29 May 2000 12:39:33 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e4TKEMh22398; Mon, 29 May 2000 13:14:22 -0700 (PDT) Date: Mon, 29 May 2000 13:14:22 -0700 From: Alfred Perlstein To: "G.B.Naidu" Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: How do I time in kernel... Message-ID: <20000529131422.W28594@fw.wintelcom.net> References: <20000529020845.U28594@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from gbnaidu@sasi.com on Mon, May 29, 2000 at 04:28:56PM +0530 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * G.B.Naidu [000529 04:58] wrote: > > On Mon, 29 May 2000, Alfred Perlstein wrote: > > > It depends on how you call it, look at the sendfile implementation and > > see how it has to call writev(), userland_writev() != kernel_writev(), > > you need to munge with the arguements. > > > > The kernel_writev() calls requre a proc structure. Now my question is how > can I get a proc structure? All system calls pass the proc structure pointer in as the first arguement. > My requirement is as follows: I want to open a driver as > open("/dev/nic0"...), then I want to write() and read() from the driver. I > have two choices. Either to go for the kernel or user level. Kernel level > is to restrict the normal user from fiddling with the driver data. User > lever is for simplicity. Well since you can control exactly what data is allowed into the kernel there's no reason why you can't keep it simple and use the userland interface and force the constraints within the kernel code. > > Now which choice should I make? I'm not sure I fully understand what you're trying to accomplish so it's hard to say. > If I want to go for kernel level, my question is how do I do open, write, > read and close. For the kernel versions of these system calls, I need proc > structure. How do I get it? You can use curproc to 'borrow' a process context, however you can't do this from an interrupt handler so you'll have to be careful. > Next I read in the book : design of 4.4 BSD O/S that the user interface > for the system calls is thorugh library routines write(), open() etc. I > want to know where is the source code for these user land write(), > open() etc library calls. Where this implementation of interface between > library calls and system calls? How it is done? see the files in src/sys/i386/i386 for how the userland arguments are copying into a trap frame for the syscalls. trap.c should help. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 14:32:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from campbell.cwx.net (Campbell.cwx.net [216.17.176.12]) by hub.freebsd.org (Postfix) with ESMTP id 1BD9C37B603 for ; Mon, 29 May 2000 14:32:40 -0700 (PDT) (envelope-from allenc@campbell.cwx.net) Received: (from allenc@localhost) by campbell.cwx.net (8.9.3/8.9.3) id PAA22232 for freebsd-net@freebsd.org; Mon, 29 May 2000 15:32:38 -0600 (MDT) (envelope-from allenc) Date: Mon, 29 May 2000 15:32:38 -0600 (MDT) From: Allen Campbell Message-Id: <200005292132.PAA22232@campbell.cwx.net> To: freebsd-net@freebsd.org Subject: natd: failed to write packet back: Permission denied Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Natd is reporting: natd: failed to write packet back: Permission denied I have traced this to an interaction between Samba and natd. Samba appears to be broadcasting to the lo0 interface. I have configured smb.conf with `bind interfaces only = true' to the internal Ethernet interface and the loopback interface to prevent broadcasts to the ISP subnet. It doesn't surprise me to see Samba performing broadcasts on the configured interfaces. I want Samba on lo0 for the password change facility. I have found that natd is translating Samba broadcasts to the loopback interface into packets with the source address of the divert socket interface. Output from natd -v is shown here (216.17.176.12 is the external interface IP address): Out [UDP] [UDP] 127.0.0.1:137 -> 127.255.255.255:137 aliased to [UDP] 216.17.176.12:137 -> 127.255.255.255:137 natd: failed to write packet back: Permission denied My ipfw setup, based largely on /etc/rc.firewall, stops such packets. The relevant parts of the ipfw configuration is shown here: (dc0 = external interface) 00100 divert 8668 ip from any to any via dc0 00200 allow ip from any to any via lo0 00300 deny ip from any to 127.0.0.0/8 [ ... ] My question is; Why is natd interfering with the lo0 broadcast packets? The divert socket is specific to the external interface (dc0) and the lo0 broadcast packets are clearly from and to the loopback interface. I'm not an IP guru so I don't fully understand the implications of broadcasting to the loopback interface. Perhaps this is normal behavior for natd. What approach should I take? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 14:39:27 2000 Delivered-To: freebsd-net@freebsd.org Received: from dustdevil.waterspout.com (standpipe.waterspout.com [208.13.60.152]) by hub.freebsd.org (Postfix) with ESMTP id 9010837B63D for ; Mon, 29 May 2000 14:39:23 -0700 (PDT) (envelope-from csg@dustdevil.waterspout.com) Received: (from csg@localhost) by dustdevil.waterspout.com (8.9.3/8.9.3) id QAA15998; Mon, 29 May 2000 16:39:17 -0500 (EST) (envelope-from csg) Date: Mon, 29 May 2000 16:39:17 -0500 From: "C. Stephen Gunn" To: Victor Ponomarev Cc: Net Subject: Re: VLAN improvement needed... Message-ID: <20000529163917.A15841@waterspout.com> References: <392E754B.BCF8AC96@unet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <392E754B.BCF8AC96@unet.ru>; from vick@unet.ru on Fri, May 26, 2000 at 04:59:56PM +0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, May 26, 2000 at 04:59:56PM +0400, Victor Ponomarev wrote: > Now VLAN support in stable is bad. I'm not sure what you mean by now. if_vlan has always had some shortcomings. I don't think anything has changed recently. > When host send a packet about 1514 byte switch trunk port add 4 byte and > router trunk port substitute vlan tag to another and send it back to > switch. The latter remove vlan header and send packet to appropriate > vlan ports. > > Currently FreeBSD router simply drop large packet on it's interface. > That's very bad... Actually several ethernet cards drop these frames as giants. There are also a few (ti in particular) that do not. > The existing solution on these problem for Intel card may be found at > http://www.euitt.upm.es/~pjlobo/ I've reviewed this patch carefully before. I still don't see any changes the the FXP driver that allow reception of tagged frames. I do have some modifications around that allow larger frame sizes on 3Com 3c905B-TX cards. I'll dug that patch up, and put it online: http://www.physics.purdue.edu/~csg/xl-vlan.patch > But there's another problem with small ip packet. When BSD router strip > ethernet header for payload < 46 it strip padding bytes also. But when > it reinserted data with another vlan header it don't add padding bytes > and we have runts packets on interface. Do you think this is related to VLANs because of the encapsulation? Do you have a method to duplicate this behavior? - Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 17:57:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from kame199.kame.net (kame199.kame.net [203.178.141.199]) by hub.freebsd.org (Postfix) with ESMTP id D66C837B507; Mon, 29 May 2000 17:57:13 -0700 (PDT) (envelope-from itojun@kame.net) Received: (from itojun@localhost) by kame199.kame.net (8.8.8/3.7W) id JAA03008; Tue, 30 May 2000 09:57:12 +0900 (JST) Date: Tue, 30 May 2000 09:57:12 +0900 (JST) From: Jun-ichiro itojun Hagino Message-Id: <200005300057.JAA03008@kame199.kame.net> To: current-users@freebsd.org, freebsd-net@FreeBSD.ORG Subject: BPF fix to if_loop.c Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following one-liner avoids junk (non-matching DLT_xx encapsulation) to be injected to bpf, non-loopback ifp is passed to if_simloop. itojun Index: if_loop.c =================================================================== RCS file: /home/ncvs/src/sys/net/if_loop.c,v retrieving revision 1.49 diff -u -r1.49 if_loop.c --- if_loop.c 2000/05/26 13:47:02 1.49 +++ if_loop.c 2000/05/30 00:54:48 @@ -223,7 +223,7 @@ } /* Let BPF see incoming packet */ - if (ifp->if_bpf) { + if (ifp->if_bpf && ifp->if_flags & IFF_LOOPBACK) { struct mbuf m0, *n = m; /* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 29 23:13:52 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 41C8237BD4A; Mon, 29 May 2000 23:13:41 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id LAA29173; Tue, 30 May 2000 11:41:33 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Tue, 30 May 2000 11:41:30 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id LAA01428; Tue, 30 May 2000 11:41:30 +0530 (IST) Date: Tue, 30 May 2000 11:41:30 +0530 (IST) From: "G.B.Naidu" To: freebsd-hackers@FreeBSD.org Cc: freebsd-net@FreeBSD.org Subject: system hangs... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, We have made some kernel changes. And accordingly we are testing the changes using some user level daemon. After sending some packets, the system hangs. The number of packets sent before the system hangs varies from time to time. Could some body tell me how to know what is happening? How do I find out the reason for hanging? Is there anyway to get such information through some core dump? I have enabled taking dumps and it is dumping when the system panics but not when it hangs. Is memory leakage can cause a system hang? If so how do I find out that there is a memory leakage? thanks --gb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 0:58:14 2000 Delivered-To: freebsd-net@freebsd.org Received: from ns.unet.ru (ns.unet.ru [195.9.254.3]) by hub.freebsd.org (Postfix) with ESMTP id 1749E37B9EF for ; Tue, 30 May 2000 00:58:05 -0700 (PDT) (envelope-from vick@unet.ru) Received: from unet.ru (localhost [127.0.0.1]) by ns.unet.ru (8.9.3/Unet) with ESMTP id LAA92750; Tue, 30 May 2000 11:57:58 +0400 (MSD) (envelope-from vick@unet.ru) Message-ID: <39337486.2460358A@unet.ru> Date: Tue, 30 May 2000 11:57:58 +0400 From: Vick Organization: LPI X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: "C. Stephen Gunn" Cc: Net Subject: Re: VLAN improvement needed... References: <392E754B.BCF8AC96@unet.ru> <20000529163917.A15841@waterspout.com> Content-Type: multipart/mixed; boundary="------------2844100A2650386141852C58" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------2844100A2650386141852C58 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit "C. Stephen Gunn" wrote: > On Fri, May 26, 2000 at 04:59:56PM +0400, Victor Ponomarev wrote: > > > Now VLAN support in stable is bad. > > I'm not sure what you mean by now. if_vlan has always had some > shortcomings. I don't think anything has changed recently. May be I didn't correctly understand the reason for introducing this pseudo interface, but I've thought it's done for interVLAN connectivity. By the way does anyone advice a good starting point for phys level network support in BSD (realization strategy, common order of pseudo interface applying to packets and so on..) > > > When host send a packet about 1514 byte switch trunk port add 4 byte and > > router trunk port substitute vlan tag to another and send it back to > > switch. The latter remove vlan header and send packet to appropriate > > vlan ports. > > > > Currently FreeBSD router simply drop large packet on it's interface. > > That's very bad... > > Actually several ethernet cards drop these frames as giants. There > are also a few (ti in particular) that do not. > > > The existing solution on these problem for Intel card may be found at > > http://www.euitt.upm.es/~pjlobo/ > > I've reviewed this patch carefully before. I still don't see any > changes the the FXP driver that allow reception of tagged frames. > > I do have some modifications around that allow larger frame sizes on > 3Com 3c905B-TX cards. I'll dug that patch up, and put it online: > > http://www.physics.purdue.edu/~csg/xl-vlan.patch > Well your patch looks more reasonable, because you really change MTU. > > But there's another problem with small ip packet. When BSD router strip > > ethernet header for payload < 46 it strip padding bytes also. But when > > it reinserted data with another vlan header it don't add padding bytes > > and we have runts packets on interface. > > Do you think this is related to VLANs because of the encapsulation? > > Do you have a method to duplicate this behavior? > I think it related to VLAN realization. See please tcpdump file attached, frames 9,10; 35-38; and so on... 192.168.2.1 is VLAN 4 spok is VLAN 3 It's clearly than undersized packets didn't put back correctly... > > - Steve --------------2844100A2650386141852C58 Content-Type: application/octet-stream; name="cap.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cap.gz" H4sICG5nMzkAA2NhcADtWgtwVNUZ/vfuzSWEVwJFI5SwYawlSkN2E0gIr9x9BHayL3Y3JEjK Jm2BSDGPDSlC1ZuCCk0owwxORQwPIVQmQdpBbaVIyciMtQzTEQY6DkN5NBWDLYK1lE47Nf3P f5PNfW2WWsVIe3fu7tlz7v3O953z/efe+++eOX7oRQ546Nt6egBM+Hl+We6Mvz9rhiIsF1E9 2+BS1vBFv/4BgDlZAFMyCDweTHWd+1NGywhY4m5WdM4C1XYB8cqvJX06vFF6vD8i3ooVPFRi me2w+zcd516BLV//2aUuxOOTwQXgm4wNTWlPz+3cz5kQZyT8EF+FGSthlkmWiZul2FksugIu j0M0fuEhYGL93VT2hywjb8m9Ev9Yf1LaM59Rf5EaHlbiGSv79VGvsf4e/uVppu8vlawv1if1 V1ybDrOeboLeHm+vP6ImVLLRHs76XqPsm0Y1ppXv71tK+/hz6Ntdy4Mdq+zx5jUnCz3UJDhX 9I7zcJ6HFuDq5rIT6jgLVH4EwPFJr5pMPEcjqUZs+9tWzcwRoiS4bhsxVMfHvNzLkXBjiFOG v8Y4Vh5maDQ+LYgpvj8TUYsqR08q2GSTEWUvL0e8OQg1J954E54kVCXEY2jX9OzUIzj5QRpB R1SjtwgRZwVSJxXsva6MNK6eh0IsF8YbP8KTBOeAeAxpAiKtQ5B18ZjVPUTM7A8aIqVPKnjy 9wB4tDOxtyysvdhR7HI6nPP17aJIjHLVjPTaiJEkOO4Yo4xoIm+NIG9FtF6Yhaw2BtIzb2R2 9eohPFs0kbdGkLd0XtXhkRcaeHgXy+/Gm8G3ptAMFp3RjNdGRCzC8crLmE3UtveEvPYoxNvW mWA1cAGHxecKl/mDJZZA0D8vKHot1uwc4LxuR9Af8heH+5pDllxW7/SHLB6vNdtWnpNj6/0q +ryiz5ZtBa7skZrv1K5usCyrjVrKaqPfXR6tbaxrwDOtVcD5wnimJSfbaiOd49Q69b4gnZIg fsl1jl/Fw/PI4/l4btswkty2ZInGHUXA1T+A7gguqCchi2M6m4x1piWB2YbLPZ/GvsvL/r8c AGvvKz0x/MQxk6cn+R7Y/JN78z98IuVxN/ggCH4IQbjXeFYlUSMbE1FJiHzRREtW83AIy4fi Rcjub1CEzP2H2jn1DyDZXUj07Mmz1OcqRrSBlVKNiY5ohHKoHmbTNCThPp4V+nyQh5ZRlnm8 ywMOlaHAiopQwF9S4Q447gd8IwXfUivQe58USELRoFXwzhoeduIhO/vnQO3qTaPI1d9cpDHL LlSxM5BuOdexlphUxhRsUVPkUJE5dZ3J3IjTD5AVo4fxxRiyMBN9Fm9VTdXypVGqcvswlsNg 7sFbSBNqZGSJ7RUlWyNrE1tJWDIo2HISD4cR5HA8f7+UTf6e87HGHTtB7DajO+rbThOp7zO2 X5MJNhmw5UZm4pdkgBuscuMY9p4JD/cehE8EFRAAN+4uLHlAxEj00jtANZRFPUurnWvBbp1u t+MnhvEN9szhronWNqwiIelqIXqbkxBJmDvYhVRu5iEd69lu5HaTkEpuX3xR7Z9uM3DRCeif xbvkR8BzMSFNxkJSkmE7SSnA9+3yLQrsZW/LriehSYrdQZfyPB7GpHLQg3d/88WyEk3LaA4+ wRa/xzVP3WK2iPARtoS8btHjKte0XGUtGPHqc4aNFqCb3bU2PPpI1cqlj8Hmjn17Lc/uazt4 6eAekJ3bphwngziTx0kSKv7HxylpS6IIn0oRPlsTGNEJOFaXcZy2VsndDRAYb542p3Lmzzow WD+KwJi0JVGET6UI1y5Vg07In1/goQvru+JF+KkxFOHlX9E49zKKaQ2kTzx/pZoxMe2L71xZ CDp3qanPuUtNRdRYw7p94cMUSAG7X+sosBQ13URHOcTQfH3LNWyZV+p2unQt72FL70UmtmH3 qdB0iVrCrqBX1JxzFlvwBtlVEtaincAWhoUnaVqOsTjA+AjpGLzCWsL+oJ5bO7aEXQ4DPbsY A38wHLFFcq3TIOQRF4oRvDRSnTUPK3N6yxErtlMxNyc/kicXp0dsOTlyWHpKQ4vYmT4x3I+Q Z7XhoWzKU1oVU260WNGUS8Ki/0/53TLl6/fwcAG7Zbvhunsyh81i2uPH+5YraMbX60PT8eIx hyzQDHsgUZ6BMhED5ipEERQLnuGWRsudbkuGhWDGFcyEd+f3QYVXdHtCHn+4wh70l4VcMIIp tuWT2la1Wv3iTGqltCfuCrVPtifK6oylFbwsloUZZsdLkfg+xUMlZ4Fbjykzhi+1J8rqjKXl oTwhHkOb25EgYzjFSlf8WTWxuWhBPK7Oh4h2ln986qKSXVWHgp3R3BKeJMxOiMfQFh5IMHaT 76WxKz2q0coQ/Sz/2NraN2UMr+aALgupxqtLJ7xwoyFe+qSC1c19Ob//3nsU+QcUGVaj2SSF krBwQIUMaatSmxESaZOE0jumbdrLibxlI2/N1HrBj6yaWf5x3BZlPtP9ciJv2chbOq/q8Bja 9YM8dGO5O54XfjeOvBAcpRmvZkQMsTzf3qeIWnssrZRu1iwTn5ygjw3x83zlLp+73OJg1yWj nB8ekwucnOGj4wfM8CkSg4qkoCbvl/xThW4jn5BuSQjdZbrLX2V3+EC7oRvX5JIbCzM17gnh rVUBusfuXU+qvDHd27SXBVl32hAwsxRV9TD2jV0ioAkrAP5ZXs+fOGZK7UlOjqURGbVH1dT0 xiZqkjDzzlPL/jkPR7H9aLwo6fgqRUmgUO2W7gKk14bUun7UTv1LsQwVuaWh9tyOd86fWthP bUQjVCEvRoax6v3VFM7gfj8rKBJX1twCK2gzWXJqkIkaw1KD8hVYnRx0KcUYWZ/ESMKCL4OY 8jd4YFMdjefnyjzy84xCjWnaUNARfMQ9VnqR+siLidmmEfO2LMbcCFl0JMdI8TEGtWoGetsS A0ko/NwY/OJXPOzHmv3x3PnjieROr18zoUeQxXmc0I710wl3Rew+ULuWEQMeRo4DdtdXTels +TF/HD7Vy9tDUBFwB1wV8uIDgBPa93DvVzzc08lFjHeXkreREYm3JPgGGe8/HdP9ZqT23IZp 5LmCMZoZPw/i1Syc8QX3yJmsxTHe24x546PpeGKeD+wXgSJqY6HjvcHuunsjov80lvlywfIb G06SMUydKqJ6axJRSZjxRRP93vFEDs4kB5donHA1C7j6megET/DC7Tgh+T9zQrjCF9cJnYx3 y/FEDs4kB3sGGe/X3+ZhB37Z0T/eage3TCcH549SG6N+JnJ/LpA+sWuz/AtXZGBjJDNjTIwZ Y2KvMdgfhdydZAzjdMi3O988TRkDRva3arJ6FxNZSSgYDGQbJgxJ8KzWQk6+/IbGEc/Rb1mp lqvbY1luhjc0Y0iCJ6MWctgfBsRjSLvzdcw0/4rJpzmfrvkXS7QVxA+aA6kZH7y4Vcnsr/lD EvwrJp+mJX9APIaU2jTU4J9xkd36f8ZFdiPOKpkDTTRo9yuIt+m1JLiFR9xS4o0P7Y8xe2+J meWRXFMR4xnceyizcmrDkDQOnmR1+O2IIrNSHHA6naJzPn7OUz3f4RHFDnwCLHZ5il36J0C7 /3YyK5kG1ZmKzIpNn1kZldF5xtSfaZOvgrSozoOxfGk7/BuEvg9G2SgAAA== --------------2844100A2650386141852C58-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 1:53:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 6F3EF37B90B; Tue, 30 May 2000 01:53:38 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id OAA05451; Tue, 30 May 2000 14:21:29 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Tue, 30 May 2000 14:21:27 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id OAA19347; Tue, 30 May 2000 14:21:23 +0530 (IST) Date: Tue, 30 May 2000 14:21:23 +0530 (IST) From: "G.B.Naidu" To: Joshua Goodall Cc: "Koster, K.J." , freebsd-hackers@FreeBSD.org, freebsd-net@FreeBSD.org Subject: RE: system hangs... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Guys, My system hangs. I know how to take core dumps and start debugging if it is panicing. But the system hangs, then I cant do anything. The only thing I can do is reset or power off and on. What I would like to know is how to handle hangs. I guess that panic and hangs are different. Koster, I will reply to your mail soon. I will try to give all the information I can give. thanks a lot --gb On Tue, 30 May 2000, Joshua Goodall wrote: > > I think, generically, you want to look at > > http://www.freebsd.org/handbook/kerneldebug.html > > in particular 22.4 > > -- > Joshua Goodall > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 2: 5: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 276AC37BD79; Tue, 30 May 2000 02:04:41 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id OAA05884; Tue, 30 May 2000 14:32:35 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Tue, 30 May 2000 14:32:33 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id OAA21093; Tue, 30 May 2000 14:32:30 +0530 (IST) Date: Tue, 30 May 2000 14:32:30 +0530 (IST) From: "G.B.Naidu" To: "Koster, K.J." Cc: freebsd-hackers@FreeBSD.org, freebsd-net@FreeBSD.org Subject: RE: system hangs... In-Reply-To: <59063B5B4D98D311BC0D0001FA7E4522026D75BE@l04.research.kpn.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Please see my comments below: On Tue, 30 May 2000, Koster, K.J. wrote: > > > > We have made some kernel changes. And accordingly we are > > testing the changes using some user level daemon. After > > sending some packets, the system hangs. The number of > > packets sent before the system hangs varies from time to > > time. > > > What kind of changes? What kind of packets? What kind of deamon? What kind > of kernel? We are trying to implement MPLS on FreeBSD. so we are implementing forwarding tables in side the kernel. The chamges are done in ip_output() and ether_output(). We have added some more routing messages and corresponding functions. Dameon we are running is LDP daemon. The packets We are sending to test are ping packets. Kernel version is 3.3-RELEASE > > > > > Could some body tell me how to know what is happening? How > > do I find out the reason for hanging? Is there anyway to get > > such information through some core dump? I have enabled > > taking dumps and it is dumping when the system panics but > > not when it hangs. > > > You can make the system panic manually, and then you have your kernel core. I am concerned about hangs not panic. If it hangs, I cant type even enter. Nothing responds except the reset and power off key. SO is there a way I can take core dumps when the system hangs? > > As for how to know what's happening: printf() is your friend. > Is there a way to redirect the out put of printf() statements into /var/log/messages file? How do I do that? > > > > Is memory leakage can cause a system hang? If so how do I > > find out that there is a memory leakage? > > > There are many good books and web sites that cover basic debugging > techniques. Could you please give me some pointers to these locations and books? I would be glad to know those locations where I can get some debug techniques. > > You have to provide a *lot* more information than this. We can only help you > if you are able to produce some detailed description of your problem. If you > can't tell sitting behind the box, how are we supposed to know what you've > done wrong? If you need any more information, please let me know. The problem is because the system hangs, I cant do anything to find out what's happening. thanks a lot --gb > > Kees Jan > > ============================================== > Everyone is responsible for his own actions, > and (people tend to forget this) the effect > they have on others. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 2:19:38 2000 Delivered-To: freebsd-net@freebsd.org Received: from euitt.upm.es (haddock.euitt.upm.es [138.100.52.102]) by hub.freebsd.org (Postfix) with ESMTP id C1F2E37B5DD for ; Tue, 30 May 2000 02:19:21 -0700 (PDT) (envelope-from pjlobo@euitt.upm.es) Received: from deneb.euitt.upm.es (deneb.euitt.upm.es [138.100.52.12]) by euitt.upm.es (8.9.3/8.9.3) with ESMTP id LAA29632; Tue, 30 May 2000 11:15:46 +0200 (MET DST) Date: Tue, 30 May 2000 11:15:45 +0200 (CEST) From: "Pedro J. Lobo" To: "C. Stephen Gunn" Cc: Victor Ponomarev , Net Subject: Re: VLAN improvement needed... In-Reply-To: <20000529163917.A15841@waterspout.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 29 May 2000, C. Stephen Gunn wrote: > On Fri, May 26, 2000 at 04:59:56PM +0400, Victor Ponomarev wrote: > > > Currently FreeBSD router simply drop large packet on it's interface. > > That's very bad... > > Actually several ethernet cards drop these frames as giants. There > are also a few (ti in particular) that do not. > > > The existing solution on these problem for Intel card may be found at > > http://www.euitt.upm.es/~pjlobo/ > > I've reviewed this patch carefully before. I still don't see any > changes the the FXP driver that allow reception of tagged frames. Since Matthew Dodd fixed the existing vlan implementation (which, as I had previously recognized, is far cleaner than mine) I have removed my original patches. However, I still mantain a patch that removes the MTU limitation for the fxp driver and allows it to receive full-length packets (1500 bytes plus header). You can find it at: http://www.euitt.upm.es/~pjlobo/fxp-mtu-patch-4.x > I do have some modifications around that allow larger frame sizes on > 3Com 3c905B-TX cards. I'll dug that patch up, and put it online: > > http://www.physics.purdue.edu/~csg/xl-vlan.patch Your patch does almost exactly the same as mine. Cheers, Pedro. -- --------------------------------------------------------------------- Pedro José Lobo Perea Tel: +34 91 336 78 19 Centro de Cálculo Fax: +34 91 331 92 29 E.U.I.T. Telecomunicación e-mail: pjlobo@euitt.upm.es Universidad Politécnica de Madrid Ctra. de Valencia, Km. 7 E-28031 Madrid - España / Spain To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 4:38:37 2000 Delivered-To: freebsd-net@freebsd.org Received: from lychee.itojun.org (INS40.chiba-ap2.dti.ne.jp [210.170.183.168]) by hub.freebsd.org (Postfix) with ESMTP id 4AEF137BADC for ; Tue, 30 May 2000 04:38:32 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from kiwi.itojun.org (localhost [127.0.0.1]) by itojun.org (8.10.0/3.7W) with ESMTP id e4UBaos07132 for ; Tue, 30 May 2000 20:36:50 +0900 (JST) To: freebsd-net@FreeBSD.ORG In-reply-to: itojun's message of Tue, 30 May 2000 09:57:12 JST. <200005300057.JAA03008@kame199.kame.net> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: BPF fix to if_loop.c From: Jun-ichiro itojun Hagino Date: Tue, 30 May 2000 20:36:50 +0900 Message-ID: <7130.959686610@lychee.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The following one-liner avoids junk (non-matching DLT_xx encapsulation) > to be injected to bpf, non-loopback ifp is passed to if_simloop. >- if (ifp->if_bpf) { >+ if (ifp->if_bpf && ifp->if_flags & IFF_LOOPBACK) { sorry this was incorrect. however, I think there should be check if ifp really wants DLT_NULL encapsulation or not. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 14:56: 2 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 6A96637B578 for ; Tue, 30 May 2000 14:56:00 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id OAA00803; Tue, 30 May 2000 14:55:27 -0700 (PDT) From: Archie Cobbs Message-Id: <200005302155.OAA00803@bubba.whistle.com> Subject: Re: BPF fix to if_loop.c In-Reply-To: <7130.959686610@lychee.itojun.org> from Jun-ichiro itojun Hagino at "May 30, 2000 08:36:50 pm" To: itojun@iijlab.net (Jun-ichiro itojun Hagino) Date: Tue, 30 May 2000 14:55:26 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jun-ichiro itojun Hagino writes: > > The following one-liner avoids junk (non-matching DLT_xx encapsulation) > > to be injected to bpf, non-loopback ifp is passed to if_simloop. > >- if (ifp->if_bpf) { > >+ if (ifp->if_bpf && ifp->if_flags & IFF_LOOPBACK) { > > sorry this was incorrect. however, I think there should be check > if ifp really wants DLT_NULL encapsulation or not. Hmm.. maybe a better fix is to remove this BPF section altogether.. ? It's only going to result in showing the same packet twice, right? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 18: 6:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id BDFAD37BDCC for ; Tue, 30 May 2000 18:06:15 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from kiwi.itojun.org (localhost.itojun.org [127.0.0.1]) by coconut.itojun.org (8.9.3+3.2W/3.7W) with ESMTP id KAA04816; Wed, 31 May 2000 10:06:11 +0900 (JST) To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG In-reply-to: archie's message of Tue, 30 May 2000 14:55:26 MST. <200005302155.OAA00803@bubba.whistle.com> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: BPF fix to if_loop.c From: itojun@iijlab.net Date: Wed, 31 May 2000 10:06:11 +0900 Message-ID: <4814.959735171@coconut.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> sorry this was incorrect. however, I think there should be check >> if ifp really wants DLT_NULL encapsulation or not. >Hmm.. maybe a better fix is to remove this BPF section altogether.. ? >It's only going to result in showing the same packet twice, right? there are couple of different stories here. note that you can pass any ifp to if_simloop(). a. when if_simloop(ifp = lo0), there must be call to bpf_mtap, with DLT_NULL encapsulation. if we don't do it here, nobody will. b. when if_simloop(ifp = non-lo0), there are two cases. b1. if it was called from layer 2 specific code like if_ethersubr.c, if_simloop may want to inject the packet with no encapsulation change. b2. if it was called from ip{6,}_mloopback, if_simloop() must not call bpf_mtap. with the current code, ifp_simloop injects packet as is (with no layer 2 header) into, for example to bpf for ethernet interface, passing junk to bpf listeners. this is the problem I experienced. in case of b1, your description should be correct (seeing same packet twice). in case of b2, I'm still not sure how to resolve it. maybe I don't get the ultimate goal for this change from 4.4BSD. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 18:20: 6 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 1490537BE29 for ; Tue, 30 May 2000 18:20:01 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id SAA86718; Tue, 30 May 2000 18:19:28 -0700 (PDT) From: Archie Cobbs Message-Id: <200005310119.SAA86718@bubba.whistle.com> Subject: Re: BPF fix to if_loop.c In-Reply-To: <4814.959735171@coconut.itojun.org> from "itojun@iijlab.net" at "May 31, 2000 10:06:11 am" To: itojun@iijlab.net Date: Tue, 30 May 2000 18:19:27 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org itojun@iijlab.net writes: > >> sorry this was incorrect. however, I think there should be check > >> if ifp really wants DLT_NULL encapsulation or not. > >Hmm.. maybe a better fix is to remove this BPF section altogether.. ? > >It's only going to result in showing the same packet twice, right? > > there are couple of different stories here. > note that you can pass any ifp to if_simloop(). > > a. when if_simloop(ifp = lo0), there must be call to bpf_mtap, > with DLT_NULL encapsulation. if we don't do it here, nobody will. > b. when if_simloop(ifp = non-lo0), there are two cases. > b1. if it was called from layer 2 specific code like > if_ethersubr.c, if_simloop may want to inject the packet > with no encapsulation change. > b2. if it was called from ip{6,}_mloopback, if_simloop() must > not call bpf_mtap. with the current code, ifp_simloop > injects packet as is (with no layer 2 header) into, for > example to bpf for ethernet interface, passing junk to bpf > listeners. this is the problem I experienced. > > in case of b1, your description should be correct (seeing same > packet twice). in case of b2, I'm still not sure how to resolve it. > maybe I don't get the ultimate goal for this change from 4.4BSD. The commit comment to revision 1.33 of if_loop.c may be slightly enlightening.. http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_loop.c For an example of the resulting cleanup, see: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_ethersubr.c.diff?r1=1.48&r2=1.49 Maybe the caller of if_simloop() should be responsible for the BPF part.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 30 19:51:44 2000 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id 5507F37BE33 for ; Tue, 30 May 2000 19:51:40 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from kiwi.itojun.org (localhost.itojun.org [127.0.0.1]) by coconut.itojun.org (8.9.3+3.2W/3.7W) with ESMTP id LAA05681; Wed, 31 May 2000 11:51:35 +0900 (JST) To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG In-reply-to: archie's message of Tue, 30 May 2000 18:19:27 MST. <200005310119.SAA86718@bubba.whistle.com> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: BPF fix to if_loop.c From: itojun@iijlab.net Date: Wed, 31 May 2000 11:51:35 +0900 Message-ID: <5679.959741495@coconut.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >The commit comment to revision 1.33 of if_loop.c may be slightly >enlightening.. > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_loop.c >For an example of the resulting cleanup, see: > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_ethersubr.c.diff?r1=1.48&r2=1.49 >Maybe the caller of if_simloop() should be responsible for the BPF part.. that is my understanding for if_simloop(). one thing still unclear to me is, what can ip{,6}_mloopback() do about it? (I believe nothing they can do) itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 0:46:13 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 9F5C737B795; Wed, 31 May 2000 00:46:01 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA06551; Wed, 31 May 2000 13:13:46 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Wed, 31 May 2000 13:13:46 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id NAA25680; Wed, 31 May 2000 13:13:41 +0530 (IST) Date: Wed, 31 May 2000 13:13:40 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: RE: system hangs... (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have posted this earlier. I didnt get any reply about system hangs. Please some body help me out to track down these hangs. Questions are below. thanks --gb ---------- Forwarded message ---------- Date: Tue, 30 May 2000 14:32:30 +0530 (IST) From: G.B.Naidu To: "Koster, K.J." Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: RE: system hangs... Hi, Please see my comments below: On Tue, 30 May 2000, Koster, K.J. wrote: > > > > We have made some kernel changes. And accordingly we are > > testing the changes using some user level daemon. After > > sending some packets, the system hangs. The number of > > packets sent before the system hangs varies from time to > > time. > > > What kind of changes? What kind of packets? What kind of deamon? What kind > of kernel? We are trying to implement MPLS on FreeBSD. so we are implementing forwarding tables in side the kernel. The chamges are done in ip_output() and ether_output(). We have added some more routing messages and corresponding functions. Dameon we are running is LDP daemon. The packets We are sending to test are ping packets. Kernel version is 3.3-RELEASE > > > > > Could some body tell me how to know what is happening? How > > do I find out the reason for hanging? Is there anyway to get > > such information through some core dump? I have enabled > > taking dumps and it is dumping when the system panics but > > not when it hangs. > > > You can make the system panic manually, and then you have your kernel core. I am concerned about hangs not panic. If it hangs, I cant type even enter. Nothing responds except the reset and power off key. SO is there a way I can take core dumps when the system hangs? > > As for how to know what's happening: printf() is your friend. > Is there a way to redirect the out put of printf() statements into /var/log/messages file? How do I do that? > > > > Is memory leakage can cause a system hang? If so how do I > > find out that there is a memory leakage? > > > There are many good books and web sites that cover basic debugging > techniques. Could you please give me some pointers to these locations and books? I would be glad to know those locations where I can get some debug techniques. > > You have to provide a *lot* more information than this. We can only help you > if you are able to produce some detailed description of your problem. If you > can't tell sitting behind the box, how are we supposed to know what you've > done wrong? If you need any more information, please let me know. The problem is because the system hangs, I cant do anything to find out what's happening. thanks a lot --gb > > Kees Jan > > ============================================== > Everyone is responsible for his own actions, > and (people tend to forget this) the effect > they have on others. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 1: 0:12 2000 Delivered-To: freebsd-net@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 58C6A37B76E; Wed, 31 May 2000 01:00:04 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id JAA91324; Wed, 31 May 2000 09:59:41 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200005310759.JAA91324@freebsd.dk> Subject: Re: system hangs... (fwd) In-Reply-To: from "G.B.Naidu" at "May 31, 2000 01:13:40 pm" To: gbnaidu@sasi.com (G.B.Naidu) Date: Wed, 31 May 2000 09:59:41 +0200 (CEST) Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org It seems G.B.Naidu wrote: > > I have posted this earlier. I didnt get any reply about system hangs. > Please some body help me out to track down these hangs. Questions are > below. Have you tried putting DDB into the kernel, and tried to hit ALT+CTRL+ESC to go into the debugger on the hang ? Printf is a good tool here, sprinkle your source with printf's so you can see how far you get, and what essential values are getting used. Another possibility is to attach 8 LED's to a printer port, those you can then turn on/off at will by a simple outb statement. I use a 2*40 char LCD display connected this way sometimes, that gives me a history of 80 values, so I can se the exact sequence of events that let me to the problem at hand.. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 2:37:33 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 72C3637B861; Wed, 31 May 2000 02:37:17 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id PAA11697; Wed, 31 May 2000 15:05:09 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Wed, 31 May 2000 15:05:08 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id PAA00856; Wed, 31 May 2000 15:04:57 +0530 Date: Wed, 31 May 2000 15:04:57 +0530 (IST) From: "G.B.Naidu" To: Soren Schmidt Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: system hangs... (fwd) In-Reply-To: <200005310759.JAA91324@freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Soren, Thanks a lot for the help. CTRL+ALT+ESC works. Thanks once again. Now we can do some analysis. regards --gb On Wed, 31 May 2000, Soren Schmidt wrote: > It seems G.B.Naidu wrote: > >=20 > > I have posted this earlier. I didnt get any reply about system hangs. > > Please some body help me out to track down these hangs. Questions are > > below. >=20 > Have you tried putting DDB into the kernel, and tried to > hit ALT+CTRL+ESC to go into the debugger on the hang ? >=20 > Printf is a good tool here, sprinkle your source with > printf's so you can see how far you get, and what=20 > essential values are getting used. >=20 > Another possibility is to attach 8 LED's to a printer > port, those you can then turn on/off at will by a simple > outb statement. I use a 2*40 char LCD display connected > this way sometimes, that gives me a history of 80 values, > so I can se the exact sequence of events that let me to=20 > the problem at hand.. >=20 > -S=F8ren >=20 --=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 6:37:27 2000 Delivered-To: freebsd-net@freebsd.org Received: from rsys001a.roke.co.uk (rsys001a.roke.co.uk [193.118.192.110]) by hub.freebsd.org (Postfix) with ESMTP id 41B7F37B59C; Wed, 31 May 2000 06:37:22 -0700 (PDT) (envelope-from mick.gallagher@roke.co.uk) Received: by rsys001a.roke.co.uk with Internet Mail Service (5.5.2650.21) id ; Wed, 31 May 2000 14:37:21 +0100 Message-ID: From: "Gallagher, Mick" To: "'freebsd-questions@freebsd.org'" , "'freebsd-net@freebsd.org'" Subject: User-PPP not seeing incoming PPP packets on 3.4R Date: Wed, 31 May 2000 14:37:20 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All, I'm running 3.4R, and trying to get a PPP link established with my ISP. My /etc/ppp/ppp.conf script pretty much looks like the default example script, modified to include my ISP login details. If I run ppp -backgound , then the PPP connection fails. A brief examination of /var/log/ppp.log implies that the initial outgoing LCP config-req is generated and sent, but no reply is received from the ISP. I don't buy this - the ISP connection works fine with my Windows box. And so... (i) Any ideas? (ii) Can anyone tell me how to get tcpdump to look at the bpf tun thing, so I can actually monitor the packet flow? ..and.. (iii) The PPP link actually _worked_ at some point in the past, but I didn't save the config script (doh!). I'm pretty sure its the same as it is now, except for one (possibly crucial) difference: Since PPP worked, I installed an ethernet NIC, and configured the i/f IP address of the NIC as 10.0.0.1. Because of this, I changed the default 'dummy' PPP local tun address from 10.0.0.1 to 11.0.0.1. (The original PPP 10.0.0.1 address comes from the example ppp.conf file). As ever, any help gratefully received. Many thanks, Mick Gallagher ---- mickg@iname.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 8:13:50 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 441A437BEC0 for ; Wed, 31 May 2000 08:13:47 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id LAA33906; Wed, 31 May 2000 11:13:46 -0400 (EDT) (envelope-from wollman) Date: Wed, 31 May 2000 11:13:46 -0400 (EDT) From: Garrett Wollman Message-Id: <200005311513.LAA33906@khavrinen.lcs.mit.edu> To: net@FreeBSD.org Subject: [The IESG: Protocol Action: TCP Processing of the I] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org A busy day at the IESG, it seems.... ------- start of forwarded message (RFC 934 encapsulation) ------- Message-Id: <200005311210.IAA05749@ietf.org> From: The IESG Sender: scoya@cnri.reston.va.us To: IETF-Announce: ; Cc: RFC Editor Cc: Internet Architecture Board Subject: Protocol Action: TCP Processing of the IP Precedence Field to Proposed Standard Date: Wed, 31 May 2000 08:10:54 -0400 The IESG has approved the Internet-Draft 'TCP Processing of the IP Precedence Field' as a Proposed Standard. This has been reviewed in the IETF but is not the product of an IETF Working Group. The IESG contact persons Allison Mankin and Scott Bradner. Technical Summary This document describes a conflict between TCP (RFC793) and DiffServ (RFC2475) on the use of the three leftmost bits in the TOS octet of an IPv4 header (RFC791). In a network that contains DiffServ capable nodes, such a conflict can cause failures in establishing TCP connections or can cause some established TCP connections to be reset undesirably. This document describes a modification to TCP for resolving the conflict. TCP requires that the precedence (and security parameters) of a connection must remain unchanged during the lifetime of the connection. Therefore, for an established TCP connection with precedence, the receipt of a segment with different precedence indicates an error. The connection must be reset . With the advent of DiffServ, intermediate nodes may modify the Differentiated Services Codepoint (DSCP) of the IP header to indicate the desired Per-hop Behavior (PHB). The DSCP includes the three bits formerly known as the precedence field. Because any modification to those three bits will be considered illegal by endpoints that are precedence-aware, they may cause failures in establishing connections, or may cause established connections to be reset. With this RFC the behavior of TCP is changed to ignore the precedence of all received segments Working Group Summary The working group supported the publication of this document. No issues were raised during IETF Last-Call. Protocol Quality This document has been reviewed for the IESG by Vern Paxson and Scott Bradner. ------- end ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 14:32: 6 2000 Delivered-To: freebsd-net@freebsd.org Received: from trauco.colomsat.net.co (trauco.colomsat.net.co [200.13.195.2]) by hub.freebsd.org (Postfix) with ESMTP id 0927837B580 for ; Wed, 31 May 2000 14:32:04 -0700 (PDT) (envelope-from ycardena@yahoo.com) Received: from yahoo.com (200.13.214.93) by trauco.colomsat.net.co (NPlex 4.0.068) id 39344A7600008899 for freebsd-net@freebsd.org; Wed, 31 May 2000 16:28:30 -0500 Message-ID: <393585D9.A201A317@yahoo.com> Date: Wed, 31 May 2000 16:36:25 -0500 From: ycardena@yahoo.com X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: TCP/IP protocol S/W Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello > Sung-Woo Tak and others write in the paper >"Experience With TCP/IP Networking Protocol S/W > over Embedded OS for Network Appliance": > > Currently, the market of multimedia information appliance > based on Internet activated by the growth of both > multimedia service and access of Internet augment the > importance of TCP/IP protocol S/W which can provide the > existing standalone embedded systems with Internet > service. In this paper, we analyze the architecture and > function of TCP/IP module to depend on 4.4BSD OS > (Operating System) runtime environment and propose the > new method against TCP/IP module dependent on 4.4BSD > OS runtime environment. And then we implement > embedded OS for the network appliance that supports > multitasking under its environment to use only physical > memory in embedded system. > > The environment for the development of embedded OS > and TCP/IP protocol S/W. Embedded OS and TCP/IP module > are implemented by gnu c compiler, gcc-2.6.1, under the FreeBSD OS. What is it or what signify the term "TCP/IP protocol S/W" ? Thanks. +------------------------------------------------------------------+ | YONNY CARDENAS B. ycardena@yahoo.com | +------------------------------------------------------------------+ UNIX is BSD, and FreeBSD is an advanced 4.4BSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 18:41: 7 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id BB1F537BF3D; Wed, 31 May 2000 18:40:57 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA87367; Thu, 1 Jun 2000 02:41:23 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA00793; Thu, 1 Jun 2000 02:41:22 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006010141.CAA00793@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Gallagher, Mick" Cc: "'freebsd-questions@freebsd.org'" , "'freebsd-net@freebsd.org'" , brian@hak.lan.Awfulhak.org Subject: Re: User-PPP not seeing incoming PPP packets on 3.4R In-Reply-To: Message from "Gallagher, Mick" of "Wed, 31 May 2000 14:37:20 BST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Jun 2000 02:41:22 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi All, > > I'm running 3.4R, and trying to get a PPP link established with my ISP. > > My /etc/ppp/ppp.conf script pretty much looks like the default example > script, modified to include my ISP login details. > > If I run ppp -backgound , then the PPP connection fails. > > A brief examination of /var/log/ppp.log implies that the initial outgoing > LCP config-req is generated and sent, but no reply is received from the ISP. > > I don't buy this - the ISP connection works fine with my Windows box. > > And so... > > (i) Any ideas? Your best bet is to go back to basics using ``term''. Otherwise, enable chat logging to ensure that the expected conversation is happening with your modem. Also ensure that you haven't got something like ``set openmode passive'' in your config. > (ii) Can anyone tell me how to get tcpdump to look at the bpf tun thing, so > I can actually monitor the packet flow? You'll see nothing until ppp has established a connection. Once this has happened you can just ``tcpdump tun0'' to see traffic. > ..and.. > > (iii) The PPP link actually _worked_ at some point in the past, but I didn't > save the config script (doh!). I'm pretty sure its the same as it is now, > except for one (possibly crucial) difference: Since PPP worked, I installed > an ethernet NIC, and configured the i/f IP address of the NIC as 10.0.0.1. > Because of this, I changed the default 'dummy' PPP local tun address from > 10.0.0.1 to 11.0.0.1. (The original PPP 10.0.0.1 address comes from the > example ppp.conf file). 10.0.0.1 is fine - even though it conflicts with your NIC. You can have as many conflicting IP numbers as you like as long as at most one of them is on a broadcast media. > As ever, any help gratefully received. > > Many thanks, > Mick Gallagher > > ---- > mickg@iname.com -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 20:21:31 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.61]) by hub.freebsd.org (Postfix) with ESMTP id D96C637B853 for ; Wed, 31 May 2000 20:21:28 -0700 (PDT) (envelope-from mgtak@crosswinds.net) Received: from r7a002503as.hlb.cable.rcn.com ([216.164.33.51] helo=anything) by smtp02.mrf.mail.rcn.net with smtp (Exim 2.12 #3) id 12xLXy-00024h-00 for freebsd-net@freebsd.org; Wed, 31 May 2000 23:21:27 -0400 From: "MG_Tak" To: Subject: Off topic, sorta: home RJ-45 wiring Date: Wed, 31 May 2000 23:20:06 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings, This isn't exactly FreeBSD related, so I must apologize. I've been using an RJ-45 cable to connect a laptop that's in another room to the HUB in my room. The cable runs right accross the hallway which, on top of being ugly, is not really practical. So I figured I could climb into my attic and run the cable through the attic and into my room, using wall-plugs. Putting holes in the wall is easy enough, but I'm not sure about what I need, what type of cable, etc.. Does anyone know of a web-page that would offer some sort of guide to home-wiring? Any help would be greatly appreciated, R.K. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 21:31:39 2000 Delivered-To: freebsd-net@freebsd.org Received: from yagosys.com (mail.yagosys.com [207.135.89.130]) by hub.freebsd.org (Postfix) with ESMTP id 0A46B37BA53 for ; Wed, 31 May 2000 21:31:38 -0700 (PDT) (envelope-from shiva@yagosys.com) Received: from crimson.yagosys.com by yagosys.com (8.8.8+Sun/SMI-SVR4-Yago) id VAA19497; Wed, 31 May 2000 21:30:09 -0700 (PDT) Received: from suvega by crimson.yagosys.com (SMI-8.6/SMI-SVR4) id VAA12740; Wed, 31 May 2000 21:31:37 -0700 Message-ID: <004501bfcb82$f6b33570$2cac8d86@yagosys.com> From: "Shiva Shenoy" To: Date: Wed, 31 May 2000 21:36:33 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 22:16:49 2000 Delivered-To: freebsd-net@freebsd.org Received: from obie.softweyr.com (obie.softweyr.com [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id 194E037B7FF for ; Wed, 31 May 2000 22:16:44 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (Foolstrustident!@homer.softweyr.com [204.68.178.39]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id XAA04024; Wed, 31 May 2000 23:16:38 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <3935F288.449D3225@softweyr.com> Date: Wed, 31 May 2000 23:20:08 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: MG_Tak Cc: freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org MG_Tak wrote: > > Greetings, > > This isn't exactly FreeBSD related, so I must > apologize. > > I've been using an RJ-45 cable to connect a > laptop that's in another room to the HUB in my room. > The cable runs right accross the hallway which, on > top of being ugly, is not really practical. So I > figured I could climb into my attic and run the > cable through the attic and into my room, using > wall-plugs. > > Putting holes in the wall is easy enough, but > I'm not sure about what I need, what type of cable, > etc.. Does anyone know of a web-page that would > offer some sort of guide to home-wiring? You need "Category 5" or "Cat 5" wiring. You can buy it at most home improvement stores or an electrical supply shop. They will also (probably) sell wall-mount RJ45 jacks. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 31 22:30:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id B5F1037B7FF; Wed, 31 May 2000 22:30:01 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id KAA09722; Thu, 1 Jun 2000 10:57:51 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Thu, 01 Jun 2000 10:57:49 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id KAA01258; Thu, 1 Jun 2000 10:57:49 +0530 Date: Thu, 1 Jun 2000 10:57:49 +0530 (IST) From: "G.B.Naidu" To: freebsd-hackers@FreeBSD.org Cc: freebsd-net@FreeBSD.org Subject: DDB is not setting break points... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am having problems with DDB while setting breakpoints in the kernel. I entered the DDB by giving kernel -d at boot prompt. After that I tried to set break point at ip_output() by giving "b ip_output". But it complains saying that "sumbol not found". I thought this might be due to stripped kernel.( I configured the kernel with -g option), so I installed the unstripped kernel. Still I am getting the same error message from DDB. Why it is not setting break points? Am I missing some thing? In the handbook chap 21, Note says: Note that if you have an older version of boot blocks. your debugger symbols might not be loaded at all. Update the bopot blocks; I am having a doubt that is it due to older version of boot blocks? I am running FreeBSD 3.3-RELEASE. How do I findout that whether my boot blocks are older? In the first place is it the reason for DDB complaining about symbols not found? Any help is appreciated. thanks --gb -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 3: 1:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id B897437B665 for ; Thu, 1 Jun 2000 03:01:11 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id MAA65332; Thu, 1 Jun 2000 12:01:11 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006011001.MAA65332@info.iet.unipi.it> Subject: WF2Q+ available for dummynet To: net@freebsd.org Date: Thu, 1 Jun 2000 12:01:11 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have a preliminary version of the long awaited WF2Q+ support in dummynet. A picobsd image is available for testing purposes at http://www.iet.unipi.it/~luigi/picobsd.000530.bin (when the image boots, you can login as 'root' password 'setup') and a (probably cryptic) manpage at http://www.iet.unipi.it/~luigi/ipfw.8 Basic configuration for testing (read the manpage for more) ipfw add queue 1 ip from any to any ipfw queue 1 config weight 10 pipe 3 mask all queue 20 ipfw pipe 10 config bw 100Kbit/s basically a 'queue' object defines how packets are partitioned into flows, and the weight associated with each flow. The 'pipe' object that the queue points to is then used to set the overall rate, which is then shared among the flows according to their weights. You can have multiple 'queue' point to the same 'pipe' and this way you can have flows with different weights. If you try this floppy please provide feedback, even if it is just to say that it works fine - thanks :) cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 4:47:12 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 3539837B8FB; Thu, 1 Jun 2000 04:47:00 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id RAA25645; Thu, 1 Jun 2000 17:14:46 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Thu, 01 Jun 2000 17:14:44 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id RAA01458; Thu, 1 Jun 2000 17:14:41 +0530 Date: Thu, 1 Jun 2000 17:14:41 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: DDB is not setting break points... (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Have posted this questoin earlier. I have got no replies. Some body take some time to clarify this? thanks --gb -- ---------- Forwarded message ---------- Date: Thu, 1 Jun 2000 10:57:49 +0530 (IST) From: G.B.Naidu To: freebsd-hackers@FreeBSD.ORG Cc: freebsd-net@FreeBSD.ORG Subject: DDB is not setting break points... Hi, I am having problems with DDB while setting breakpoints in the kernel. I entered the DDB by giving kernel -d at boot prompt. After that I tried to set break point at ip_output() by giving "b ip_output". But it complains saying that "sumbol not found". I thought this might be due to stripped kernel.( I configured the kernel with -g option), so I installed the unstripped kernel. Still I am getting the same error message from DDB. Why it is not setting break points? Am I missing some thing? In the handbook chap 21, Note says: Note that if you have an older version of boot blocks. your debugger symbols might not be loaded at all. Update the bopot blocks; I am having a doubt that is it due to older version of boot blocks? I am running FreeBSD 3.3-RELEASE. How do I findout that whether my boot blocks are older? In the first place is it the reason for DDB complaining about symbols not found? Any help is appreciated. thanks --gb -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 9:42:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from larryboy.graphics.cornell.edu (larryboy.graphics.cornell.edu [128.84.247.48]) by hub.freebsd.org (Postfix) with ESMTP id 7AC5637B907 for ; Thu, 1 Jun 2000 09:42:14 -0700 (PDT) (envelope-from mkc@larryboy.graphics.cornell.edu) Received: from larryboy.graphics.cornell.edu (mkc@localhost) by larryboy.graphics.cornell.edu (8.9.3/8.9.3) with ESMTP id MAA22594; Thu, 1 Jun 2000 12:42:02 -0400 (EDT) (envelope-from mkc@larryboy.graphics.cornell.edu) Message-Id: <200006011642.MAA22594@larryboy.graphics.cornell.edu> To: Wes Peters Cc: MG_Tak , freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring In-Reply-To: Message from Wes Peters of "Wed, 31 May 2000 23:20:08 MDT." <3935F288.449D3225@softweyr.com> Date: Thu, 01 Jun 2000 12:42:02 -0400 From: Mitch Collinsworth Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> I've been using an RJ-45 cable to connect a >> laptop that's in another room to the HUB in my room. >> The cable runs right accross the hallway which, on >> top of being ugly, is not really practical. So I >> figured I could climb into my attic and run the >> cable through the attic and into my room, using >> wall-plugs. >> >> Putting holes in the wall is easy enough, but >> I'm not sure about what I need, what type of cable, >> etc.. Does anyone know of a web-page that would >> offer some sort of guide to home-wiring? > >You need "Category 5" or "Cat 5" wiring. You can buy it at most home >improvement stores or an electrical supply shop. They will also >(probably) sell wall-mount RJ45 jacks. I haven't seen this sort of thing in home improvement stores, but I'm in a pretty rural area. Maybe things are better where you are. In any case I can recommend a vendor we've used frequently for this sort of thing here in the office: MilesTek, Inc. 1-800-524-7444 www.milestek.com They have everything you need and are easy to work with. -Mitch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 9:47:38 2000 Delivered-To: freebsd-net@freebsd.org Received: from herbelot.dyndns.org (r148m178.cybercable.tm.fr [195.132.148.178]) by hub.freebsd.org (Postfix) with ESMTP id 9B9A937B9D4 for ; Thu, 1 Jun 2000 09:47:35 -0700 (PDT) (envelope-from herbelot@cybercable.fr) Received: from cybercable.fr (multi.herbelot.nom [192.168.1.2]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id SAA03928; Thu, 1 Jun 2000 18:46:14 +0200 (CEST) (envelope-from herbelot@cybercable.fr) Message-ID: <39369229.79994D3F@cybercable.fr> Date: Thu, 01 Jun 2000 18:41:13 +0200 From: Thierry Herbelot X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Luigi Rizzo Cc: net@freebsd.org Subject: Re: WF2Q+ available for dummynet References: <200006011001.MAA65332@info.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Io ! QoS comes to FreeBSD ;-) From a happy Dummynet user : what is WF2Q+ (Weighted Fair Queuing ?) TfH Luigi Rizzo wrote: > > Hi, > > I have a preliminary version of the long awaited WF2Q+ support in > dummynet. A picobsd image is available for testing purposes at > > http://www.iet.unipi.it/~luigi/picobsd.000530.bin > -- Thierry Herbelot ASCII RIBBON CAMPAIGN /"\ Dir. technique LUCCAS AGAINST HTML MAIL & NEWS \ / tout le cable sur http://www.luccas.org PAS DE HTML DANS X un CV : http://perso.cybercable.fr/herbelot LES COURRIELS / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 10: 0:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from paprika.michvhf.com (paprika.michvhf.com [209.103.136.12]) by hub.freebsd.org (Postfix) with SMTP id 278BE37B998 for ; Thu, 1 Jun 2000 09:59:59 -0700 (PDT) (envelope-from vev@michvhf.com) Received: (qmail 71986 invoked by uid 1001); 1 Jun 2000 17:02:52 -0000 Date: Thu, 1 Jun 2000 13:02:51 -0400 (EDT) From: Vince Vielhaber To: Mitch Collinsworth Cc: Wes Peters , MG_Tak , freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring In-Reply-To: <200006011642.MAA22594@larryboy.graphics.cornell.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 1 Jun 2000, Mitch Collinsworth wrote: > > >> I've been using an RJ-45 cable to connect a > >> laptop that's in another room to the HUB in my room. > >> The cable runs right accross the hallway which, on > >> top of being ugly, is not really practical. So I > >> figured I could climb into my attic and run the > >> cable through the attic and into my room, using > >> wall-plugs. > >> > >> Putting holes in the wall is easy enough, but > >> I'm not sure about what I need, what type of cable, > >> etc.. Does anyone know of a web-page that would > >> offer some sort of guide to home-wiring? > > > >You need "Category 5" or "Cat 5" wiring. You can buy it at most home > >improvement stores or an electrical supply shop. They will also > >(probably) sell wall-mount RJ45 jacks. > > I haven't seen this sort of thing in home improvement stores, but I'm in > a pretty rural area. Maybe things are better where you are. In any > case I can recommend a vendor we've used frequently for this sort of > thing here in the office: > > MilesTek, Inc. > 1-800-524-7444 > www.milestek.com > > They have everything you need and are easy to work with. I've seen cat5 cable and jacks at Home Depot, but if you don't have one nearby you can always go to DataCom Warehouse (warehouse.com) They carry everything you need and I've typically gotten everything within a day or two depending on what time I ordered. Vince. -- ========================================================================== Vince Vielhaber -- KA8CSH email: vev@michvhf.com http://www.pop4.net 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking Online Campground Directory http://www.camping-usa.com Online Giftshop Superstore http://www.cloudninegifts.com ========================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 10: 0:46 2000 Delivered-To: freebsd-net@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 4DB4F37B998; Thu, 1 Jun 2000 10:00:41 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.10.1/8.10.1) with ESMTP id e51H0UK75062; Thu, 1 Jun 2000 10:00:31 -0700 (PDT) Date: Thu, 1 Jun 2000 10:00:30 -0700 (PDT) From: Doug White To: "G.B.Naidu" Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: DDB is not setting break points... (fwd) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 1 Jun 2000, G.B.Naidu wrote: > Have posted this questoin earlier. I have got no replies. Some body take > some time to clarify this? cd /sys/boot make depend all install disklabel -B ad0 reboot This will update your bootblocks. > In the handbook chap 21, Note says: Note that if you have an older version > of boot blocks. your debugger symbols might not be loaded at all. Update > the bopot blocks; Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 10: 3:22 2000 Delivered-To: freebsd-net@freebsd.org Received: from stingray.ivision.co.uk (avengers.ivision.co.uk [212.25.224.7]) by hub.freebsd.org (Postfix) with ESMTP id D601B37B998 for ; Thu, 1 Jun 2000 10:03:17 -0700 (PDT) (envelope-from jasper@ivision.co.uk) Received: from [212.25.224.7] (helo=avengers) by stingray.ivision.co.uk with esmtp (Exim 2.04 #1) id 12xYNA-0000Hd-00; Thu, 1 Jun 2000 18:03:08 +0100 Date: Thu, 1 Jun 2000 18:03:08 +0100 (BST) From: Jasper Wallace X-Sender: jasper@avengers To: MG_Tak Cc: freebsd-net@freebsd.org Subject: Re: Off topic, sorta: home RJ-45 wiring In-Reply-To: Message-ID: X-NCC-RegID: uk.instant-web MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 31 May 2000, MG_Tak wrote: > Greetings, > > This isn't exactly FreeBSD related, so I must > apologize. > > I've been using an RJ-45 cable to connect a > laptop that's in another room to the HUB in my room. > The cable runs right accross the hallway which, on > top of being ugly, is not really practical. So I > figured I could climb into my attic and run the > cable through the attic and into my room, using > wall-plugs. > > Putting holes in the wall is easy enough, but > I'm not sure about what I need, what type of cable, > etc.. Does anyone know of a web-page that would > offer some sort of guide to home-wiring? There was a thing in the us a while back (i'm sure people on the list will know more), where there was a volunteer effort to wire up local schools with cat 5, i remember comming accross several web sites with *very* good instructions on how to do all the hole drilling etc. (I think it was called 'network day' or something). -- Internet Vision Internet Consultancy Tel: 022 7589 4500 60 Albert Court & Web development Fax: 020 7589 4522 Prince Consort Road vision@ivision.co.uk London SW7 2BE http://www.ivision.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 10: 5: 1 2000 Delivered-To: freebsd-net@freebsd.org Received: from imail3.pica.army.mil (imail3.pica.army.mil [129.139.10.29]) by hub.freebsd.org (Postfix) with ESMTP id 7EEAC37BF3C for ; Thu, 1 Jun 2000 10:04:56 -0700 (PDT) (envelope-from onguyen@pica.army.mil) Received: by imail3.pica.army.mil with Internet Mail Service (5.5.2650.21) id ; Thu, 1 Jun 2000 13:04:06 -0400 Message-ID: <53EB67411602D211846900A0C9C7647A0784E991@mail3.pica.army.mil> From: "Nguyen, Olivier T [AMSTA-AR-CCF-D]" To: 'Jasper Wallace' , MG_Tak Cc: freebsd-net@freebsd.org Subject: RE: Off topic, sorta: home RJ-45 wiring Date: Thu, 1 Jun 2000 13:05:04 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org check this site out http://www.elrcastor.com/rj45.html -----Original Message----- From: Jasper Wallace [mailto:jasper@ivision.co.uk] Sent: Thursday, June 01, 2000 1:03 PM To: MG_Tak Cc: freebsd-net@freebsd.org Subject: Re: Off topic, sorta: home RJ-45 wiring On Wed, 31 May 2000, MG_Tak wrote: > Greetings, > > This isn't exactly FreeBSD related, so I must > apologize. > > I've been using an RJ-45 cable to connect a > laptop that's in another room to the HUB in my room. > The cable runs right accross the hallway which, on > top of being ugly, is not really practical. So I > figured I could climb into my attic and run the > cable through the attic and into my room, using > wall-plugs. > > Putting holes in the wall is easy enough, but > I'm not sure about what I need, what type of cable, > etc.. Does anyone know of a web-page that would > offer some sort of guide to home-wiring? There was a thing in the us a while back (i'm sure people on the list will know more), where there was a volunteer effort to wire up local schools with cat 5, i remember comming accross several web sites with *very* good instructions on how to do all the hole drilling etc. (I think it was called 'network day' or something). -- Internet Vision Internet Consultancy Tel: 022 7589 4500 60 Albert Court & Web development Fax: 020 7589 4522 Prince Consort Road vision@ivision.co.uk London SW7 2BE http://www.ivision.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 11:35:51 2000 Delivered-To: freebsd-net@freebsd.org Received: from larryboy.graphics.cornell.edu (larryboy.graphics.cornell.edu [128.84.247.48]) by hub.freebsd.org (Postfix) with ESMTP id A107137B562 for ; Thu, 1 Jun 2000 11:35:47 -0700 (PDT) (envelope-from mkc@larryboy.graphics.cornell.edu) Received: from larryboy.graphics.cornell.edu (mkc@localhost) by larryboy.graphics.cornell.edu (8.9.3/8.9.3) with ESMTP id OAA23110; Thu, 1 Jun 2000 14:35:21 -0400 (EDT) (envelope-from mkc@larryboy.graphics.cornell.edu) Message-Id: <200006011835.OAA23110@larryboy.graphics.cornell.edu> To: Vince Vielhaber Cc: Wes Peters , MG_Tak , freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring In-Reply-To: Message from Vince Vielhaber of "Thu, 01 Jun 2000 13:02:51 EDT." Date: Thu, 01 Jun 2000 14:35:21 -0400 From: Mitch Collinsworth Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> I haven't seen this sort of thing in home improvement stores, but I'm in >> a pretty rural area. Maybe things are better where you are. In any >> case I can recommend a vendor we've used frequently for this sort of >> thing here in the office: >> >> MilesTek, Inc. >> 1-800-524-7444 >> www.milestek.com >> >> They have everything you need and are easy to work with. > >I've seen cat5 cable and jacks at Home Depot, but if you don't have one >nearby you can always go to DataCom Warehouse (warehouse.com) They carry >everything you need and I've typically gotten everything within a day or >two depending on what time I ordered. I agree. DCW is very fast. They are also expensive, difficult to order from, and make frequent mistakes, in my experience. I have used them a lot. MilesTek is not quite as fast but they are easier to deal with, have better prices, and don't make mistakes, again in my experience. When I need it overnight and I don't care what it costs I call DCW. When I don't need it overnight I call MilesTek. Maybe if DCW didn't send me a shiney new catalog every single week of the year they would have better prices. :-) -Mitch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 11:40:22 2000 Delivered-To: freebsd-net@freebsd.org Received: from apollo.ocsny.com (apollo.ocsny.com [204.107.76.2]) by hub.freebsd.org (Postfix) with ESMTP id B484337BA86 for ; Thu, 1 Jun 2000 11:40:11 -0700 (PDT) (envelope-from mikel@ocsny.com) Received: from ocsny.com (ppp-003.ocsny.com [204.107.76.30]) by apollo.ocsny.com (8.9.2/8.9.3) with ESMTP id OAA70520; Thu, 1 Jun 2000 14:40:39 -0400 (EDT) Message-ID: <3936AEA8.AC967110@ocsny.com> Date: Thu, 01 Jun 2000 14:42:48 -0400 From: Mikel Organization: Optimized Computer Solutions, Inc. X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en,it MIME-Version: 1.0 To: Mitch Collinsworth Cc: Vince Vielhaber , Wes Peters , MG_Tak , freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring References: <200006011835.OAA23110@larryboy.graphics.cornell.edu> Content-Type: multipart/mixed; boundary="------------20F1C04C17EBB5E91CAEFF48" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------20F1C04C17EBB5E91CAEFF48 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit seriously the HD cable is crap...try altex.com...they aren't too expensive and they rarely make mistakes... Mitch Collinsworth wrote: > >> I haven't seen this sort of thing in home improvement stores, but I'm in > >> a pretty rural area. Maybe things are better where you are. In any > >> case I can recommend a vendor we've used frequently for this sort of > >> thing here in the office: > >> > >> MilesTek, Inc. > >> 1-800-524-7444 > >> www.milestek.com > >> > >> They have everything you need and are easy to work with. > > > >I've seen cat5 cable and jacks at Home Depot, but if you don't have one > >nearby you can always go to DataCom Warehouse (warehouse.com) They carry > >everything you need and I've typically gotten everything within a day or > >two depending on what time I ordered. > > I agree. DCW is very fast. They are also expensive, difficult to > order from, and make frequent mistakes, in my experience. I have > used them a lot. MilesTek is not quite as fast but they are easier > to deal with, have better prices, and don't make mistakes, again in > my experience. When I need it overnight and I don't care what it > costs I call DCW. When I don't need it overnight I call MilesTek. > > Maybe if DCW didn't send me a shiney new catalog every single week > of the year they would have better prices. :-) > > -Mitch > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Cheers, Mikel +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | Optimized Computer Solutions, Inc http://www.ocsny.com | 39 W14th Street, Suite 203 212 727 2238 x132 | New York, NY 10011 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | Labor rates: | Net Technician $125 hourly | Net Engineer $150 hourly | Network Eval $300 per incedent | Programming $175 hourly (Web & Database) | Web Engineer $150 hourly | Security Specialist $175 hourly | Phone Support $ 33 quarter hourly | Account Changes $ 25 per incedent | Lost Password $ 45 per incedent +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ --------------20F1C04C17EBB5E91CAEFF48 Content-Type: text/x-vcard; charset=us-ascii; name="mikel.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mikel Content-Disposition: attachment; filename="mikel.vcf" begin:vcard n:King;Mikel tel;fax:2124638402 tel;home:http://www.upan.org tel;work:2127272100 x-mozilla-html:TRUE org:Optimized Computer Solutions version:2.1 email;internet:mikel@ocsny.com title:Director of Network Operations & Technology adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US note;quoted-printable:fBSD, PHP, MySql and OCS Rule!!!=0D=0A=0D=0AGoal is to be MS free by the end of 2k. x-mozilla-cpt:;7312 fn:Mikel King end:vcard --------------20F1C04C17EBB5E91CAEFF48-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 15:58:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from obie.softweyr.com (obie.softweyr.com [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id F2D7337B91B for ; Thu, 1 Jun 2000 15:58:42 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (ip253.salt-lake-city6.ut.pub-ip.psi.net [38.27.95.253]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id QAA05750; Thu, 1 Jun 2000 16:58:23 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <3936EB42.D53D001C@softweyr.com> Date: Thu, 01 Jun 2000 17:01:22 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Mitch Collinsworth Cc: MG_Tak , freebsd-net@FreeBSD.ORG Subject: Re: Off topic, sorta: home RJ-45 wiring References: <200006011642.MAA22594@larryboy.graphics.cornell.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mitch Collinsworth wrote: > > >> I've been using an RJ-45 cable to connect a > >> laptop that's in another room to the HUB in my room. > >> The cable runs right accross the hallway which, on > >> top of being ugly, is not really practical. So I > >> figured I could climb into my attic and run the > >> cable through the attic and into my room, using > >> wall-plugs. > >> > >> Putting holes in the wall is easy enough, but > >> I'm not sure about what I need, what type of cable, > >> etc.. Does anyone know of a web-page that would > >> offer some sort of guide to home-wiring? > > > >You need "Category 5" or "Cat 5" wiring. You can buy it at most home > >improvement stores or an electrical supply shop. They will also > >(probably) sell wall-mount RJ45 jacks. > > I haven't seen this sort of thing in home improvement stores, but I'm in > a pretty rural area. Maybe things are better where you are. In any > case I can recommend a vendor we've used frequently for this sort of > thing here in the office: Eagle/Lowes, Home Depot, and Home Base all carry Cat-5 here. I doubt they're much different anywhere else; we're about as close to a back- water as a city of over a million can be. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 18:45:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 3A5ED37B6D8 for ; Thu, 1 Jun 2000 18:45:38 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id SAA98179; Thu, 1 Jun 2000 18:45:37 -0700 (PDT) From: Archie Cobbs Message-Id: <200006020145.SAA98179@bubba.whistle.com> Subject: Patch review request (ng_ether(4)) To: freebsd-net@freebsd.org Date: Thu, 1 Jun 2000 18:45:37 -0700 (PDT) Cc: julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'd appreciate any reviews of this patch: ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch What this does is: - Change the ng_ether(4) netgraph node type to get rid of the "divert" and "orphans" hooks, replacing them with these hooks: "lower" - connection to the raw device "upper" - connection to the upper protocol layers This should allow much more interesting Ethernet operations using netgraph, especially things that filter, etc. For example, bridging can all be done with a netgraph node. - Moves all the netgraph-specific functionality out of net/if_ethersubr.c and into a new file netgraph/ng_ether.c - Allows a KLD for ng_ether.ko so your kernel doesn't have to be compiled with options NETGRAPH to use it. When loaded, all ethernet interfaces become netgraph nodes as well.. including PCCARDS inserted later. Note: ppp(8) will have to be modified slightly before this gets commited; haven't done this yet but it should be trivial. Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 22:39:58 2000 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 4E09537BBEF for ; Thu, 1 Jun 2000 22:39:51 -0700 (PDT) (envelope-from julian@elischer.org) Received: from jules.elischer.org (reggae-02-146.nv.iinet.net.au [203.59.91.146]) by urban.iinet.net.au (8.8.7/8.8.7) with SMTP id NAA31517; Fri, 2 Jun 2000 13:39:34 +0800 Message-ID: <3937487C.41C67EA6@elischer.org> Date: Thu, 01 Jun 2000 22:39:08 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Archie Cobbs Cc: freebsd-net@freebsd.org Subject: Re: Patch review request (ng_ether(4)) References: <200006020145.SAA98179@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Archie Cobbs wrote: > > Hi, > > I'd appreciate any reviews of this patch: > > ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch > > What this does is: > > - Change the ng_ether(4) netgraph node type to get rid of the > "divert" and "orphans" hooks, replacing them with these hooks: > > "lower" - connection to the raw device > "upper" - connection to the upper protocol layers > > This should allow much more interesting Ethernet operations > using netgraph, especially things that filter, etc. For example, > bridging can all be done with a netgraph node. > > - Moves all the netgraph-specific functionality out of net/if_ethersubr.c > and into a new file netgraph/ng_ether.c > > - Allows a KLD for ng_ether.ko so your kernel doesn't have to > be compiled with options NETGRAPH to use it. When loaded, all > ethernet interfaces become netgraph nodes as well.. including > PCCARDS inserted later. This change removes the ability to only catch packets that are unknown to the exisiting infrastructure.(i.e. orphans). So you'd have to write code to do that especially in the netgraph node.. The topography of the new interceptions are interesting and useful, but I have a couple of concerns. 1/ impact. My original design was done as it was, so that in the case of no netgraph option, the path through the driver would be unchanged. The new code is implemented so that under all cases there is an extra test and function call, as ether_input() calls ether_input2(). I don't know the cost of this, but it should be investigated. 2/ Compatibility.. because there is no 'orphans' node, pppoe will probably have to pass packets back to ether_input2() which will be considerably slower than what was going on before. I'm interested in knowing what others think. > > Note: ppp(8) will have to be modified slightly before this gets commited; > haven't done this yet but it should be trivial. > > Thanks, > -Archie > > ___________________________________________________________________________ > Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jun 1 23: 9:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id 5AE6E37B703 for ; Thu, 1 Jun 2000 23:09:01 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 19769 invoked from network); 2 Jun 2000 06:08:55 -0000 Received: from unknown (HELO bde.zeta.org.au) (203.2.228.102) by gidora.zeta.org.au with SMTP; 2 Jun 2000 06:08:55 -0000 Date: Fri, 2 Jun 2000 16:08:57 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: "G.B.Naidu" Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: DDB is not setting break points... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 1 Jun 2000, G.B.Naidu wrote: > I am having problems with DDB while setting breakpoints in the kernel. I > entered the DDB by giving kernel -d at boot prompt. After that I tried to > set break point at ip_output() by giving "b ip_output". But it complains > saying that "sumbol not found". I thought this might be due to stripped Early setting of breakpoints by name was broken by the switch to elf in FreeBSD-3.0 (symbols aren't available until the kernel module sysinit runs much later). I think it works for aout kernels in 3.x but not in 4.0 or -current. Use gdb or set breakpoints early by value in broken versions. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 0:39:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 99D5A37B88D; Fri, 2 Jun 2000 00:39:37 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA25444; Fri, 2 Jun 2000 13:07:24 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Fri, 02 Jun 2000 13:07:23 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id NAA01866; Fri, 2 Jun 2000 13:07:15 +0530 Date: Fri, 2 Jun 2000 13:07:14 +0530 (IST) From: "G.B.Naidu" To: Bruce Evans Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: DDB is not setting break points... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Thanks Bruse for the reply. I am running 3.3-Release of FreeBSD. And my kernel is elf kernel. So according to Bruce, I cannot set the breakpoints from DDB until sysinit() finishes. So what is the safe point from where I can set break points from DDB? I want to use DDB because I want to debug online. thanks for the help. --gb On Fri, 2 Jun 2000, Bruce Evans wrote: > On Thu, 1 Jun 2000, G.B.Naidu wrote: > > > I am having problems with DDB while setting breakpoints in the kernel. I > > entered the DDB by giving kernel -d at boot prompt. After that I tried to > > set break point at ip_output() by giving "b ip_output". But it complains > > saying that "sumbol not found". I thought this might be due to stripped > > Early setting of breakpoints by name was broken by the switch to elf in > FreeBSD-3.0 (symbols aren't available until the kernel module sysinit runs > much later). I think it works for aout kernels in 3.x but not in 4.0 or > -current. Use gdb or set breakpoints early by value in broken versions. > > Bruce > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 1:31:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id 0DE6F37B8B5; Fri, 2 Jun 2000 01:31:37 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12xmrO-0005yB-00; Fri, 02 Jun 2000 15:31:18 +0700 Date: Fri, 2 Jun 2000 15:31:18 +0700 (ALMST) From: Boris Popov To: "G.B.Naidu" Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: DDB is not setting break points... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 2 Jun 2000, G.B.Naidu wrote: > Thanks Bruse for the reply. I am running 3.3-Release of FreeBSD. And my > kernel is elf kernel. So according to Bruce, I cannot set the breakpoints > from DDB until sysinit() finishes. So what is the safe point from where I > can set break points from DDB? I want to use DDB because I want to debug > online. G.B.Naidu, since you're ingnore private email, I'm asking you again - please do not crosspost questions into several lists at a time. freebsd-net is not for this kind of questions. Thank you. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 2:34: 0 2000 Delivered-To: freebsd-net@freebsd.org Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (Postfix) with ESMTP id B73A137BA1E for ; Fri, 2 Jun 2000 02:33:56 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.3/frmug-2.7/nospam) with UUCP id LAA19757 for freebsd-net@FreeBSD.org; Fri, 2 Jun 2000 11:33:55 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (Postfix, from userid 101) id 22E9687A8; Fri, 2 Jun 2000 11:08:31 +0200 (CEST) Date: Fri, 2 Jun 2000 11:08:31 +0200 From: Ollivier Robert To: freebsd-net@FreeBSD.org Subject: Re: help Message-ID: <20000602110831.A46990@keltia.freenix.fr> Mail-Followup-To: freebsd-net@FreeBSD.org References: <200005252118.XAA09041@marao.utad.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.11i In-Reply-To: <200005252118.XAA09041@marao.utad.pt>; from jsilva@utad.pt on Thu, May 25, 2000 at 11:19:53PM +0100 X-Operating-System: FreeBSD 5.0-CURRENT/ELF AMD-K6/200 & 2x PPro/200 SMP Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Jorge Sa' Silva: > I have installed the FreeBSD 4.0. How can I use the IPv6 functionalities - > for example the ping6 between 2 IPv6 - Ethernet machines? Is it necessary > to modify any configuration file or to use the ifconfig? How? You have to look into /etc/defaults/rc.conf. You'll find several ipv6 variables for both host and router configuration. For a host, it is quite easy: ### IPv6 options: ### ipv6_enable="YES" ipv6_network_interfaces="auto" # List of network interfaces (or "auto"). After that, your interfaces will have some more aliases on them: ed0: flags=8843 mtu 1500 inet 193.56.58.65 netmask 0xfffffff0 broadcast 193.56.58.79 inet6 fe80::200:c0ff:fe7c:6648%ed0 prefixlen 64 scopeid 0x1 ether 00:00:c0:7c:66:48 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x10 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 Proper routes will also be established. Also look in /usr/share/doc/examples/IPv6 for details. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 5.0-CURRENT #79: Sun May 28 01:27:10 CEST 2000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 10:44:46 2000 Delivered-To: freebsd-net@freebsd.org Received: from yagosys.com (mail.yagosys.com [207.135.89.130]) by hub.freebsd.org (Postfix) with ESMTP id 0438437BABD for ; Fri, 2 Jun 2000 10:44:43 -0700 (PDT) (envelope-from shiva@yagosys.com) Received: from yagosys.com by yagosys.com (8.8.8+Sun/SMI-SVR4-Yago) id KAA27560; Fri, 2 Jun 2000 10:43:14 -0700 (PDT) Message-ID: <3937F28A.5168FABC@yagosys.com> Date: Fri, 02 Jun 2000 10:44:42 -0700 From: Shiva Shenoy Reply-To: shiva@yagosys.com Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: [Q] Clarification regarding RTF_PRCLONING and RTF_CLONING. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, 1. What is the difference between RTF_PRCLONING and RTF_CLONING I see that these 2 attributes are mutually exclusive. 2. Do ARP entries, cloned off of interface routes, get deleted when an interface route is brought down or deleted? 3. How come ARP rtentries do not have rt_parent set to the interface routes that they are cloned off of? In fact they are set to NULL. Thanks for any pointers. -Shiva Shenoy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 11:24:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 3BB0737BB04 for ; Fri, 2 Jun 2000 11:24:15 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA42179; Fri, 2 Jun 2000 14:22:56 -0400 (EDT) (envelope-from wollman) Date: Fri, 2 Jun 2000 14:22:56 -0400 (EDT) From: Garrett Wollman Message-Id: <200006021822.OAA42179@khavrinen.lcs.mit.edu> To: shiva@yagosys.com Cc: freebsd-net@FreeBSD.ORG Subject: [Q] Clarification regarding RTF_PRCLONING and RTF_CLONING. In-Reply-To: <3937F28A.5168FABC@yagosys.com> References: <3937F28A.5168FABC@yagosys.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > 1. What is the difference between RTF_PRCLONING and RTF_CLONING > I see that these 2 attributes are mutually exclusive. One is enabled by the protocol and the other is enabled by the interface or by a routing process. The former was a hack perpetrated by yours truly to make the routing table behave like a per-host cache. I know better now, but I haven't had the time or inclination over the past four years to sit down and fix it. > 2. Do ARP entries, cloned off of interface routes, get deleted > when an interface route is brought down or deleted? I don't recall. I think there was some code to support that, but I don't know whether it was actually effective or not. > 3. How come ARP rtentries do not have rt_parent set to the > interface routes that they are cloned off of? In fact they > are set to NULL. Because they are created from RTF_CLONING routes and not RTF_PRCLONING routes. This may actually be a bug. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 11:36:12 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id B5ED937B602 for ; Fri, 2 Jun 2000 11:36:08 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id LAA09339; Fri, 2 Jun 2000 11:35:36 -0700 (PDT) From: Archie Cobbs Message-Id: <200006021835.LAA09339@bubba.whistle.com> Subject: Re: Patch review request (ng_ether(4)) In-Reply-To: <3937487C.41C67EA6@elischer.org> from Julian Elischer at "Jun 1, 2000 10:39:08 pm" To: julian@elischer.org (Julian Elischer) Date: Fri, 2 Jun 2000 11:35:36 -0700 (PDT) Cc: freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Julian Elischer writes: > Archie Cobbs wrote: > > I'd appreciate any reviews of this patch: > > > > ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch > > > > What this does is: > > > > - Change the ng_ether(4) netgraph node type to get rid of the > > "divert" and "orphans" hooks, replacing them with these hooks: > > > > "lower" - connection to the raw device > > "upper" - connection to the upper protocol layers > > > > This should allow much more interesting Ethernet operations > > using netgraph, especially things that filter, etc. For example, > > bridging can all be done with a netgraph node. > > > > - Moves all the netgraph-specific functionality out of net/if_ethersubr.c > > and into a new file netgraph/ng_ether.c > > > > - Allows a KLD for ng_ether.ko so your kernel doesn't have to > > be compiled with options NETGRAPH to use it. When loaded, all > > ethernet interfaces become netgraph nodes as well.. including > > PCCARDS inserted later. > > This change removes the ability to only catch packets that are > unknown to the exisiting infrastructure.(i.e. orphans). > So you'd have to write code to do that especially in the netgraph > node.. See below.. > The topography of the new interceptions are interesting and useful, > but I have a couple of concerns. > > 1/ impact. My original design was done as it was, so that in the > case of no netgraph option, the path through the driver would > be unchanged. The new code is implemented so that > under all cases there is an extra test and function call, > as ether_input() calls ether_input2(). I think the impact will be small, pretty much one pointer != NULL test per packet. The fact that ether_input() has been split into ether_input() and ether_input2() should not matter because gcc will optimize away the function call to ether_input2(), because it comes at the very tail end of ether_input(). > 2/ Compatibility.. > because there is no 'orphans' node, pppoe will probably have to > pass packets back to ether_input2() > which will be considerably slower than > what was going on before. On second thought I agree with this. I've added back the divert and orphans hooks with their original functionality (divert is just an alias for lower). As soon as I can access freefall again I'll put up a new patch. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 11:50:31 2000 Delivered-To: freebsd-net@freebsd.org Received: from yagosys.com (mail.yagosys.com [207.135.89.130]) by hub.freebsd.org (Postfix) with ESMTP id 6A6ED37B709 for ; Fri, 2 Jun 2000 11:50:28 -0700 (PDT) (envelope-from shiva@yagosys.com) Received: from yagosys.com by yagosys.com (8.8.8+Sun/SMI-SVR4-Yago) id LAA29721; Fri, 2 Jun 2000 11:48:28 -0700 (PDT) Message-ID: <393801D4.84C60B59@yagosys.com> Date: Fri, 02 Jun 2000 11:49:56 -0700 From: Shiva Shenoy Reply-To: shiva@yagosys.com Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Garrett Wollman Cc: freebsd-net@FreeBSD.ORG Subject: Re: [Q] Clarification regarding RTF_PRCLONING and RTF_CLONING. References: <3937F28A.5168FABC@yagosys.com> <200006021822.OAA42179@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Garrett Wollman wrote: > > < said: > > > 1. What is the difference between RTF_PRCLONING and RTF_CLONING > > I see that these 2 attributes are mutually exclusive. > > One is enabled by the protocol and the other is enabled by the > interface or by a routing process. The former was a hack perpetrated > by yours truly to make the routing table behave like a per-host > cache. I know better now, but I haven't had the time or inclination > over the past four years to sit down and fix it. > > > 2. Do ARP entries, cloned off of interface routes, get deleted > > when an interface route is brought down or deleted? > > I don't recall. I think there was some code to support that, but I > don't know whether it was actually effective or not. > (All code snippets below are from net/route.c) The code that may have been there is under RTM_DELETE. This call here after the route has been deleted was intended to do that, I think. rnh->rnh_walktree_from(rnh, dst, netmask, rt_fixdelete, rt); When an interface route is blown away, arp entries are not removed. Reason: rt_fixdelete() - the first line precludes arp entries, cloned off of the interface route from passing the test. The parent route is NULL for arp entries! if (rt->rt_parent == rt0 && !(rt->rt_flags & RTF_PINNED)) { This can be fixed by changing the line in rtrequest: if ((*ret_nrt)->rt_flags & RTF_PRCLONING) { rt->rt_parent = (*ret_nrt); to: if ((*ret_nrt)->rt_flags & (RTF_CLONING | RTF_PRCLONING)) { rt->rt_parent = (*ret_nrt); Do you see any serious problem in this logic? > > 3. How come ARP rtentries do not have rt_parent set to the > > interface routes that they are cloned off of? In fact they > > are set to NULL. > > Because they are created from RTF_CLONING routes and not RTF_PRCLONING > routes. This may actually be a bug. Thanks again for your feedback. -Shiva Shenoy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 12:33:33 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id D929C37BF8F for ; Fri, 2 Jun 2000 12:33:28 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id PAA42466; Fri, 2 Jun 2000 15:32:07 -0400 (EDT) (envelope-from wollman) Date: Fri, 2 Jun 2000 15:32:07 -0400 (EDT) From: Garrett Wollman Message-Id: <200006021932.PAA42466@khavrinen.lcs.mit.edu> To: shiva@yagosys.com Cc: Garrett Wollman , freebsd-net@FreeBSD.ORG Subject: Re: [Q] Clarification regarding RTF_PRCLONING and RTF_CLONING. In-Reply-To: <393801D4.84C60B59@yagosys.com> References: <3937F28A.5168FABC@yagosys.com> <200006021822.OAA42179@khavrinen.lcs.mit.edu> <393801D4.84C60B59@yagosys.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > if ((*ret_nrt)->rt_flags & (RTF_CLONING | RTF_PRCLONING)) { rt-> rt_parent = (*ret_nrt); > Do you see any serious problem in this logic? There is code in other places which attempts to distinguish different types of routes on the basis of their rt_parent fields, IIRC. I don't quite remember what the function of all of it was. The whole thing just needs to be rewritten. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 13:23: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 6A87F37B55B for ; Fri, 2 Jun 2000 13:23:02 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA10162; Fri, 2 Jun 2000 13:22:31 -0700 (PDT) From: Archie Cobbs Message-Id: <200006022022.NAA10162@bubba.whistle.com> Subject: Re: Patch review request (ng_ether(4)) In-Reply-To: <200006021835.LAA09339@bubba.whistle.com> from Archie Cobbs at "Jun 2, 2000 11:35:36 am" To: julian@elischer.org Date: Fri, 2 Jun 2000 13:22:31 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Archie Cobbs writes: > As soon as I can access freefall again I'll put up a new patch. OK, try this one: ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch.2 Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 13:25:50 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 5D01E37B69C for ; Fri, 2 Jun 2000 13:25:47 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA10221; Fri, 2 Jun 2000 13:25:14 -0700 (PDT) From: Archie Cobbs Message-Id: <200006022025.NAA10221@bubba.whistle.com> Subject: Re: BPF fix to if_loop.c In-Reply-To: <5679.959741495@coconut.itojun.org> from "itojun@iijlab.net" at "May 31, 2000 11:51:35 am" To: itojun@iijlab.net Date: Fri, 2 Jun 2000 13:25:14 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org itojun@iijlab.net writes: > >The commit comment to revision 1.33 of if_loop.c may be slightly > >enlightening.. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_loop.c > >For an example of the resulting cleanup, see: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_ethersubr.c.diff?r1=1.48&r2=1.49 > >Maybe the caller of if_simloop() should be responsible for the BPF part.. > > that is my understanding for if_simloop(). one thing still unclear > to me is, what can ip{,6}_mloopback() do about it? (I believe nothing > they can do) I think the problem is that it's not clear what layer if_simloop() is for, or at.. it seems to get called from different layers. I.e., if it were link-layer, then you would expect to include the link header and do BPF.. if at the IP layer, you'd expect not to. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 18:53:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from filk.iinet.net.au (filk.iinet.net.au [203.59.24.235]) by hub.freebsd.org (Postfix) with ESMTP id 473AF37B9D1 for ; Fri, 2 Jun 2000 18:53:46 -0700 (PDT) (envelope-from julian@elischer.org) Received: from jules.elischer.org (reggae-12-92.nv.iinet.net.au [203.59.92.92]) by filk.iinet.net.au (8.8.7/8.8.7) with SMTP id JAA31631; Sat, 3 Jun 2000 09:54:08 +0800 Message-ID: <39386505.2781E494@elischer.org> Date: Fri, 02 Jun 2000 18:53:09 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: Re: Patch review request (ng_ether(4)) References: <200006022022.NAA10162@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Archie Cobbs wrote: > > Archie Cobbs writes: > > As soon as I can access freefall again I'll put up a new patch. > > OK, try this one: > > ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch.2 you need to block attaches to orphan if the lower hook is in use, and visa versa. > > Thanks, > -Archie > > ___________________________________________________________________________ > Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 18:55: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id A003A37B9D1 for ; Fri, 2 Jun 2000 18:54:59 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from kiwi.itojun.org (localhost.itojun.org [127.0.0.1]) by coconut.itojun.org (8.9.3+3.2W/3.7W) with ESMTP id KAA15123; Sat, 3 Jun 2000 10:54:51 +0900 (JST) To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG In-reply-to: archie's message of Fri, 02 Jun 2000 13:25:14 MST. <200006022025.NAA10221@bubba.whistle.com> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: BPF fix to if_loop.c From: itojun@iijlab.net Date: Sat, 03 Jun 2000 10:54:51 +0900 Message-ID: <15121.959997291@coconut.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> that is my understanding for if_simloop(). one thing still unclear >> to me is, what can ip{,6}_mloopback() do about it? (I believe nothing >> they can do) > >I think the problem is that it's not clear what layer if_simloop() >is for, or at.. it seems to get called from different layers. > >I.e., if it were link-layer, then you would expect to include the >link header and do BPF.. if at the IP layer, you'd expect not to. I think there needs to be two entrypoints - one for layer3 (without link-layer, no bpf injection), one for layer 2 (with link-layer, inject to bpf, if_simloop). former one can be made by removing call to if_simloop() in looutput() and copy some meat from if_simloop(). itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 19:22:22 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id B7E0C37BA52 for ; Fri, 2 Jun 2000 19:22:18 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id TAA65766; Fri, 2 Jun 2000 19:21:46 -0700 (PDT) From: Archie Cobbs Message-Id: <200006030221.TAA65766@bubba.whistle.com> Subject: Re: Patch review request (ng_ether(4)) In-Reply-To: <39386505.2781E494@elischer.org> from Julian Elischer at "Jun 2, 2000 06:53:09 pm" To: julian@elischer.org (Julian Elischer) Date: Fri, 2 Jun 2000 19:21:46 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Julian Elischer writes: > > > As soon as I can access freefall again I'll put up a new patch. > > > > OK, try this one: > > > > ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch.2 > > you need to block attaches to orphan if the lower hook is in use, > and visa versa. It should already do that.. they both use priv->lower. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jun 2 23:50: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from filk.iinet.net.au (filk.iinet.net.au [203.59.24.235]) by hub.freebsd.org (Postfix) with ESMTP id 5997037BAFD for ; Fri, 2 Jun 2000 23:49:53 -0700 (PDT) (envelope-from julian@elischer.org) Received: from jules.elischer.org (reggae-02-197.nv.iinet.net.au [203.59.91.197]) by filk.iinet.net.au (8.8.7/8.8.7) with SMTP id OAA13278; Sat, 3 Jun 2000 14:50:02 +0800 Message-ID: <3938AA5E.15FB7483@elischer.org> Date: Fri, 02 Jun 2000 23:49:02 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Archie Cobbs Cc: Freebsd-net@FreeBSD.ORG Subject: Re: Patch review request (ng_ether(4)) References: <200006030221.TAA65766@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Archie Cobbs wrote: > > Julian Elischer writes: > > > > As soon as I can access freefall again I'll put up a new patch. > > > > > > OK, try this one: > > > > > > ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch.2 > > > > you need to block attaches to orphan if the lower hook is in use, > > and visa versa. > > It should already do that.. they both use priv->lower. OK comment in ng_ether_input_orphan() is wrong. You can't use NG_SEND_DATA_RET() in an ethernet driver (on input) because you need to use NG_QUEUE_DATA() (splimp, remember) My thought is that you would supply a separate hook for 'FILTER' operations which you would warn would have to be run at splimp. The splnet and splimp graphs can only be joined by queueing links (going up). I think this needs work, and there is a possibility that we could put transfer characteristics as a property on links so that the right thing happens. The FILTER hooks would either have to be attached to nodes that use NG_QUEUE_DATA(), or which had no connection to the splnet universe. Automatic registration of spl levels on hooks might lead to some automatic handling of this but a/ I think the programmer should know what is going on. b/ this may all become moot with the removal of SPLs for interrupts. > > -Archie > > ___________________________________________________________________________ > Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 3 1: 2: 8 2000 Delivered-To: freebsd-net@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id 38AEE37BB20 for ; Sat, 3 Jun 2000 01:02:03 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (qmail 27978 invoked from network); 3 Jun 2000 08:01:59 -0000 Received: from unknown (HELO bde.zeta.org.au) (203.2.228.102) by gidora.zeta.org.au with SMTP; 3 Jun 2000 08:01:59 -0000 Date: Sat, 3 Jun 2000 18:01:56 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Archie Cobbs Cc: Julian Elischer , freebsd-net@FreeBSD.ORG Subject: Re: Patch review request (ng_ether(4)) In-Reply-To: <200006021835.LAA09339@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 2 Jun 2000, Archie Cobbs wrote: > I think the impact will be small, pretty much one pointer != NULL > test per packet. The fact that ether_input() has been split into > ether_input() and ether_input2() should not matter because gcc will > optimize away the function call to ether_input2(), because it comes > at the very tail end of ether_input(). gcc is only documented to do tail call optimizations on Intel 960's, only with the option -mtail-call. For i386's, -mtail-call doesn't exist, and I've never seen gcc do tail-call optimizations. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 3 6:25:21 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rz.fh-wilhelmshaven.de (mail.rz.fh-wilhelmshaven.de [139.13.25.134]) by hub.freebsd.org (Postfix) with ESMTP id 785B837B522 for ; Sat, 3 Jun 2000 06:25:18 -0700 (PDT) (envelope-from ohoyer@fbwi.fh-wilhelmshaven.de) Received: from fettesau.stuwo.fh-wilhelmshaven.de (stuwopc5.stuwo.fh-wilhelmshaven.de [139.13.209.5]) by mail.rz.fh-wilhelmshaven.de (8.9.3/8.9.3) with SMTP id PAA07162 for ; Sat, 3 Jun 2000 15:25:12 +0200 (MET DST) Message-Id: <4.1.20000603151655.009f4760@mail.rz.fh-wilhelmshaven.de> X-Sender: ohoyer@mail.rz.fh-wilhelmshaven.de X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 03 Jun 2000 15:24:54 +0200 To: freebsd-net@FreeBSD.ORG From: Olaf Hoyer Subject: BPF and DHCP Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! Got following issue: I have my workstation running 4.0 Release (german Lehmanns dist) with a generic Realtek NIC configured (for several reasons) as non-PnP ed0. Everythings working so far. For using DHCP support on our dorm's network (and to obey local policy ;-) ) I wanted to use it. So I compiled BPF into the kernel, and it works. But one thing troubles me: At least under 3.2R , there was a boot-up message saying :ed0 promiscuous mode enabled Problem is, that another part of local policy forbids cards being in promisc mode due to possible sniffer attacks etc. Questions: (man bpf left some questions open) Can I assume. that with the presence of bpf the card is _always_ put in promisc. mode? If thats the case, are there any other thinkable ways to use the DHCP service for automatic IP assignment? And, final one, to be prepared for heated discussion with local admin: In which ways does Linux do DHCP? (He is some hardcore Linux guy) TIA Olaf Hoyer -------- Olaf Hoyer www.nightfire.de mailto:Olaf.Hoyer@nightfire.de FreeBSD- Turning PC's into workstations ICQ:22838075 Liebe und Hass sind nicht blind, aber geblendet vom Feuer, dass sie selber mit sich tragen. (Nietzsche) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jun 3 19:44:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 77C6537B8F8 for ; Sat, 3 Jun 2000 19:44:53 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id TAA72017; Sat, 3 Jun 2000 19:44:14 -0700 (PDT) From: Archie Cobbs Message-Id: <200006040244.TAA72017@bubba.whistle.com> Subject: Re: Patch review request (ng_ether(4)) In-Reply-To: from Bruce Evans at "Jun 3, 2000 06:01:56 pm" To: bde@zeta.org.au (Bruce Evans) Date: Sat, 3 Jun 2000 19:44:14 -0700 (PDT) Cc: julian@elischer.org, freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Bruce Evans writes: > > I think the impact will be small, pretty much one pointer != NULL > > test per packet. The fact that ether_input() has been split into > > ether_input() and ether_input2() should not matter because gcc will > > optimize away the function call to ether_input2(), because it comes > > at the very tail end of ether_input(). > > gcc is only documented to do tail call optimizations on Intel 960's, > only with the option -mtail-call. For i386's, -mtail-call doesn't > exist, and I've never seen gcc do tail-call optimizations. Hmm.. I was under the impression that tail-call optimization was a "normal" optimization.. maybe not. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message