From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 11:08:20 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35F6F16A5E3 for ; Mon, 15 Jan 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 25F4513C4C8 for ; Mon, 15 Jan 2007 11:08:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0FB8JtD031773 for ; Mon, 15 Jan 2007 11:08:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0FB8I0w031769 for freebsd-net@FreeBSD.org; Mon, 15 Jan 2007 11:08:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Jan 2007 11:08:18 GMT Message-Id: <200701151108.l0FB8I0w031769@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 11:08:20 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- a kern/38554 net changing interface ipaddress doesn't seem to work s kern/39937 net ipstealth issue o kern/92552 net A serious bug in most network drivers from 5.X to 6.X s kern/95665 net [if_tun] "ping: sendto: No buffer space available" wit o kern/106722 net [net] [patch] ifconfig may not connect an interface to 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/19875 net A new protocol family, PF_IPOPTION, to handle IP optio o conf/23063 net [PATCH] for static ARP tables in rc.network s bin/41647 net ifconfig(8) doesn't accept lladdr along with inet addr o kern/54383 net [nfs] [patch] NFS root configurations without dynamic s kern/60293 net FreeBSD arp poison patch o kern/95267 net packet drops periodically appear f kern/95277 net [netinet] IP Encapsulation mask_match() returns wrong o kern/102035 net [plip] plip networking disables parallel port printing o conf/102502 net [patch] ifconfig name does't rename netgraph node in n o kern/106999 net [netgraph] [patch] ng_ksocket fails to clear multicast 10 problems total. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 15:35:52 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF2A816A49E for ; Mon, 15 Jan 2007 15:35:52 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8C96F13C45D for ; Mon, 15 Jan 2007 15:35:52 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H6SUL-00007E-3i for freebsd-net@freebsd.org; Mon, 15 Jan 2007 15:07:05 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jan 2007 15:07:05 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jan 2007 15:07:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Mon, 15 Jan 2007 15:06:57 +0100 Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) In-Reply-To: Sender: news Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 15:35:52 -0000 Hug Me wrote: > 11:08:06.528691 IP (tos 0x4, ttl 255, id 0, offset 0, flags [DF], length: > 51) 10.0.0.2.0 > 10.0.0.1.69: [udp sum ok] 23 RRQ "load2000v115.d" octet > We believe FreeBSD is not allowing a UDP source port of 0 and the kernel is > dropping the packet before it ever reaches the tftp server but are > unable to > verify this hypothesis. A shot in the dark: any firewalls or similar services active on the FreeBSD box? From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 18:21:21 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD90716A4A0 for ; Mon, 15 Jan 2007 18:21:21 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id A930813C44B for ; Mon, 15 Jan 2007 18:21:20 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1294083uge for ; Mon, 15 Jan 2007 10:21:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Wi10Q3PimqqD2phUccB3eOcYbG5PYlh3f/cJgEL3FQBPdrX1000up7z93VV8QK0PSBbCSXvIBd+JAOgxG26YoMP+FE1sDWPxqjYiB9ZrzuFCYyHsRJ8pYRYcGm00bxxeS7DKuoIGVzEQS7HPEC614hKjrmWVJPOzuUQOcQ1GdU4= Received: by 10.67.106.3 with SMTP id i3mr5767410ugm.1168883682288; Mon, 15 Jan 2007 09:54:42 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id u6sm7132641uge.2007.01.15.09.54.41; Mon, 15 Jan 2007 09:54:41 -0800 (PST) Message-ID: <45ABBFDF.4080708@gmail.com> Date: Mon, 15 Jan 2007 18:54:39 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 18:21:21 -0000 Hi, I hope someone can help me with this, before I go mad (no pun intended.) :) I was initially looking for a relatively cheap 54Mbps, 802.11g- and WPA-capable network card, based on an Atheros chipset, but after spending the whole of last night looking for one - to no avail - I gave up. I'm almost about to conclude that Atheros is not the way to go. So now I want to know, if anyone can recommend ANY card, being cheap and supporting the features mentioned above. I don't mind using NDIS, as long as it works flawlessly. Also it would be good, if the card was a popular one, so community support is more available. Thanks. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 18:38:20 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F16D16A49E for ; Mon, 15 Jan 2007 18:38:20 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id B42F913C4B9 for ; Mon, 15 Jan 2007 18:38:19 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1298076uge for ; Mon, 15 Jan 2007 10:38:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=WjuN1jJN+DUjL4upa+hHT+mKsJXKH1A9UtUyqux47PIiA6t6EJP7IYdATLmlI4fQ60cmme6RJzhfTWe8rkViZaAV2ysX9yjHryxvdts4kS6au5rnIuO7EQOmWHaXrVtfdUmZEy5KUUAbUcSGjV7AK+VLL6ZuROu3BK78E7Du3B0= Received: by 10.67.103.7 with SMTP id f7mr5857138ugm.1168886297648; Mon, 15 Jan 2007 10:38:17 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id o30sm7234360ugd.2007.01.15.10.38.16; Mon, 15 Jan 2007 10:38:16 -0800 (PST) Message-ID: <45ABCA16.8040000@gmail.com> Date: Mon, 15 Jan 2007 19:38:14 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> In-Reply-To: <45ABBFDF.4080708@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 18:38:20 -0000 Lars Stokholm wrote: > Hi, I hope someone can help me with this, before I go mad (no pun > intended.) :) > > I was initially looking for a relatively cheap 54Mbps, 802.11g- and > WPA-capable network card, based on an Atheros chipset, but after > spending the whole of last night looking for one - to no avail - I > gave up. > > I'm almost about to conclude that Atheros is not the way to go. So now > I want to know, if anyone can recommend ANY card, being cheap and > supporting the features mentioned above. I don't mind using NDIS, as > long as it works flawlessly. Also it would be good, if the card was a > popular one, so community support is more available. > > Thanks. Oops, forgot to add that it must be PCI. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:04:25 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BE6016A407 for ; Mon, 15 Jan 2007 19:04:25 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 1791C13C45A for ; Mon, 15 Jan 2007 19:04:23 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l0FIlvcG005171; Mon, 15 Jan 2007 10:47:58 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-net@freebsd.org Date: Mon, 15 Jan 2007 13:44:49 -0500 User-Agent: KMail/1.9.5 References: <45ABBFDF.4080708@gmail.com> In-Reply-To: <45ABBFDF.4080708@gmail.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151344.49696.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Lars Stokholm Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:04:25 -0000 On Monday 15 January 2007 12:54, Lars Stokholm wrote: > Hi, I hope someone can help me with this, before I go mad (no pun > intended.) :) > > I was initially looking for a relatively cheap 54Mbps, 802.11g- and > WPA-capable network card, based on an Atheros chipset, but after > spending the whole of last night looking for one - to no avail - I gave up. > > I'm almost about to conclude that Atheros is not the way to go. So now I > want to know, if anyone can recommend ANY card, being cheap and > supporting the features mentioned above. I don't mind using NDIS, as > long as it works flawlessly. Also it would be good, if the card was a > popular one, so community support is more available. For driver support in FreeBSD, Atheros is definitely the way to go. Have you looked through the listings here? http://customerproducts.atheros.com/customerproducts/default.asp Also, you failed to mention what your definition of "cheap" is, and what form factor you're looking for (PCI, Cardbus, etc.) I would start with the listings at the link above and look through products from the cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if there are any you can currently buy within your price range. JN From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:05:42 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59B9216A407 for ; Mon, 15 Jan 2007 19:05:42 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 3C84F13C44C for ; Mon, 15 Jan 2007 19:05:42 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l0FJ5fcG013796; Mon, 15 Jan 2007 11:05:41 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-net@freebsd.org Date: Mon, 15 Jan 2007 14:02:33 -0500 User-Agent: KMail/1.9.5 References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> In-Reply-To: <200701151344.49696.lists@jnielsen.net> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151402.34059.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Lars Stokholm Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:05:42 -0000 On Monday 15 January 2007 13:44, John Nielsen wrote: > On Monday 15 January 2007 12:54, Lars Stokholm wrote: > > Hi, I hope someone can help me with this, before I go mad (no pun > > intended.) :) > > > > I was initially looking for a relatively cheap 54Mbps, 802.11g- and > > WPA-capable network card, based on an Atheros chipset, but after > > spending the whole of last night looking for one - to no avail - I gave > > up. > > > > I'm almost about to conclude that Atheros is not the way to go. So now I > > want to know, if anyone can recommend ANY card, being cheap and > > supporting the features mentioned above. I don't mind using NDIS, as > > long as it works flawlessly. Also it would be good, if the card was a > > popular one, so community support is more available. > > For driver support in FreeBSD, Atheros is definitely the way to go. Have > you looked through the listings here? > > http://customerproducts.atheros.com/customerproducts/default.asp > > Also, you failed to mention what your definition of "cheap" is, and what > form factor you're looking for (PCI, Cardbus, etc.) I would start with the > listings at the link above and look through products from the > cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if > there are any you can currently buy within your price range. The Netgear WG311T seems like a widely available decent bet for ~$50 USD. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:45:01 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84C2116A492 for ; Mon, 15 Jan 2007 19:45:01 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 059AE13C4E9 for ; Mon, 15 Jan 2007 19:44:58 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1314104uge for ; Mon, 15 Jan 2007 11:44:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=tUYbNdmQwqvBUBFupzE+pAak21wAKW73INo6GPmr/bvGoMkpTiPKYPWa/4AuboOo32KTiA9dYL/5Fgunikgk9CAbhVNxnACXMG2t4XjCQ7OkwSOTWJ7O7F8UBNkEa+7eSMMkkIQWI8iGNRyd+yszUFnWClAlekKWXAA9W+V8TF8= Received: by 10.66.242.20 with SMTP id p20mr5946754ugh.1168890297360; Mon, 15 Jan 2007 11:44:57 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id j2sm5987444ugf.2007.01.15.11.44.55; Mon, 15 Jan 2007 11:44:55 -0800 (PST) Message-ID: <45ABD9B6.1020702@gmail.com> Date: Mon, 15 Jan 2007 20:44:54 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> In-Reply-To: <200701151402.34059.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: John Nielsen Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:45:01 -0000 John Nielsen wrote: > On Monday 15 January 2007 13:44, John Nielsen wrote: > >> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >> >>> Hi, I hope someone can help me with this, before I go mad (no pun >>> intended.) :) >>> >>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>> WPA-capable network card, based on an Atheros chipset, but after >>> spending the whole of last night looking for one - to no avail - I gave >>> up. >>> >>> I'm almost about to conclude that Atheros is not the way to go. So now I >>> want to know, if anyone can recommend ANY card, being cheap and >>> supporting the features mentioned above. I don't mind using NDIS, as >>> long as it works flawlessly. Also it would be good, if the card was a >>> popular one, so community support is more available. >>> >> For driver support in FreeBSD, Atheros is definitely the way to go. Have >> you looked through the listings here? >> >> http://customerproducts.atheros.com/customerproducts/default.asp >> >> Also, you failed to mention what your definition of "cheap" is, and what >> form factor you're looking for (PCI, Cardbus, etc.) I would start with the >> listings at the link above and look through products from the >> cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if >> there are any you can currently buy within your price range. I can't really say what cheap is, just that it's in the low(er) end of the scale. I only have a rough sense of the price levels in Denmark and I certainly know nothing about them in the US. :) The listing above it good, but I like this better, since it also warns about different versions of the card: http://madwifi.org/wiki/Compatibility This is the list I went through last night: http://linux-wless.passys.nl/query_chipset.php?chipset=Atheros But one-by-one I threw them all away. >> The Netgear WG311T seems like a widely available decent bet for ~$50 USD. >> >> In the data sheet it says: "Upgradable to Wi-Fi Protected Access (WPA) security." I wonder what that means. Also there are many versions of the card: WG311TIS, WG311TFS, WG311TGE, WG311TNE and so on. After having already spend money on a card that didn't work, because only rev. ? of the card used Atheros, I'm being very cautious. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:47:42 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4774916A40F for ; Mon, 15 Jan 2007 19:47:42 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id 073C913C43E for ; Mon, 15 Jan 2007 19:47:41 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id C9B9BBB91; Mon, 15 Jan 2007 19:17:00 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YnTVeAlpkZbe; Mon, 15 Jan 2007 19:16:50 +0000 (GMT) Received: from [195.28.169.199] (unknown [195.28.169.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id D144EBB90; Mon, 15 Jan 2007 19:16:49 +0000 (GMT) Message-ID: <45ABD316.50800@joeholden.co.uk> Date: Mon, 15 Jan 2007 19:16:38 +0000 From: Joe Holden User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: John Nielsen References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> In-Reply-To: <200701151402.34059.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Lars Stokholm Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:47:42 -0000 John Nielsen wrote: > On Monday 15 January 2007 13:44, John Nielsen wrote: >> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>> Hi, I hope someone can help me with this, before I go mad (no pun >>> intended.) :) >>> >>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>> WPA-capable network card, based on an Atheros chipset, but after >>> spending the whole of last night looking for one - to no avail - I gave >>> up. >>> >>> I'm almost about to conclude that Atheros is not the way to go. So now I >>> want to know, if anyone can recommend ANY card, being cheap and >>> supporting the features mentioned above. I don't mind using NDIS, as >>> long as it works flawlessly. Also it would be good, if the card was a >>> popular one, so community support is more available. >> For driver support in FreeBSD, Atheros is definitely the way to go. Have >> you looked through the listings here? >> >> http://customerproducts.atheros.com/customerproducts/default.asp >> >> Also, you failed to mention what your definition of "cheap" is, and what >> form factor you're looking for (PCI, Cardbus, etc.) I would start with the >> listings at the link above and look through products from the >> cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if >> there are any you can currently buy within your price range. > > The Netgear WG311T seems like a widely available decent bet for ~$50 USD. I can also vouch for netgear products, especially the 511T, had no problems with that. Ta, Joe From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:52:10 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6082916A416 for ; Mon, 15 Jan 2007 19:52:10 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 30A8C13C455 for ; Mon, 15 Jan 2007 19:52:09 +0000 (UTC) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l0FJWw0U033007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Jan 2007 11:32:59 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <45ABD6EA.3060503@errno.com> Date: Mon, 15 Jan 2007 11:32:58 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: Lars Stokholm References: <45ABBFDF.4080708@gmail.com> <45ABCA16.8040000@gmail.com> In-Reply-To: <45ABCA16.8040000@gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:52:10 -0000 Lars Stokholm wrote: > Lars Stokholm wrote: >> Hi, I hope someone can help me with this, before I go mad (no pun >> intended.) :) >> >> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >> WPA-capable network card, based on an Atheros chipset, but after >> spending the whole of last night looking for one - to no avail - I >> gave up. >> >> I'm almost about to conclude that Atheros is not the way to go. So now >> I want to know, if anyone can recommend ANY card, being cheap and >> supporting the features mentioned above. I don't mind using NDIS, as >> long as it works flawlessly. Also it would be good, if the card was a >> popular one, so community support is more available. >> >> Thanks. > > Oops, forgot to add that it must be PCI. I got a Trendnet pci ath card a while back and it worked fine. Tested it on sparc64 even. Sam From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:56:42 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 176CE16A40F for ; Mon, 15 Jan 2007 19:56:42 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id C845513C459 for ; Mon, 15 Jan 2007 19:56:41 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id BCF15BB91; Mon, 15 Jan 2007 19:56:40 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Bzgezyq0T9D; Mon, 15 Jan 2007 19:56:33 +0000 (GMT) Received: from [195.28.169.199] (unknown [195.28.169.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 63A0BBB90; Mon, 15 Jan 2007 19:56:33 +0000 (GMT) Message-ID: <45ABDC66.5020701@joeholden.co.uk> Date: Mon, 15 Jan 2007 19:56:22 +0000 From: Joe Holden User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: Lars Stokholm References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> <45ABD9B6.1020702@gmail.com> In-Reply-To: <45ABD9B6.1020702@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, John Nielsen Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:56:42 -0000 Lars Stokholm wrote: > John Nielsen wrote: >> On Monday 15 January 2007 13:44, John Nielsen wrote: >> >>> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>> >>>> Hi, I hope someone can help me with this, before I go mad (no pun >>>> intended.) :) >>>> >>>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>>> WPA-capable network card, based on an Atheros chipset, but after >>>> spending the whole of last night looking for one - to no avail - I gave >>>> up. >>>> >>>> I'm almost about to conclude that Atheros is not the way to go. So >>>> now I >>>> want to know, if anyone can recommend ANY card, being cheap and >>>> supporting the features mentioned above. I don't mind using NDIS, as >>>> long as it works flawlessly. Also it would be good, if the card was a >>>> popular one, so community support is more available. >>>> >>> For driver support in FreeBSD, Atheros is definitely the way to go. Have >>> you looked through the listings here? >>> >>> http://customerproducts.atheros.com/customerproducts/default.asp >>> >>> Also, you failed to mention what your definition of "cheap" is, and what >>> form factor you're looking for (PCI, Cardbus, etc.) I would start >>> with the >>> listings at the link above and look through products from the >>> cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if >>> there are any you can currently buy within your price range. > I can't really say what cheap is, just that it's in the low(er) end of > the scale. I only have a rough sense of the price levels in Denmark and > I certainly know nothing about them in the US. :) > > The listing above it good, but I like this better, since it also warns > about different versions of the card: > http://madwifi.org/wiki/Compatibility > > This is the list I went through last night: > http://linux-wless.passys.nl/query_chipset.php?chipset=Atheros > > But one-by-one I threw them all away. >>> The Netgear WG311T seems like a widely available decent bet for ~$50 >>> USD. >>> >>> > In the data sheet it says: "Upgradable to Wi-Fi Protected Access (WPA) > security." I wonder what that means. > > Also there are many versions of the card: WG311TIS, WG311TFS, WG311TGE, > WG311TNE and so on. After having already spend money on a card that > didn't work, because only rev. ? of the card used Atheros, I'm being > very cautious. http://wiki.openwrt.org/TableOfHardware Ta, Joe From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 19:58:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97DCF16A523 for ; Mon, 15 Jan 2007 19:58:27 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id EB51A13C44B for ; Mon, 15 Jan 2007 19:58:25 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1317210uge for ; Mon, 15 Jan 2007 11:58:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=MPfNHUMKE1rZHGCl2J3n9W/EfN8lvgw4WFZ6ioqnhncJtExXxOgAN0atlMqiS4Y6j52rZ7CneUuXVKziqmTkrAB6bckJayYroFXTpWW2kimi/QPBIfbLKC7FtT9/mBqZNPg2CB5ScSu5EeAI4Drt3+k/Duo359xJh//t5SK3UrQ= Received: by 10.67.20.3 with SMTP id x3mr5962701ugi.1168891104676; Mon, 15 Jan 2007 11:58:24 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id s7sm7288076uge.2007.01.15.11.58.22; Mon, 15 Jan 2007 11:58:23 -0800 (PST) Message-ID: <45ABDCD9.8010302@gmail.com> Date: Mon, 15 Jan 2007 20:58:17 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> <45ABD9B6.1020702@gmail.com> <20070115195237.GB5768@heff.fud.org.nz> In-Reply-To: <20070115195237.GB5768@heff.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andrew Thompson Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:58:27 -0000 Andrew Thompson wrote: > On Mon, Jan 15, 2007 at 08:44:54PM +0100, Lars Stokholm wrote: > >> John Nielsen wrote: >> >>> On Monday 15 January 2007 13:44, John Nielsen wrote: >>> >>> >>>> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>>> >>>> >>>>> Hi, I hope someone can help me with this, before I go mad (no pun >>>>> intended.) :) >>>>> >>>>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>>>> WPA-capable network card, based on an Atheros chipset, but after >>>>> spending the whole of last night looking for one - to no avail - I gave >>>>> up. >>>>> >>>>> I'm almost about to conclude that Atheros is not the way to go. So now I >>>>> want to know, if anyone can recommend ANY card, being cheap and >>>>> supporting the features mentioned above. I don't mind using NDIS, as >>>>> long as it works flawlessly. Also it would be good, if the card was a >>>>> popular one, so community support is more available. >>>>> >>>>> >>>> For driver support in FreeBSD, Atheros is definitely the way to go. Have >>>> you looked through the listings here? >>>> >>>> http://customerproducts.atheros.com/customerproducts/default.asp >>>> >>>> Also, you failed to mention what your definition of "cheap" is, and what >>>> form factor you're looking for (PCI, Cardbus, etc.) I would start with the >>>> listings at the link above and look through products from the >>>> cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if >>>> there are any you can currently buy within your price range. >>>> >> I can't really say what cheap is, just that it's in the low(er) end of >> the scale. I only have a rough sense of the price levels in Denmark and >> I certainly know nothing about them in the US. :) >> > > The cheapest Atheros card I have found is the Cameo WLG-1202, $50 NZD and > works fine. > Thanks, but there's no mention of that card on ANY Danish website. :) Most of them seem to be com.nz. I'd like to buy a locally to save money. From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 20:02:00 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DFDCD16A415 for ; Mon, 15 Jan 2007 20:02:00 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id 894CC13C448 for ; Mon, 15 Jan 2007 20:02:00 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id CB30EBB91; Mon, 15 Jan 2007 20:01:58 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8dkUdQ-mkz1h; Mon, 15 Jan 2007 20:01:52 +0000 (GMT) Received: from [195.28.169.199] (unknown [195.28.169.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 15274BB90; Mon, 15 Jan 2007 20:01:52 +0000 (GMT) Message-ID: <45ABDDA5.4060301@joeholden.co.uk> Date: Mon, 15 Jan 2007 20:01:41 +0000 From: Joe Holden User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: Lars Stokholm References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> <45ABD9B6.1020702@gmail.com> In-Reply-To: <45ABD9B6.1020702@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, John Nielsen Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 20:02:01 -0000 Lars Stokholm wrote: > John Nielsen wrote: >> On Monday 15 January 2007 13:44, John Nielsen wrote: >> >>> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>> >>>> Hi, I hope someone can help me with this, before I go mad (no pun >>>> intended.) :) >>>> >>>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>>> WPA-capable network card, based on an Atheros chipset, but after >>>> spending the whole of last night looking for one - to no avail - I gave >>>> up. >>>> >>>> I'm almost about to conclude that Atheros is not the way to go. So >>>> now I >>>> want to know, if anyone can recommend ANY card, being cheap and >>>> supporting the features mentioned above. I don't mind using NDIS, as >>>> long as it works flawlessly. Also it would be good, if the card was a >>>> popular one, so community support is more available. >>>> >>> For driver support in FreeBSD, Atheros is definitely the way to go. Have >>> you looked through the listings here? >>> >>> http://customerproducts.atheros.com/customerproducts/default.asp >>> >>> Also, you failed to mention what your definition of "cheap" is, and what >>> form factor you're looking for (PCI, Cardbus, etc.) I would start >>> with the >>> listings at the link above and look through products from the >>> cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if >>> there are any you can currently buy within your price range. > I can't really say what cheap is, just that it's in the low(er) end of > the scale. I only have a rough sense of the price levels in Denmark and > I certainly know nothing about them in the US. :) > > The listing above it good, but I like this better, since it also warns > about different versions of the card: > http://madwifi.org/wiki/Compatibility > > This is the list I went through last night: > http://linux-wless.passys.nl/query_chipset.php?chipset=Atheros > > But one-by-one I threw them all away. >>> The Netgear WG311T seems like a widely available decent bet for ~$50 >>> USD. >>> >>> > In the data sheet it says: "Upgradable to Wi-Fi Protected Access (WPA) > security." I wonder what that means. > > Also there are many versions of the card: WG311TIS, WG311TFS, WG311TGE, > WG311TNE and so on. After having already spend money on a card that > didn't work, because only rev. ? of the card used Atheros, I'm being > very cautious. Sorry, completely the wrong link, what I meant was: http://ndiswrapper.sourceforge.net/mediawiki/index.php/List, has a fairly comprehensive list of cards and the chipset they use, should be useful in finding an atheros chip that fits your budget. Ta, Joe From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 20:06:44 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61D3916A40F for ; Mon, 15 Jan 2007 20:06:44 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id B49DF13C47E for ; Mon, 15 Jan 2007 20:06:43 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 2C5291CC29; Tue, 16 Jan 2007 08:52:37 +1300 (NZDT) Date: Tue, 16 Jan 2007 08:52:37 +1300 From: Andrew Thompson To: Lars Stokholm Message-ID: <20070115195237.GB5768@heff.fud.org.nz> References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <200701151402.34059.lists@jnielsen.net> <45ABD9B6.1020702@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45ABD9B6.1020702@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-net@freebsd.org Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 20:06:44 -0000 On Mon, Jan 15, 2007 at 08:44:54PM +0100, Lars Stokholm wrote: > John Nielsen wrote: > >On Monday 15 January 2007 13:44, John Nielsen wrote: > > > >>On Monday 15 January 2007 12:54, Lars Stokholm wrote: > >> > >>>Hi, I hope someone can help me with this, before I go mad (no pun > >>>intended.) :) > >>> > >>>I was initially looking for a relatively cheap 54Mbps, 802.11g- and > >>>WPA-capable network card, based on an Atheros chipset, but after > >>>spending the whole of last night looking for one - to no avail - I gave > >>>up. > >>> > >>>I'm almost about to conclude that Atheros is not the way to go. So now I > >>>want to know, if anyone can recommend ANY card, being cheap and > >>>supporting the features mentioned above. I don't mind using NDIS, as > >>>long as it works flawlessly. Also it would be good, if the card was a > >>>popular one, so community support is more available. > >>> > >>For driver support in FreeBSD, Atheros is definitely the way to go. Have > >>you looked through the listings here? > >> > >>http://customerproducts.atheros.com/customerproducts/default.asp > >> > >>Also, you failed to mention what your definition of "cheap" is, and what > >>form factor you're looking for (PCI, Cardbus, etc.) I would start with the > >>listings at the link above and look through products from the > >>cheaper-but-popular brands (D-Link, Belkin, Netgear, Linksys) to see if > >>there are any you can currently buy within your price range. > > I can't really say what cheap is, just that it's in the low(er) end of > the scale. I only have a rough sense of the price levels in Denmark and > I certainly know nothing about them in the US. :) > The cheapest Atheros card I have found is the Cameo WLG-1202, $50 NZD and works fine. Andrew From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 20:54:30 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CE4A16A407 for ; Mon, 15 Jan 2007 20:54:30 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 2526313C448 for ; Mon, 15 Jan 2007 20:54:29 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1329970uge for ; Mon, 15 Jan 2007 12:54:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=SQQLt5Ey4w0LmFROPGXzGO5DohqL/3Lsr0w4K1SNvkeQBSrKiB2C6h98ThNVy341JkQUI7hMz7kZXAE98fodQTz2TRPeOQBwQEc8h83/eKZBd0j4v7UwbPBqrLh0tDTT3KL95pdLZyWq67hl8ZX13PR9w+YLBnN4Bu9W98ulYE0= Received: by 10.67.89.5 with SMTP id r5mr6028631ugl.1168894468304; Mon, 15 Jan 2007 12:54:28 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id z40sm6038633ugc.2007.01.15.12.54.26; Mon, 15 Jan 2007 12:54:27 -0800 (PST) Message-ID: <45ABEA01.7090704@gmail.com> Date: Mon, 15 Jan 2007 21:54:25 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> In-Reply-To: <200701151344.49696.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: John Nielsen Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 20:54:30 -0000 John Nielsen wrote: > On Monday 15 January 2007 12:54, Lars Stokholm wrote: >> Hi, I hope someone can help me with this, before I go mad (no pun >> intended.) :) >> >> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >> WPA-capable network card, based on an Atheros chipset, but after >> spending the whole of last night looking for one - to no avail - I gave up. >> >> I'm almost about to conclude that Atheros is not the way to go. So now I >> want to know, if anyone can recommend ANY card, being cheap and >> supporting the features mentioned above. I don't mind using NDIS, as >> long as it works flawlessly. Also it would be good, if the card was a >> popular one, so community support is more available. > > For driver support in FreeBSD, Atheros is definitely the way to go. Have you > looked through the listings here? > > http://customerproducts.atheros.com/customerproducts/default.asp Wow, I actually think I found a card there, that is guaranteed to work. Is this really the end of all my struggles? :) For only 50 USD. There seem to be only one version of the card. http://www.dlink.com/products/?pid=12 http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) The two cards /are/ the same, right? Also, it says 108Mps? Does it matter that my AP is only 54Mbps? From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 21:13:37 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 426BB16A40F for ; Mon, 15 Jan 2007 21:13:37 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id C7D5C13C44C for ; Mon, 15 Jan 2007 21:13:36 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1334375uge for ; Mon, 15 Jan 2007 13:13:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=iztgZw25Kgw3X79rfRY67ciFoxTSAx7zEYhZK68uiTtjd2jgQj8PCOiwa1Y6BaOwVKG2tshbJxNQOCbFwQiBvdV6MhmNi9p+BTNT+qHCeiEYCGnbRwtWu1/WH0BqST9/zvbabu47p9Xq4T72SW8Ial8pNu90NFffipNsiEBSe8M= Received: by 10.66.243.2 with SMTP id q2mr6051544ugh.1168895615336; Mon, 15 Jan 2007 13:13:35 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id y7sm7428121ugc.2007.01.15.13.13.34; Mon, 15 Jan 2007 13:13:34 -0800 (PST) Message-ID: <45ABEE7C.6060404@gmail.com> Date: Mon, 15 Jan 2007 22:13:32 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> In-Reply-To: <45ABEA01.7090704@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 21:13:37 -0000 Lars Stokholm wrote: > John Nielsen wrote: >> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>> Hi, I hope someone can help me with this, before I go mad (no pun >>> intended.) :) >>> >>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>> WPA-capable network card, based on an Atheros chipset, but after >>> spending the whole of last night looking for one - to no avail - I >>> gave up. >>> >>> I'm almost about to conclude that Atheros is not the way to go. So now I >>> want to know, if anyone can recommend ANY card, being cheap and >>> supporting the features mentioned above. I don't mind using NDIS, as >>> long as it works flawlessly. Also it would be good, if the card was a >>> popular one, so community support is more available. >> >> For driver support in FreeBSD, Atheros is definitely the way to go. >> Have you looked through the listings here? >> >> http://customerproducts.atheros.com/customerproducts/default.asp > > Wow, I actually think I found a card there, that is guaranteed to work. > Is this really the end of all my struggles? :) For only 50 USD. There > seem to be only one version of the card. > > http://www.dlink.com/products/?pid=12 > http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) > > The two cards /are/ the same, right? > > Also, it says 108Mps? Does it matter that my AP is only 54Mbps? There's *one* other card on the list that seems perfect for me: http://www.gigabyte.com.tw/Products/Communication/Products_Spec.aspx?ProductID=988&ProductName=GN-WP01GT http://edbpriser.dk/Products/Listprices.asp?ID=249274 1.0 - I guess that means, that there is only one version. This card is a little cheaper and also newer. Should I go for this instead? From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 21:17:17 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FF2016A407 for ; Mon, 15 Jan 2007 21:17:17 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id DFB7113C44B for ; Mon, 15 Jan 2007 21:17:16 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l0FLHGcG078842; Mon, 15 Jan 2007 13:17:16 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Lars Stokholm Date: Mon, 15 Jan 2007 16:14:09 -0500 User-Agent: KMail/1.9.5 References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> In-Reply-To: <45ABEA01.7090704@gmail.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151614.09299.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-net@freebsd.org Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 21:17:17 -0000 On Monday 15 January 2007 15:54, Lars Stokholm wrote: > John Nielsen wrote: > > On Monday 15 January 2007 12:54, Lars Stokholm wrote: > >> Hi, I hope someone can help me with this, before I go mad (no pun > >> intended.) :) > >> > >> I was initially looking for a relatively cheap 54Mbps, 802.11g- and > >> WPA-capable network card, based on an Atheros chipset, but after > >> spending the whole of last night looking for one - to no avail - I gave > >> up. > >> > >> I'm almost about to conclude that Atheros is not the way to go. So now I > >> want to know, if anyone can recommend ANY card, being cheap and > >> supporting the features mentioned above. I don't mind using NDIS, as > >> long as it works flawlessly. Also it would be good, if the card was a > >> popular one, so community support is more available. > > > > For driver support in FreeBSD, Atheros is definitely the way to go. Have > > you looked through the listings here? > > > > http://customerproducts.atheros.com/customerproducts/default.asp > > Wow, I actually think I found a card there, that is guaranteed to work. > Is this really the end of all my struggles? :) For only 50 USD. There > seem to be only one version of the card. > > http://www.dlink.com/products/?pid=12 > http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) > > The two cards /are/ the same, right? This is actually the card I have and use in my FreeBSD box as an access point (I didn't know it was still available or I would have said so sooner.) Yes, they should be the same. There is an early revision ("A1") card of the same name that actually used a non-Atheros chip, but anything you buy today should be "B" or "C" and work fine. I have the "B" revision. Check out the D-Link website (pretend like you're looking for a Windows driver) for slightly more information on the different revisions and how to identify them. > Also, it says 108Mps? Does it matter that my AP is only 54Mbps? Shouldn't matter at all. 108Mbps is often advertised and rarely used/practical. The idea is to use two 54Mbps streams at once. You need to have a card (and driver) that suport it ("Super-G" or "Extreme-G"), an AP that supports it and that acknowledges that your card supports it, and little to no other traffic or interference, since most AP's will automatically fall back to 54Mbps at the drop of a hat. I'm not sure if ath(4) supports it or not, but I've never really cared too much. JN From owner-freebsd-net@FreeBSD.ORG Mon Jan 15 22:21:26 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD3A016A412; Mon, 15 Jan 2007 22:21:26 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from blake.polstra.com (blake.polstra.com [64.81.189.66]) by mx1.freebsd.org (Postfix) with ESMTP id 5494B13C45E; Mon, 15 Jan 2007 22:21:20 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (strings.polstra.com [64.81.189.67]) by blake.polstra.com (8.13.8/8.13.8) with ESMTP id l0FMKx6d055439; Mon, 15 Jan 2007 14:20:59 -0800 (PST) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20070113103344.GB15045@lath.rinet.ru> Date: Mon, 15 Jan 2007 14:20:59 -0800 (PST) From: John Polstra To: Oleg Bulyzhin X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (blake.polstra.com [64.81.189.66]); Mon, 15 Jan 2007 14:20:59 -0800 (PST) Cc: Doug Barton , net@freebsd.org Subject: Re: [Fwd: Re: bge Ierr rate increase from 5.3R -> 6.1R] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 22:21:27 -0000 On 13-Jan-2007 Oleg Bulyzhin wrote: >> Could you please test attached patch? It should fix ierrs issue and should not >> break link events (would be fine to test it: unplug/plug cable, try to change >> media with ifconfig, change media on other end of wire). >> > > Oops, previous patch was incomplete (forgot to add brgphy.c diff). > Try this one. This patch works OK for me. I tried unplugging/plugging the cable, but I didn't try changing the media on either end of the link. I don't have a very good setup for testing media changes at the moment. John From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 00:04:08 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B56516A4E1 for ; Tue, 16 Jan 2007 00:04:08 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id ED81D13C50B for ; Tue, 16 Jan 2007 00:04:07 +0000 (UTC) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l0G0455L035047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Jan 2007 16:04:07 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <45AC1675.9060005@errno.com> Date: Mon, 15 Jan 2007 16:04:05 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: John Nielsen References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> <200701151614.09299.lists@jnielsen.net> In-Reply-To: <200701151614.09299.lists@jnielsen.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Lars Stokholm Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 00:04:08 -0000 John Nielsen wrote: > On Monday 15 January 2007 15:54, Lars Stokholm wrote: >> John Nielsen wrote: >>> On Monday 15 January 2007 12:54, Lars Stokholm wrote: >>>> Hi, I hope someone can help me with this, before I go mad (no pun >>>> intended.) :) >>>> >>>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and >>>> WPA-capable network card, based on an Atheros chipset, but after >>>> spending the whole of last night looking for one - to no avail - I gave >>>> up. >>>> >>>> I'm almost about to conclude that Atheros is not the way to go. So now I >>>> want to know, if anyone can recommend ANY card, being cheap and >>>> supporting the features mentioned above. I don't mind using NDIS, as >>>> long as it works flawlessly. Also it would be good, if the card was a >>>> popular one, so community support is more available. >>> For driver support in FreeBSD, Atheros is definitely the way to go. Have >>> you looked through the listings here? >>> >>> http://customerproducts.atheros.com/customerproducts/default.asp >> Wow, I actually think I found a card there, that is guaranteed to work. >> Is this really the end of all my struggles? :) For only 50 USD. There >> seem to be only one version of the card. >> >> http://www.dlink.com/products/?pid=12 >> http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) >> >> The two cards /are/ the same, right? > > This is actually the card I have and use in my FreeBSD box as an access point > (I didn't know it was still available or I would have said so sooner.) Yes, > they should be the same. > > There is an early revision ("A1") card of the same name that actually used a > non-Atheros chip, but anything you buy today should be "B" or "C" and work > fine. I have the "B" revision. > > Check out the D-Link website (pretend like you're looking for a Windows > driver) for slightly more information on the different revisions and how to > identify them. > >> Also, it says 108Mps? Does it matter that my AP is only 54Mbps? > > Shouldn't matter at all. 108Mbps is often advertised and rarely > used/practical. The idea is to use two 54Mbps streams at once. You need to > have a card (and driver) that suport it ("Super-G" or "Extreme-G"), an AP > that supports it and that acknowledges that your card supports it, and little > to no other traffic or interference, since most AP's will automatically fall > back to 54Mbps at the drop of a hat. I'm not sure if ath(4) supports it or > not, but I've never really cared too much. Thanks, your description is good. Let me try to elaborate. 108Mb/s is the marketing speak for cards that are capable of Turbo mode. Turbo mode is a chip feature whereby a 2x wide channel is used to get effectively 2x the bandwidth. Radios capable of doing turbo mode can do this in either 2.4G or 5G. When configured to use turbo mode only it's said you are operating in "static turbo mode". When the driver switches the radio between turbo and non-turbo operation on the same frequency then it is said you are using "dynamic turbo mode". You are not supposed to use static turbo in 2.4G, only dynamic turbo. In 11a you can use either. The freebsd driver only supports static turbo mode. It's done so since the first commit. The current linux driver supports both static and dynamic turbo modes. I have support in p4 for dynamic turbo but to be honest it's not really useful and you cannot use it when operating as an ap unless you also do radar detection so you can drop out of turbo mode when you hear non-turbo stations operating on the channel. In testing I routinely see 40+ Mb/s using static turbo mode with tcp netperf; probably more (been a while). If you add in some other stuff that is part of the Atheros SuperG protocol (vendor-specific extensions to 802.11) then you can get 60+ Mb/s. Under certain circumstances you can hit 90+Mb/s. The code in p4 supports most of the important bits to get 60+ with turbo mode under good conditions. Finally, understand also that 11n is coming along very soon and will have interoperability and higher throughput than SuperG. Sam From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 00:32:22 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13D7916A40F for ; Tue, 16 Jan 2007 00:32:22 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 9F1F813C457 for ; Tue, 16 Jan 2007 00:32:21 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1374926uge for ; Mon, 15 Jan 2007 16:32:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pf0TnLu4BEzmtQPYwPuuReawAU9RjSyzNnR8XEXR1PVrnJDV6k8ad9s5BZr21aYpHUgCOH3M+tkNrh4CqcWjmKQ7xlkFWMrXJl2aK6QU7JIkGww6nS9g0ufYLglWewHSVffMGoqhUfFwrjuEVnqZqsvNSbsxu9UeIeY1P+bzQrI= Received: by 10.82.120.15 with SMTP id s15mr755531buc.1168906143936; Mon, 15 Jan 2007 16:09:03 -0800 (PST) Received: by 10.82.118.14 with HTTP; Mon, 15 Jan 2007 16:09:03 -0800 (PST) Message-ID: <1d3ed48c0701151609v2db2cbf5oca52c8bafa13a1e0@mail.gmail.com> Date: Mon, 15 Jan 2007 16:09:03 -0800 From: "Kevin Downey" To: "Sam Leffler" In-Reply-To: <45AC1675.9060005@errno.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> <200701151614.09299.lists@jnielsen.net> <45AC1675.9060005@errno.com> Cc: freebsd-net@freebsd.org, John Nielsen , Lars Stokholm Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 00:32:22 -0000 On 1/15/07, Sam Leffler wrote: > John Nielsen wrote: > > On Monday 15 January 2007 15:54, Lars Stokholm wrote: > >> John Nielsen wrote: > >>> On Monday 15 January 2007 12:54, Lars Stokholm wrote: > >>>> Hi, I hope someone can help me with this, before I go mad (no pun > >>>> intended.) :) > >>>> > >>>> I was initially looking for a relatively cheap 54Mbps, 802.11g- and > >>>> WPA-capable network card, based on an Atheros chipset, but after > >>>> spending the whole of last night looking for one - to no avail - I gave > >>>> up. > >>>> > >>>> I'm almost about to conclude that Atheros is not the way to go. So now I > >>>> want to know, if anyone can recommend ANY card, being cheap and > >>>> supporting the features mentioned above. I don't mind using NDIS, as > >>>> long as it works flawlessly. Also it would be good, if the card was a > >>>> popular one, so community support is more available. > >>> For driver support in FreeBSD, Atheros is definitely the way to go. Have > >>> you looked through the listings here? > >>> > >>> http://customerproducts.atheros.com/customerproducts/default.asp > >> Wow, I actually think I found a card there, that is guaranteed to work. > >> Is this really the end of all my struggles? :) For only 50 USD. There > >> seem to be only one version of the card. > >> > >> http://www.dlink.com/products/?pid=12 > >> http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) > >> > >> The two cards /are/ the same, right? > > > > This is actually the card I have and use in my FreeBSD box as an access point > > (I didn't know it was still available or I would have said so sooner.) Yes, > > they should be the same. > > > > There is an early revision ("A1") card of the same name that actually used a > > non-Atheros chip, but anything you buy today should be "B" or "C" and work > > fine. I have the "B" revision. > > > > Check out the D-Link website (pretend like you're looking for a Windows > > driver) for slightly more information on the different revisions and how to > > identify them. > > > >> Also, it says 108Mps? Does it matter that my AP is only 54Mbps? > > > > Shouldn't matter at all. 108Mbps is often advertised and rarely > > used/practical. The idea is to use two 54Mbps streams at once. You need to > > have a card (and driver) that suport it ("Super-G" or "Extreme-G"), an AP > > that supports it and that acknowledges that your card supports it, and little > > to no other traffic or interference, since most AP's will automatically fall > > back to 54Mbps at the drop of a hat. I'm not sure if ath(4) supports it or > > not, but I've never really cared too much. > > Thanks, your description is good. Let me try to elaborate. 108Mb/s is > the marketing speak for cards that are capable of Turbo mode. Turbo > mode is a chip feature whereby a 2x wide channel is used to get > effectively 2x the bandwidth. Radios capable of doing turbo mode can do > this in either 2.4G or 5G. When configured to use turbo mode only it's > said you are operating in "static turbo mode". When the driver switches > the radio between turbo and non-turbo operation on the same frequency > then it is said you are using "dynamic turbo mode". You are not > supposed to use static turbo in 2.4G, only dynamic turbo. In 11a you > can use either. > > The freebsd driver only supports static turbo mode. It's done so since > the first commit. The current linux driver supports both static and > dynamic turbo modes. I have support in p4 for dynamic turbo but to be > honest it's not really useful and you cannot use it when operating as an > ap unless you also do radar detection so you can drop out of turbo mode > when you hear non-turbo stations operating on the channel. > > In testing I routinely see 40+ Mb/s using static turbo mode with tcp > netperf; probably more (been a while). If you add in some other stuff > that is part of the Atheros SuperG protocol (vendor-specific extensions > to 802.11) then you can get 60+ Mb/s. Under certain circumstances you > can hit 90+Mb/s. The code in p4 supports most of the important bits to > get 60+ with turbo mode under good conditions. > > Finally, understand also that 11n is coming along very soon and will > have interoperability and higher throughput than SuperG. > > Sam > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Any hints on what the 11n landscape will look like for freebsd? -- The biggest problem with communication is the illusion that it has occurred. From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 02:41:17 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE91816A407 for ; Tue, 16 Jan 2007 02:41:17 +0000 (UTC) (envelope-from fooler@skyinet.net) Received: from smtp3.bti.net.ph (smtp3.bti.net.ph [210.4.2.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9491813C461 for ; Tue, 16 Jan 2007 02:41:17 +0000 (UTC) (envelope-from fooler@skyinet.net) Received: from smtp1.skyinet.net (smtp1.skyinet.net [202.78.97.6]) by smtp3.bti.net.ph (Postfix) with ESMTP id DCA2B161EE9 for ; Tue, 16 Jan 2007 09:32:51 +0800 (PHT) Received: from fooler (unknown [202.78.118.66]) by smtp1.skyinet.net (Postfix) with SMTP id 7A9E858315 for ; Tue, 16 Jan 2007 09:33:22 +0800 (PHT) Message-ID: <046d01c7390e$efa9da80$42764eca@ilo.skyinet.net> From: "fooler" To: References: Date: Tue, 16 Jan 2007 09:37:51 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 02:41:17 -0000 Hug Me wrote: > 11:08:06.528691 IP (tos 0x4, ttl 255, id 0, offset 0, flags [DF], length: > 51) 10.0.0.2.0 > 10.0.0.1.69: [udp sum ok] 23 RRQ "load2000v115.d" octet > > We believe FreeBSD is not allowing a UDP source port of 0 and the kernel > is > dropping the packet before it ever reaches the tftp server but are > unable to > verify this hypothesis. im using carp for highly availability and scalability with the help of layer 4 health check program that i made using source port 0 both for tcp and udp protocols.... sample of tcpdump output from my layer 4 health check program... [root@proxy1r fooler]#tcpdump -i lo0 -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo0, link-type NULL (BSD loopback), capture size 96 bytes 09:25:22.913088 IP 127.0.0.1.0 > 127.0.0.1.3128: S 0:0(0) win 65535 09:25:22.913111 IP 127.0.0.1.3128 > 127.0.0.1.0: S 3117019729:3117019729(0) ack 1 win 64240 09:25:22.913121 IP 127.0.0.1.0 > 127.0.0.1.3128: R 1:1(0) win 0 09:25:22.923064 IP 127.0.0.1.0 > 127.0.0.1.53: [|domain] 09:25:23.934176 IP 127.0.0.1.0 > 127.0.0.1.3128: S 0:0(0) win 65535 09:25:23.934198 IP 127.0.0.1.3128 > 127.0.0.1.0: S 816240627:816240627(0) ack 1 win 64240 09:25:23.934208 IP 127.0.0.1.0 > 127.0.0.1.3128: R 1:1(0) win 0 09:25:23.934222 IP 127.0.0.1.0 > 127.0.0.1.53: [|domain] when proxy is alive (tcp port 3128) it will reply with syn/ack and i reply it with reset.. when dns is alive (udp port 53)... the server wont reply anything (and that is normal for udp).... but when proxy is dead... it will reply with reset.... when dns is dead.. it will reply with icmp port unreachable... this simply shows that source port 0 both for tcp and udp work properly with freebsd... fooler. From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 06:11:08 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D9B716A40F for ; Tue, 16 Jan 2007 06:11:08 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id F3D9A13C457 for ; Tue, 16 Jan 2007 06:11:07 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1434704uge for ; Mon, 15 Jan 2007 22:11:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=NONJXuMHBLUPXstj6eoFHwlkpEcMj3Ww7RyFs0EPteFTTyqNfC3nbMCNIRBQZhf42TGDtWpmuQ39rBCFn/Uteqg6KeRwePndpsE2+RG+4eHp88/TZ+2L+Gd0/TuAvbdHTAUW5Pm7fobxLRvmoMFQqHAXF4PFoz4doK+tZlv4QnI= Received: by 10.66.242.20 with SMTP id p20mr6784196ugh.1168927866328; Mon, 15 Jan 2007 22:11:06 -0800 (PST) Received: from ?10.0.0.12? ( [85.83.123.144]) by mx.google.com with ESMTP id k2sm6542900ugf.2007.01.15.22.11.04; Mon, 15 Jan 2007 22:11:05 -0800 (PST) Message-ID: <45AC6C77.6050501@gmail.com> Date: Tue, 16 Jan 2007 07:11:03 +0100 From: Lars Stokholm User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> <45ABEE7C.6060404@gmail.com> In-Reply-To: <45ABEE7C.6060404@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 06:11:08 -0000 Lars Stokholm wrote: >>> http://customerproducts.atheros.com/customerproducts/default.asp >> >> Wow, I actually think I found a card there, that is guaranteed to >> work. Is this really the end of all my struggles? :) For only 50 USD. >> There seem to be only one version of the card. >> >> http://www.dlink.com/products/?pid=12 >> http://edbpriser.dk/Products/Listprices.asp?ID=38373 (in Danish) >> >> The two cards /are/ the same, right? >> >> Also, it says 108Mps? Does it matter that my AP is only 54Mbps? > > There's *one* other card on the list that seems perfect for me: > > http://www.gigabyte.com.tw/Products/Communication/Products_Spec.aspx?ProductID=988&ProductName=GN-WP01GT > > http://edbpriser.dk/Products/Listprices.asp?ID=249274 > > 1.0 - I guess that means, that there is only one version. This card is a > little cheaper and also newer. Should I go for this instead? It's me again... :) Honestly, do anyone see any reason not to buy the GIGABYTE card? Unless that's the case, it's likely that I'll do it, within the next 10 hours or so. What I like about this card is that it supports more features, so hopefully I'll not have to look for a replacement again, until many years from now. FreeBSD 6.2 should support ANY Atheros based card, with the exception of those based on the 5005VT chip. I'm pretty sure, that this card is Atheros based, since all the drivers available on the website are Atheros. Also it's mentioned on: http://customerproducts.atheros.com/customerproducts/default.asp And it's definitely not using the 5005VT chip, so all should be good. Speak now or forever hold your peace. :) Even if you're only suspicious. Thanks, From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 12:27:42 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7901A16A407 for ; Tue, 16 Jan 2007 12:27:42 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id 3D97E13C457 for ; Tue, 16 Jan 2007 12:27:42 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 2AB10BB6D for ; Tue, 16 Jan 2007 12:06:46 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sAa7GgZSkCGR for ; Tue, 16 Jan 2007 12:06:39 +0000 (GMT) Received: from [195.28.169.201] (jwh.lon.rewt.org.uk [195.28.169.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 1C518B8EB for ; Tue, 16 Jan 2007 12:06:39 +0000 (GMT) Message-ID: <45ACBFCC.3030506@joeholden.co.uk> Date: Tue, 16 Jan 2007 12:06:36 +0000 From: Joe Holden User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Viewing established tcp connections X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 12:27:42 -0000 Hi all, I'm after a tool to view tcp sessions passing through a router, however dsniff is marked as BROKEN. Are there any alternatives? Thanks, Joe From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 12:49:14 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.ORG Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7D9916A416 for ; Tue, 16 Jan 2007 12:49:14 +0000 (UTC) (envelope-from rnsanchez@wait4.org) Received: from spunkymail-a15.dreamhost.com (sd-green-bigip-207.dreamhost.com [208.97.132.207]) by mx1.freebsd.org (Postfix) with ESMTP id A6E7213C441 for ; Tue, 16 Jan 2007 12:49:14 +0000 (UTC) (envelope-from rnsanchez@wait4.org) Received: from sauron.lan.box (unknown [200.203.30.109]) by spunkymail-a15.dreamhost.com (Postfix) with ESMTP id 79CB67F021; Tue, 16 Jan 2007 04:49:13 -0800 (PST) Date: Tue, 16 Jan 2007 10:49:10 -0200 From: Ricardo Nabinger Sanchez To: Joe Holden Message-Id: <20070116104910.d7530a5d.rnsanchez@wait4.org> In-Reply-To: <45ACBFCC.3030506@joeholden.co.uk> References: <45ACBFCC.3030506@joeholden.co.uk> Organization: SYS_WAIT4 X-Mailer: Sylpheed 2.3.0+svn (GTK+ 2.10.6; i386-unknown-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.ORG Subject: Re: Viewing established tcp connections X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 12:49:14 -0000 On Tue, 16 Jan 2007 12:06:36 +0000 Joe Holden wrote: > I'm after a tool to view tcp sessions passing through a router, however > dsniff is marked as BROKEN. Are there any alternatives? If you don't need to inspect the sessions, netstat can show you that: % netstat -p tcp -n Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.1.100.56965 192.168.1.1.23 ESTABLISHED tcp4 0 0 192.168.1.100.61375 208.97.136.18.5222 ESTABLISHED tcp4 0 0 192.168.1.100.54996 208.245.212.98.5223 ESTABLISHED tcp4 0 0 192.168.1.100.51672 72.14.253.125.5223 ESTABLISHED Otherwise, you can still use tcpdump: # tcpdump -n tcp You can even use a SNMP daemon and query TCP-MIB if you don't want ssh sessions. I couldn't infer details about what you really want to do, and feel like these suggestions are not what you're looking for (YMMV), although they work very well for my needs. -- Ricardo Nabinger Sanchez Powered by FreeBSD "Left to themselves, things tend to go from bad to worse." From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 13:01:12 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.ORG Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64E4E16A40F for ; Tue, 16 Jan 2007 13:01:12 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id 051D113C44B for ; Tue, 16 Jan 2007 13:01:10 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 0AE1AB952; Tue, 16 Jan 2007 13:01:10 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8-6OAHohaYdH; Tue, 16 Jan 2007 13:01:00 +0000 (GMT) Received: from [195.28.169.201] (jwh.lon.rewt.org.uk [195.28.169.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 70BD0B913; Tue, 16 Jan 2007 13:00:59 +0000 (GMT) Message-ID: <45ACCC88.8020902@joeholden.co.uk> Date: Tue, 16 Jan 2007 13:00:56 +0000 From: Joe Holden User-Agent: Thunderbird 2.0b1 (Windows/20061206) MIME-Version: 1.0 To: Ricardo Nabinger Sanchez References: <45ACBFCC.3030506@joeholden.co.uk> <20070116104910.d7530a5d.rnsanchez@wait4.org> In-Reply-To: <20070116104910.d7530a5d.rnsanchez@wait4.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.ORG Subject: Re: Viewing established tcp connections X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 13:01:12 -0000 Ricardo Nabinger Sanchez wrote: > On Tue, 16 Jan 2007 12:06:36 +0000 > Joe Holden wrote: > >> I'm after a tool to view tcp sessions passing through a router, however >> dsniff is marked as BROKEN. Are there any alternatives? > > If you don't need to inspect the sessions, netstat can show you that: > > % netstat -p tcp -n > Active Internet connections > Proto Recv-Q Send-Q Local Address Foreign Address (state) > tcp4 0 0 192.168.1.100.56965 192.168.1.1.23 ESTABLISHED > tcp4 0 0 192.168.1.100.61375 208.97.136.18.5222 ESTABLISHED > tcp4 0 0 192.168.1.100.54996 208.245.212.98.5223 ESTABLISHED > tcp4 0 0 192.168.1.100.51672 72.14.253.125.5223 ESTABLISHED > > Otherwise, you can still use tcpdump: > > # tcpdump -n tcp > > You can even use a SNMP daemon and query TCP-MIB if you don't want ssh > sessions. > > I couldn't infer details about what you really want to do, and feel like > these suggestions are not what you're looking for (YMMV), although they work > very well for my needs. > Hi, I was looking into using tcpdump, but I was really after something that outputs the session in readable format. I used to use a port that would output the session, ie; an IRC session, it would output all the NICK changes etc, that was sent between client/server. Can't for the life of me remember what it was called. Cheers, Joe From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 13:20:03 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D01216A407 for ; Tue, 16 Jan 2007 13:20:03 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by mx1.freebsd.org (Postfix) with ESMTP id 1DAE613C442 for ; Tue, 16 Jan 2007 13:20:03 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-7.cisco.com ([171.68.10.88]) by sj-iport-4.cisco.com with ESMTP; 16 Jan 2007 05:16:41 -0800 Received: from sj-core-3.cisco.com (sj-core-3.cisco.com [171.68.223.137]) by sj-dkim-7.cisco.com (8.12.11/8.12.11) with ESMTP id l0GDGfrc013879; Tue, 16 Jan 2007 05:16:41 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-3.cisco.com (8.12.10/8.12.6) with ESMTP id l0GDGVho001524; Tue, 16 Jan 2007 05:16:39 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 05:16:30 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 05:16:30 -0800 Message-ID: <45ACCFF4.4040709@cisco.com> Date: Tue, 16 Jan 2007 08:15:32 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: "Bruce M. Simpson" References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> In-Reply-To: <45A807F8.7080603@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Jan 2007 13:16:30.0747 (UTC) FILETIME=[896386B0:01C73970] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=2368; t=1168953401; x=1169817401; c=relaxed/simple; s=sjdkim7002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20Problem=20with=20port=200 |Sender:=20; bh=NA78HZ8x8sYDW+3iiOwY+25JZ7CZPPDcyWR3TBX3JV0=; b=XbHPYAA4Uj2vAELYam6ewokYOHF2JK3lgjeRpy2jKpbMIo4/dqBFmasV3J88kMTtj+hu0v4g emgS3cE6GL9wnZiohpAwF5JloZdVAYg9Q/d3Pjhbq0XYfa+LKwntxJsf; Authentication-Results: sj-dkim-7; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim7002 verified; ); Cc: freebsd-net@freebsd.org, Ricardo Nabinger Sanchez , hugme@hugme.org Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 13:20:03 -0000 So... I guess this really leads to a question.. What does "reserved" mean by IANA. I know in SCTP we defined that port 0 is NOT to be used (if I remember right)... but I am not sure what IANA has in mind for TCP or UDP. It is in the "lower range" of ports... and being reserved implies that no app should use it.. This looks like a good question for tsvwg or end2end .. I will pose it on tsv :-) R Bruce M. Simpson wrote: > Ricardo Nabinger Sanchez wrote: >> On Fri, 12 Jan 2007 12:03:17 -0500 >> "Hug Me" wrote: >> >> >>> We believe FreeBSD is not allowing a UDP source port of 0 and the >>> kernel is >>> dropping the packet before it ever reaches the tftp server but are >>> unable to >>> verify this hypothesis. I was hoping someone here could help shed >>> some light >>> on the problem. >>> >> >> But port 0 has special meaning to the kernel (ie, "give me some random >> port"). Also, it is a reserved one. Please check IANA: >> >> http://www.iana.org/assignments/port-numbers >> >> I'm afraid you'll have to select another port number. >> > Nope. A source port of 0 is perfectly legal for UDP. > > I did an experiment with rpcbind whereby I performed a UDP based rpcinfo > query from one FreeBSD machine to another, captured the traffic, and > used tcpreplay to inject it from source port 0. > > At first I thought the INPCB hash lookup was doing the wrong thing, then > I ktrace'd rpcbind and it was apparent that it was in fact being > delivered to rpcbind from udp_input(). > > rpcbind tries to reply to destination port 0. This was verified with > kdump and rpcbind -d. This quite rightly fails, and, indeed, we reject > this from the socket code. > > So, FreeBSD appears to handle a UDP source port of 0 ok based on these > tests. > > The most likely explanation for the failure in this case, without > looking further, is that inetd or the tftpd implementations can't handle > source port 0. > > BMS > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 13:37:39 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3AF516A412 for ; Tue, 16 Jan 2007 13:37:39 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.freebsd.org (Postfix) with ESMTP id B0DEA13C45A for ; Tue, 16 Jan 2007 13:37:39 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-5.cisco.com with ESMTP; 16 Jan 2007 05:09:13 -0800 Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l0GD9DvD014067; Tue, 16 Jan 2007 05:09:13 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l0GD9DGk009353; Tue, 16 Jan 2007 05:09:13 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 05:09:12 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 05:09:12 -0800 Message-ID: <45ACCE3E.1060500@cisco.com> Date: Tue, 16 Jan 2007 08:08:14 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Joe Holden References: <45ACBFCC.3030506@joeholden.co.uk> <20070116104910.d7530a5d.rnsanchez@wait4.org> <45ACCC88.8020902@joeholden.co.uk> In-Reply-To: <45ACCC88.8020902@joeholden.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Jan 2007 13:09:12.0505 (UTC) FILETIME=[842D1A90:01C7396F] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=2068; t=1168952953; x=1169816953; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20Viewing=20established=20tcp=20connections |Sender:=20; bh=vpmIQHGXpRvhgP4Jiy9s5Cly7LgLfGFpzqNn7e6agrM=; b=zOCeWhpH6kkRdYo/Tv68LpHfyXLIysec7k8LoppOelMLHSjWcof2+k+bNzSqdGTxZdtBb3Pf eUF0RjDEnVT+Z6ppv5rQid7/xs5GhrOAtwcg0wt1EGCJYiBR1taTea2A; Authentication-Results: sj-dkim-2; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim2002 verified; ); Cc: freebsd-net@freebsd.org, Ricardo Nabinger Sanchez Subject: Re: Viewing established tcp connections X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 13:37:39 -0000 Joe Holden wrote: > Ricardo Nabinger Sanchez wrote: >> On Tue, 16 Jan 2007 12:06:36 +0000 >> Joe Holden wrote: >> >>> I'm after a tool to view tcp sessions passing through a router, >>> however dsniff is marked as BROKEN. Are there any alternatives? >> >> If you don't need to inspect the sessions, netstat can show you that: >> >> % netstat -p tcp -n >> Active Internet connections >> Proto Recv-Q Send-Q Local Address Foreign Address >> (state) >> tcp4 0 0 192.168.1.100.56965 192.168.1.1.23 >> ESTABLISHED >> tcp4 0 0 192.168.1.100.61375 208.97.136.18.5222 >> ESTABLISHED >> tcp4 0 0 192.168.1.100.54996 208.245.212.98.5223 >> ESTABLISHED >> tcp4 0 0 192.168.1.100.51672 72.14.253.125.5223 >> ESTABLISHED >> >> Otherwise, you can still use tcpdump: >> >> # tcpdump -n tcp >> >> You can even use a SNMP daemon and query TCP-MIB if you don't want ssh >> sessions. >> >> I couldn't infer details about what you really want to do, and feel like >> these suggestions are not what you're looking for (YMMV), although >> they work >> very well for my needs. >> > Hi, I was looking into using tcpdump, but I was really after something > that outputs the session in readable format. I used to use a port that > would output the session, ie; an IRC session, it would output all the > NICK changes etc, that was sent between client/server. Can't for the > life of me remember what it was called. > > Cheers, > Joe > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Wireshark is what I like.. It allows you to analyze stuff as well.. you select a packet from a TCP flow (or SCTP) and tell it to analyze it... really cool :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 14:14:58 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1217C16A407 for ; Tue, 16 Jan 2007 14:14:58 +0000 (UTC) (envelope-from msztochay@pilgerer.org) Received: from hamlet.pilgerer.org (hamlet.pilgerer.org [195.30.94.203]) by mx1.freebsd.org (Postfix) with ESMTP id 9419E13C45E for ; Tue, 16 Jan 2007 14:14:57 +0000 (UTC) (envelope-from msztochay@pilgerer.org) Received: from hamlet.pilgerer.org (hamlet.pilgerer.de [195.30.94.203]) by hamlet.pilgerer.org (8.13.7/8.13.7) with ESMTP id l0GDuLMg014089; Tue, 16 Jan 2007 14:56:21 +0100 (CET) (envelope-from msztochay@pilgerer.org) X-Filter-Status: scanned by Antivir, f-prot and clamd Received: from trial.pilgerer.de (hamlet.pilgerer.de [195.30.94.203]) by hamlet.pilgerer.org (8.13.7/8.13.7) with ESMTP id l0GDu2on014078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jan 2007 14:56:07 +0100 (CET) (envelope-from msztochay@pilgerer.org) Received: (from marc@localhost) by trial.pilgerer.de (8.13.8/8.13.8/Submit) id l0GDu2JF014077; Tue, 16 Jan 2007 14:56:02 +0100 (CET) (envelope-from msztochay@pilgerer.org) X-Authentication-Warning: trial.pilgerer.de: marc set sender to msztochay@pilgerer.org using -f Date: Tue, 16 Jan 2007 14:56:02 +0100 From: Marc Sztochay To: Randall Stewart Message-ID: <20070116135602.GA12783@pilgerer.org> References: <45ACBFCC.3030506@joeholden.co.uk> <20070116104910.d7530a5d.rnsanchez@wait4.org> <45ACCC88.8020902@joeholden.co.uk> <45ACCE3E.1060500@cisco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <45ACCE3E.1060500@cisco.com> X-PGP-Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x3C2EE66A X-PGP-Fingerprint: 0AE1 18CF 01C0 0546 27DC 56F9 5A43 0B24 3C2E E66A X-Disclaimer: Use Outlook Express at your own risk X-Operating-System: FreeBSD 6.2-PRERELEASE i386 User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-net@freebsd.org, Joe Holden , Ricardo Nabinger Sanchez Subject: Re: Viewing established tcp connections X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 14:14:58 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > Wireshark is what I like.. >=20 > It allows you to analyze stuff as well.. you select > a packet from a TCP flow (or SCTP) and tell it > to analyze it... really cool :-) >=20 > R /me agrees Wireshark is written by Gerald Combs the chief designer of "Ethereal"=20 which probably used to be "the state of the art"=20 packetinspector for years.. so look for Wireshark or "Ethereal". --=20 Marc Sztochay (Pilgerer Org.) - Tel +49-0170-2882871 http://www.pilgerer.org/ - Die Kommunikations- und Kooperations- plattform fuer Unix-Fans und alle die es werden wollen. Macht mit! --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFrNlxWkMLJDwu5moRAuZyAJ9attEi+DfyAg1VwX/fu7z6qTX3EACfa27q +Ls2ru6oDXorM2ThEePNENY= =JjIE -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 16:01:32 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F5F216A51E for ; Tue, 16 Jan 2007 16:01:32 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from mail1.cil.se (mail1.cil.se [217.197.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 3716213C459 for ; Tue, 16 Jan 2007 16:01:32 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from [192.168.2.10] ([192.168.2.10]) by mail1.cil.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 16:49:24 +0100 Message-ID: <45ACF404.20700@ide.resurscentrum.se> Date: Tue, 16 Jan 2007 16:49:24 +0100 From: Jon Otterholm User-Agent: Thunderbird 1.5 (X11/20060204) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 16 Jan 2007 15:49:24.0914 (UTC) FILETIME=[E59E5120:01C73985] Subject: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 16:01:32 -0000 Hi. I have trouble with high latency on my new X60 with em-interface. Anyone else with the same problem? I´m running 6.2-RELEASE. //Jon From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 17:58:57 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85E5D16A407 for ; Tue, 16 Jan 2007 17:58:57 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 1E18C13C442 for ; Tue, 16 Jan 2007 17:58:57 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1080998ana for ; Tue, 16 Jan 2007 09:58:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aDmmglzk23fE882K1sd6LtP4sU3PwEYSKM52hgEU1b8/1yLhd3I2EjMxHgXi8E5WoIWO421yCBayNGKujuFERLtDXcf1OAKdd6rRZx92ThdLKvw1JKUq1ka/RFpyGTgveS0jtYLwPsjsbCj5beAdOn0Wrh74ctEua5s/lza8UQk= Received: by 10.100.144.11 with SMTP id r11mr3394206and.1168970336436; Tue, 16 Jan 2007 09:58:56 -0800 (PST) Received: by 10.100.105.12 with HTTP; Tue, 16 Jan 2007 09:58:56 -0800 (PST) Message-ID: <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> Date: Tue, 16 Jan 2007 09:58:56 -0800 From: "Jack Vogel" To: "Jon Otterholm" In-Reply-To: <45ACF404.20700@ide.resurscentrum.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <45ACF404.20700@ide.resurscentrum.se> Cc: freebsd-net@freebsd.org Subject: Re: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 17:58:57 -0000 On 1/16/07, Jon Otterholm wrote: > Hi. > > I have trouble with high latency on my new X60 with em-interface. Anyone > else with the same problem? I=B4m running 6.2-RELEASE. Would you please give a bit more detail. Jack From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 18:11:48 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 854A516A584 for ; Tue, 16 Jan 2007 18:11:48 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC0913C457 for ; Tue, 16 Jan 2007 18:11:48 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (a17-128-113-38.apple.com [17.128.113.38]) by mail-out3.apple.com (8.13.8/8.13.8) with ESMTP id l0GIBlJ1023272; Tue, 16 Jan 2007 10:11:47 -0800 (PST) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id 7B1CD4006A; Tue, 16 Jan 2007 10:11:47 -0800 (PST) X-AuditID: 11807126-a4686bb000000245-2d-45ad1563680d Received: from [17.214.13.96] (unknown [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay8.apple.com (Apple SCV relay) with ESMTP id 68C914001A; Tue, 16 Jan 2007 10:11:47 -0800 (PST) In-Reply-To: <45ACCFF4.4040709@cisco.com> References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 16 Jan 2007 10:11:46 -0800 To: Randall Stewart X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-net Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 18:11:48 -0000 On Jan 16, 2007, at 5:15 AM, Randall Stewart wrote: > So... I guess this really leads to a question.. > > What does "reserved" mean by IANA. "reserved" means one "SHOULD NOT" use that port, where the phrase in caps is defined in RFC-2119 (http://www.ietf.org/rfc/rfc2119.txt). And: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers ...states: "0/tcp,udp: Reserved; do not use (but is a permissible source port value if the sending process does not expect messages in response)" -- -Chuck From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 18:41:28 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE30F16A546 for ; Tue, 16 Jan 2007 18:41:28 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by mx1.freebsd.org (Postfix) with ESMTP id 8962613C4BD for ; Tue, 16 Jan 2007 18:41:28 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-8.cisco.com ([171.68.10.93]) by sj-iport-4.cisco.com with ESMTP; 16 Jan 2007 10:41:28 -0800 Received: from sj-core-3.cisco.com (sj-core-3.cisco.com [171.68.223.137]) by sj-dkim-8.cisco.com (8.12.11/8.12.11) with ESMTP id l0GIfSED004578; Tue, 16 Jan 2007 10:41:28 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-3.cisco.com (8.12.10/8.12.6) with ESMTP id l0GIfEhq015578; Tue, 16 Jan 2007 10:41:28 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 10:41:14 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 10:41:14 -0800 Message-ID: <45AD1C0F.7000701@cisco.com> Date: Tue, 16 Jan 2007 13:40:15 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Chuck Swiger References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Jan 2007 18:41:14.0231 (UTC) FILETIME=[E6734070:01C7399D] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1873; t=1168972888; x=1169836888; c=relaxed/relaxed; s=sjdkim8002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20Problem=20with=20port=200 |Sender:=20; bh=+bmNdpC/d3cASx5Opm3DVSUqAWNwq2Ke1AltbjUFeGs=; b=And1bg26aHzrbZtro9KTZUc+kTqaGJB61juZvq02HcWRPjulVA2CbUbk0pbd2atYwY6L6L9K h9KlQYzCHj0Wc/a0G/CLEbVSgXX2MAlG0axfLacMAiT4hQ3R6HZWhCAQ; Authentication-Results: sj-dkim-8; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim8002 verified; ); Cc: freebsd-net Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 18:41:28 -0000 Chuck Swiger wrote: > On Jan 16, 2007, at 5:15 AM, Randall Stewart wrote: >> So... I guess this really leads to a question.. >> >> What does "reserved" mean by IANA. > > "reserved" means one "SHOULD NOT" use that port, where the phrase in > caps is defined in RFC-2119 (http://www.ietf.org/rfc/rfc2119.txt). And: > > http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers > > ...states: "0/tcp,udp: Reserved; do not use (but is a permissible source > port value if the sending process does not expect messages in response)" > > ---Chuck > So let me see if I understand the statements above.. We are using the SHOULD NOT.. which is YOU REALLY REALLY REALLY REALLY REALLY REALLY should not do this unless you have some very dramatic demonstrative need to do so and know the FULL consequences of the action. The bit from wikipedia, while not authoritative in my mind, says you can send FROM the port, but don't expect an answer back.. which implies you cannot bind it and/or cannot read from it if your source port is 0... Of course in TCP this is totally useless since you have to get something back in order to setup the handshake. In UDP I guess one could get a packet if the other O/S did not have any bind restrictions.. or one were to use a raw socket. But why all this for something you SHOULD NOT DO.. one of the consequences in my mind of this is that not all O/S's may be able to read your data .. nor respond to it. Seems to me a lot of hassle when one can just use a different port :-0 Of course I am not saying we should not make this work.. I just am uncomfortable with it .. just as a generality :-) And I am sure glad we used the MUST NOT term in SCTP when we did the BIS document .. no grey area there :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 18:58:56 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BCF016A412 for ; Tue, 16 Jan 2007 18:58:56 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 5A90213C441 for ; Tue, 16 Jan 2007 18:58:56 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l0GIwuXj003078; Tue, 16 Jan 2007 10:58:56 -0800 (PST) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id 28CF81004F; Tue, 16 Jan 2007 10:58:56 -0800 (PST) X-AuditID: 11807124-a4cefbb000006d75-06-45ad2070878c Received: from [17.214.13.96] (unknown [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 15D4610042; Tue, 16 Jan 2007 10:58:56 -0800 (PST) In-Reply-To: <45AD1C0F.7000701@cisco.com> References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> <45AD1C0F.7000701@cisco.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 16 Jan 2007 10:58:55 -0800 To: Randall Stewart X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-net Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 18:58:56 -0000 On Jan 16, 2007, at 10:40 AM, Randall Stewart wrote: >> "reserved" means one "SHOULD NOT" use that port, where the phrase >> in caps is defined in RFC-2119 (http://www.ietf.org/rfc/rfc2119.txt). [ ...format-flowed quoting trimmed... ] > So let me see if I understand the statements above.. > > We are using the SHOULD NOT.. which is YOU REALLY REALLY REALLY > REALLY REALLY REALLY should not do this unless you have some > very dramatic demonstrative need to do so and know the FULL > consequences of the action. Pretty much. :-) If you have a choice about solving the problem in a way that avoids doing something described as "SHOULD NOT", then one really ought to prefer that choice. > The bit from wikipedia, while not authoritative in my mind, says you > can send FROM the port, but don't expect an answer back.. which > implies > you cannot bind it and/or cannot read from it if your source > port is 0... Of course in TCP this is totally useless since you > have to get something back in order to setup the handshake. I don't consider wikipedia to be authoritative either, but it can be a useful reference or guideline in conjunction with other sources. Note that there are some uncommonly used TCP variants (T/TCP comes to mind) where you can short-circuit the 3-way handshake and put actual data in the initial SYN packet. I would agree that one SHOULD NOT listen on port 0. > In UDP I guess one could get a packet if the other O/S did not > have any bind restrictions.. or one were to use a raw socket. Sure, or use BPF/PCAP to generate the packets directly. > But why all this for something you SHOULD NOT DO.. one of the > consequences in my mind of this is that not all O/S's may be > able to read your data .. nor respond to it. > > Seems to me a lot of hassle when one can just use a different > port :-0 Well, yes-- there are another 65500+ ports available. -- -Chuck From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 20:57:53 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEED016A4ED for ; Tue, 16 Jan 2007 20:57:53 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from mail1.cil.se (mail1.cil.se [217.197.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 81F8F13C455 for ; Tue, 16 Jan 2007 20:57:53 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from [192.168.98.245] ([192.168.44.2]) by mail1.cil.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 21:57:51 +0100 Message-ID: <45AD3C4E.1050608@ide.resurscentrum.se> Date: Tue, 16 Jan 2007 21:57:50 +0100 From: Jon Otterholm User-Agent: Thunderbird 1.5 (X11/20060204) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ACF404.20700@ide.resurscentrum.se> <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> In-Reply-To: <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 16 Jan 2007 20:57:51.0652 (UTC) FILETIME=[FC7E6E40:01C739B0] Subject: Re: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 20:57:54 -0000 Jack Vogel wrote: > On 1/16/07, Jon Otterholm wrote: >> Hi. >> >> I have trouble with high latency on my new X60 with em-interface. Anyone >> else with the same problem? I´m running 6.2-RELEASE. > > Would you please give a bit more detail. > > Jack Here comes some info: uname -a FreeBSD onob2.domain.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 $ ifconfig em0 em0: flags=8843 mtu 1500 options=b inet 192.168.98.98 netmask 0xffffff00 broadcast 192.168.98.255 ether 00:16:d3:35:0a:a9 media: Ethernet autoselect (100baseTX ) status: active dmesg em0: port 0x2000-0x201f mem 0xee000000-0xee01ffff irq 16 at device 0.0 on pci2 em0: Ethernet address: 00:16:d3:35:0a:a9 pciconf -l em0@pci2:0:0: class=0x020000 card=0x207e17aa chip=0x109a8086 rev=0x00 hdr=0x00 I think I found a pattern to work with. If I do a echo-reply wit the "-D" (no fragment) and increase the packet size (-s) to 1472 I get normal response times: onob2# ping -D -s 1470 www.sunet.se PING www.sunet.se (192.36.125.18): 1470 data bytes 1478 bytes from 192.36.125.18: icmp_seq=0 ttl=57 time=47.770 ms 1478 bytes from 192.36.125.18: icmp_seq=1 ttl=57 time=46.128 ms 1478 bytes from 192.36.125.18: icmp_seq=2 ttl=57 time=47.038 ms 1478 bytes from 192.36.125.18: icmp_seq=3 ttl=57 time=46.457 ms 1478 bytes from 192.36.125.18: icmp_seq=4 ttl=57 time=46.375 ms 1478 bytes from 192.36.125.18: icmp_seq=5 ttl=57 time=46.291 ms 1478 bytes from 192.36.125.18: icmp_seq=6 ttl=57 time=46.707 ms 1478 bytes from 192.36.125.18: icmp_seq=7 ttl=57 time=46.623 ms 1478 bytes from 192.36.125.18: icmp_seq=8 ttl=57 time=47.541 ms 1478 bytes from 192.36.125.18: icmp_seq=9 ttl=57 time=46.458 ms But when decreasing packet size: onob2# ping -D -s 64 www.sunet.se PING www.sunet.se (192.36.125.18): 64 data bytes 72 bytes from 192.36.125.18: icmp_seq=0 ttl=57 time=102.082 ms 72 bytes from 192.36.125.18: icmp_seq=1 ttl=57 time=897.502 ms 72 bytes from 192.36.125.18: icmp_seq=2 ttl=57 time=896.420 ms 72 bytes from 192.36.125.18: icmp_seq=3 ttl=57 time=27.858 ms 72 bytes from 192.36.125.18: icmp_seq=4 ttl=57 time=894.255 ms 72 bytes from 192.36.125.18: icmp_seq=5 ttl=57 time=893.245 ms 72 bytes from 192.36.125.18: icmp_seq=6 ttl=57 time=892.244 ms 72 bytes from 192.36.125.18: icmp_seq=7 ttl=57 time=891.502 ms 72 bytes from 192.36.125.18: icmp_seq=8 ttl=57 time=890.421 ms 72 bytes from 192.36.125.18: icmp_seq=9 ttl=57 time=785.403 ms After some time (~1h) all ICMP seems to work, but when using tcp it doesn't work. For example I tried a "pkg_add -r bash2" and it timed out. I haven't had time to make any dumps on traffic, I would appreciate some hints on how to approach this to get some useful output. BTW: "netstat -i" shows no i/o-error. //Jon From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 21:40:20 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C58FE16A407 for ; Tue, 16 Jan 2007 21:40:20 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from mail1.cil.se (mail1.cil.se [217.197.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 50D9413C45A for ; Tue, 16 Jan 2007 21:40:20 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from [192.168.98.245] ([192.168.44.2]) by mail1.cil.se with Microsoft SMTPSVC(6.0.3790.1830); Tue, 16 Jan 2007 22:40:18 +0100 Message-ID: <45AD4641.2050300@ide.resurscentrum.se> Date: Tue, 16 Jan 2007 22:40:17 +0100 From: Jon Otterholm User-Agent: Thunderbird 1.5 (X11/20060204) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <45ACF404.20700@ide.resurscentrum.se> <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> <45AD3C2E.6010806@ide.resurscentrum.se> <2a41acea0701161323y2c729e4ew4c61b8f4418f6058@mail.gmail.com> In-Reply-To: <2a41acea0701161323y2c729e4ew4c61b8f4418f6058@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 16 Jan 2007 21:40:18.0666 (UTC) FILETIME=[EAA1ECA0:01C739B6] Subject: Re: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 21:40:20 -0000 Jack Vogel wrote: > On 1/16/07, Jon Otterholm wrote: >> Jack Vogel wrote: >> > On 1/16/07, Jon Otterholm wrote: >> >> Hi. >> >> >> >> I have trouble with high latency on my new X60 with em-interface. >> Anyone >> >> else with the same problem? I´m running 6.2-RELEASE. >> > >> > Would you please give a bit more detail. >> > >> > Jack >> Here comes some info: >> >> uname -a >> FreeBSD onob2.domain.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan >> 12 11:05:30 UTC 2007 >> root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 >> >> $ ifconfig em0 >> em0: flags=8843 mtu 1500 >> options=b >> inet 192.168.98.98 netmask 0xffffff00 broadcast 192.168.98.255 >> ether 00:16:d3:35:0a:a9 >> media: Ethernet autoselect (100baseTX ) >> status: active >> >> dmesg >> em0: port >> 0x2000-0x201f mem 0xee000000-0xee01ffff irq 16 at device 0.0 on pci2 >> em0: Ethernet address: 00:16:d3:35:0a:a9 >> >> pciconf -l >> em0@pci2:0:0: class=0x020000 card=0x207e17aa chip=0x109a8086 rev=0x00 >> hdr=0x00 >> >> I think I found a pattern to work with. If I do a echo-reply wit the >> "-D" (no fragment) and increase the packet size (-s) to 1472 I get >> normal response times: >> >> onob2# ping -D -s 1470 www.sunet.se >> PING www.sunet.se (192.36.125.18): 1470 data bytes >> 1478 bytes from 192.36.125.18: icmp_seq=0 ttl=57 time=47.770 ms >> 1478 bytes from 192.36.125.18: icmp_seq=1 ttl=57 time=46.128 ms >> 1478 bytes from 192.36.125.18: icmp_seq=2 ttl=57 time=47.038 ms >> 1478 bytes from 192.36.125.18: icmp_seq=3 ttl=57 time=46.457 ms >> 1478 bytes from 192.36.125.18: icmp_seq=4 ttl=57 time=46.375 ms >> 1478 bytes from 192.36.125.18: icmp_seq=5 ttl=57 time=46.291 ms >> 1478 bytes from 192.36.125.18: icmp_seq=6 ttl=57 time=46.707 ms >> 1478 bytes from 192.36.125.18: icmp_seq=7 ttl=57 time=46.623 ms >> 1478 bytes from 192.36.125.18: icmp_seq=8 ttl=57 time=47.541 ms >> 1478 bytes from 192.36.125.18: icmp_seq=9 ttl=57 time=46.458 ms >> >> But when decreasing packet size: >> >> onob2# ping -D -s 64 www.sunet.se >> PING www.sunet.se (192.36.125.18): 64 data bytes >> 72 bytes from 192.36.125.18: icmp_seq=0 ttl=57 time=102.082 ms >> 72 bytes from 192.36.125.18: icmp_seq=1 ttl=57 time=897.502 ms >> 72 bytes from 192.36.125.18: icmp_seq=2 ttl=57 time=896.420 ms >> 72 bytes from 192.36.125.18: icmp_seq=3 ttl=57 time=27.858 ms >> 72 bytes from 192.36.125.18: icmp_seq=4 ttl=57 time=894.255 ms >> 72 bytes from 192.36.125.18: icmp_seq=5 ttl=57 time=893.245 ms >> 72 bytes from 192.36.125.18: icmp_seq=6 ttl=57 time=892.244 ms >> 72 bytes from 192.36.125.18: icmp_seq=7 ttl=57 time=891.502 ms >> 72 bytes from 192.36.125.18: icmp_seq=8 ttl=57 time=890.421 ms >> 72 bytes from 192.36.125.18: icmp_seq=9 ttl=57 time=785.403 ms >> >> After some time (~1h) all ICMP seems to work, but when using tcp it >> doesn't work. For example I tried a "pkg_add -r bash2" and it timed out. >> I haven't had time to make any dumps on traffic, I would appreciate some >> hints on how to approach this to get some useful output. >> >> BTW: "netstat -i" shows no i/o-error. > > Any chance of testing at gig speed, or are you connected to some > 10/100 switch? I will try on a gig-switch tomorrow. > This site you are pinging, how are you connected to > it? It is a site on the internet but I get the same results when testing on the same subnet. > > This is odd though, no doubt, did this problem not exist in previous > releases, or is this a new setup? New setup. I Have not tried any other release. Should I try with Intel's own driver? //Jon From owner-freebsd-net@FreeBSD.ORG Tue Jan 16 22:19:00 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C24216A412; Tue, 16 Jan 2007 22:19:00 +0000 (UTC) (envelope-from fenner@research.att.com) Received: from mail-red.research.att.com (mail-red.research.att.com [192.20.225.110]) by mx1.freebsd.org (Postfix) with ESMTP id 2704113C469; Tue, 16 Jan 2007 22:19:00 +0000 (UTC) (envelope-from fenner@research.att.com) Received: from bright.research.att.com (bright.research.att.com [135.207.20.189]) by mail-green.research.att.com (Postfix) with ESMTP id 34CB2867B; Tue, 16 Jan 2007 17:00:18 -0500 (EST) Received: (from fenner@localhost) by bright.research.att.com (8.13.1/8.12.10/Submit) id l0GM0FkG011595; Tue, 16 Jan 2007 14:00:15 -0800 From: Bill Fenner Message-Id: <200701162200.l0GM0FkG011595@bright.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: Randall Stewart References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> Date: Tue, 16 Jan 2007 14:00:15 -0800 Versions: dmail (linux) 2.7/makemail 2.14 Cc: freebsd-net@freebsd.org, "Bruce M. Simpson" , Ricardo Nabinger Sanchez , hugme@hugme.org Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 22:19:00 -0000 I'd note that RFC 768 explicitly mentions this possibility: Source Port is an optional field, when meaningful, it indicates the port of the sending process, and may be assumed to be the port to which a reply should be addressed in the absence of any other information. If not used, a value of zero is inserted. I think Hug is saying that since the boot loader is the only thing that's running on the box, it's got no reason to use a port number, so it's not used. Hug's error message: >with default tftp - Jan 12 09:37:55 dukeengi01 tftpd[80898]: connect: Can't >assign requested address is consistent with the following code from in_pcbconnect_setup(): if (sin->sin_port == 0) return (EADDRNOTAVAIL); which dates back to BSD 4.4 and before. This is probably not completely wrong, but it's not right in this particular case - tftpd should be able to connect a UDP socket to a remote port 0 in order to respond to this request. (FreeBSD definitely can't send from port 0, but that's OK because we don't want to.) Bill From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 15:56:36 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D4A2F16A407 for ; Wed, 17 Jan 2007 15:56:36 +0000 (UTC) (envelope-from rnsanchez@wait4.org) Received: from spunkymail-a9.dreamhost.com (sd-green-bigip-83.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id C40DE13C45B for ; Wed, 17 Jan 2007 15:56:36 +0000 (UTC) (envelope-from rnsanchez@wait4.org) Received: from sauron.lan.box (unknown [200.203.29.31]) by spunkymail-a9.dreamhost.com (Postfix) with ESMTP id 8A1E220C5E for ; Wed, 17 Jan 2007 07:56:33 -0800 (PST) Date: Wed, 17 Jan 2007 13:56:29 -0200 From: Ricardo Nabinger Sanchez To: freebsd-net@freebsd.org Message-Id: <20070117135629.a02ada2f.rnsanchez@wait4.org> Organization: SYS_WAIT4 X-Mailer: Sylpheed 2.3.0+svn (GTK+ 2.10.6; i386-unknown-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: network related benchmark X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 15:56:36 -0000 Hello, Accidentally I got into this PDF: http://www.dcs.qmul.ac.uk/~awm/slides/masterclass2006/monitor-hardware.pdf Quite interesting results, and nice future work. Has anybody seen it already? -- Ricardo Nabinger Sanchez Powered by FreeBSD "Left to themselves, things tend to go from bad to worse." From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 18:23:34 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72D3A16A415 for ; Wed, 17 Jan 2007 18:23:34 +0000 (UTC) (envelope-from hugme2@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 2CE1513C45E for ; Wed, 17 Jan 2007 18:23:34 +0000 (UTC) (envelope-from hugme2@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1279883ana for ; Wed, 17 Jan 2007 10:23:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=OrwmqyE/d9XkoDQvjUCOmBfTJOTbCigJ9Szgvbcq9AzseBeSHNefXYEDIHjVc9EdpmRhJTfIseKTSUohEybyBoXkSFkd/4/Qt2G/05M4BQ2Fd9+xRhTdFvphAoz52w/Smx7SPHryXswPVOLs9uB2Amd1/5ytGO4sodsg6EAIgrE= Received: by 10.78.201.10 with SMTP id y10mr2135476huf.1169058207117; Wed, 17 Jan 2007 10:23:27 -0800 (PST) Received: by 10.78.178.2 with HTTP; Wed, 17 Jan 2007 10:23:27 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 13:23:27 -0500 From: "Hug Me" Sender: hugme2@gmail.com To: "Bill Fenner" In-Reply-To: <200701162200.l0GM0FkG011595@bright.research.att.com> MIME-Version: 1.0 References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> <200701162200.l0GM0FkG011595@bright.research.att.com> X-Google-Sender-Auth: f6b44d383d3047f3 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, Randall Stewart , "Bruce M. Simpson" , Ricardo Nabinger Sanchez Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 18:23:34 -0000 Should I submit this to the bug reports? The problem is that we are upgrading around 250 firewalls. the only systems we have connected L2 to the firewalls are freebsd systems. without a patch we are going to have to fly out to each firewall and do the upgrade. Each firewall being in a different city you could imagine this is going to be a logistical nightmare. One of the other problems we are going to face is the version of freebsd. we have everything from 4.8 to 6.2 installed at the systems so even with a patch we are going to have to figure out how to install it on each version. On 1/16/07, Bill Fenner wrote: > > > I'd note that RFC 768 explicitly mentions this possibility: > > Source Port is an optional field, when meaningful, it indicates the port > of the sending process, and may be assumed to be the port to which a > reply should be addressed in the absence of any other information. If > not used, a value of zero is inserted. > > I think Hug is saying that since the boot loader is the only thing that's > running on the box, it's got no reason to use a port number, so it's > not used. > > Hug's error message: > >with default tftp - Jan 12 09:37:55 dukeengi01 tftpd[80898]: connect: > Can't > >assign requested address > > is consistent with the following code from in_pcbconnect_setup(): > > if (sin->sin_port == 0) > return (EADDRNOTAVAIL); > > which dates back to BSD 4.4 and before. > > This is probably not completely wrong, but it's not right in this > particular > case - tftpd should be able to connect a UDP socket to a remote port 0 in > order to respond to this request. > > (FreeBSD definitely can't send from port 0, but that's OK because we don't > want to.) > > Bill > -- ******************************************************************* Don't ever forget to -*HUGME*- Yield to Temptation ... it may not pass your way again. -- Lazarus Long, "Time Enough for Love" From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 18:44:07 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F38B116A4ED for ; Wed, 17 Jan 2007 18:44:06 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.225]) by mx1.freebsd.org (Postfix) with ESMTP id B6D9713C469 for ; Wed, 17 Jan 2007 18:44:05 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so515150nzh for ; Wed, 17 Jan 2007 10:44:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F47aZaYOpX24KKzaIrvWtkodD95fTWiuILW9xIqp1ydb+/MjEDRlj2RzujEU2wHDpDzNRzS0SPuTuElzHfG1vqWHkGMNcrF+wKuOtf7vCSr8LXxBvFte011Vc3KTuamc8EbWQL2s9ntAlz5+P8ln33B1Q9VfxFyyVvLuLJV35D4= Received: by 10.64.27.7 with SMTP id a7mr10514661qba.1169059444568; Wed, 17 Jan 2007 10:44:04 -0800 (PST) Received: by 10.64.195.12 with HTTP; Wed, 17 Jan 2007 10:44:04 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 19:44:04 +0100 From: "Lars Stokholm" To: freebsd-net@freebsd.org In-Reply-To: <45AC6C77.6050501@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45ABBFDF.4080708@gmail.com> <200701151344.49696.lists@jnielsen.net> <45ABEA01.7090704@gmail.com> <45ABEE7C.6060404@gmail.com> <45AC6C77.6050501@gmail.com> Subject: Re: Wireless NIC recommendation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 18:44:07 -0000 On 1/16/07, Lars Stokholm wrote: > > There's *one* other card on the list that seems perfect for me: > > > > http://www.gigabyte.com.tw/Products/Communication/Products_Spec.aspx?ProductID=988&ProductName=GN-WP01GT > > > > http://edbpriser.dk/Products/Listprices.asp?ID=249274 > > > > 1.0 - I guess that means, that there is only one version. This card is a > > little cheaper and also newer. Should I go for this instead? > > It's me again... :) > > Honestly, do anyone see any reason not to buy the GIGABYTE card? Well I didn't. For future reference, I just wanted to make you know that I bought the card and it works perfectly. Thank you for all your help. From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 20:58:05 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADBD116A412 for ; Wed, 17 Jan 2007 20:58:05 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 7078D13C43E for ; Wed, 17 Jan 2007 20:58:05 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so877ana for ; Wed, 17 Jan 2007 12:58:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pItgPkHaEDbrkTAjGN71hv0qcZZ3IouKdHWYpGWW8idPlsIpydF/Xu41wiT/rxXufbn/d4EYnRpwkpTbwkgOW/1RMcHq1q9hQlUEZd/XDZ17PkBwvj7R2iIvE9MV+wOQWye3GWP6dCUT6AL63mxytKDiQEeTQQbRo2cTL+AXEsw= Received: by 10.100.138.2 with SMTP id l2mr3714510and.1169067484872; Wed, 17 Jan 2007 12:58:04 -0800 (PST) Received: by 10.100.112.17 with HTTP; Wed, 17 Jan 2007 12:58:04 -0800 (PST) Message-ID: <2a41acea0701171258k16b4c6ebuf1d4794b89d0749b@mail.gmail.com> Date: Wed, 17 Jan 2007 12:58:04 -0800 From: "Jack Vogel" To: freebsd-stable@freebsd.org, freebsd-net , freebsd-current , "Jon Otterholm" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Lenovo X60 em workaround X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 20:58:05 -0000 Since this was just seen, and the patch below validated as working I wanted to send general email to capture this: The Lenovo X60 can have issues with long ping times, this is a KNOWN hardware problem, and Intel is working with IBM/Lenovo, a final 'fix' has not been decided on yet. Nevertheless, the patch below will work, but I do not want to check it in as its still temporary. Address questions to me, Jack PS This is based on 6.2, but is needed for CURRENT as well. --- if_em.dist.c Wed Jan 17 17:59:46 2007 +++ if_em.c Wed Jan 17 18:03:13 2007 @@ -3348,6 +3348,10 @@ E1000_WRITE_REG(&adapter->hw, RXCSUM, reg_rxcsum); } + /* TEMPORARY WORKAROUND for X60 */ + if (adapter->hw.mac_type == em_82573) + E1000_WRITE_REG(&adapter->hw, RDTR, 32); + /* Enable Receives */ E1000_WRITE_REG(&adapter->hw, RCTL, reg_rctl); /* From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 22:05:10 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABFE516A416 for ; Wed, 17 Jan 2007 22:05:10 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3184213C465 for ; Wed, 17 Jan 2007 22:05:09 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1H7Ity-0002Rf-Ju for freebsd-net@freebsd.org; Wed, 17 Jan 2007 23:05:02 +0100 Received: from mkb-198-158-209-82.3.cust.bredband2.com ([82.209.158.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jan 2007 23:05:02 +0100 Received: from mc by mkb-198-158-209-82.3.cust.bredband2.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jan 2007 23:05:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Michael Widerkrantz Date: Wed, 17 Jan 2007 22:54:45 +0100 Organization: Temple of the Moby Hack, http://hack.org/mc/ Lines: 59 Message-ID: <86lkk1jp3u.fsf@tim.hack.org> References: <45ACF404.20700@ide.resurscentrum.se> <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> <45AD3C4E.1050608@ide.resurscentrum.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mkb-198-158-209-82.3.cust.bredband2.com User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:0epBIdkklAI2gmViY1gHrykJlKI= Sender: news Subject: Re: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 22:05:10 -0000 Jon Otterholm writes: > I think I found a pattern to work with. If I do a echo-reply wit the > "-D" (no fragment) and increase the packet size (-s) to 1472 I get > normal response times: I can verify that. I tried pinging the laptop from another machine (10.0.0.2) in my small home LAN. With large packets: tim# ping -D -s 1470 10.0.0.20 PING brain.internal.hack.org (10.0.0.20): 1470 data bytes 1478 bytes from 10.0.0.20: icmp_seq=0 ttl=64 time=1.278 ms 1478 bytes from 10.0.0.20: icmp_seq=1 ttl=64 time=1.321 ms 1478 bytes from 10.0.0.20: icmp_seq=2 ttl=64 time=1.235 ms 1478 bytes from 10.0.0.20: icmp_seq=3 ttl=64 time=1.178 ms 1478 bytes from 10.0.0.20: icmp_seq=4 ttl=64 time=1.096 ms 1478 bytes from 10.0.0.20: icmp_seq=5 ttl=64 time=1.499 ms 1478 bytes from 10.0.0.20: icmp_seq=6 ttl=64 time=1.451 ms 1478 bytes from 10.0.0.20: icmp_seq=7 ttl=64 time=1.363 ms 1478 bytes from 10.0.0.20: icmp_seq=8 ttl=64 time=1.280 ms ^C --- brain.internal.hack.org ping statistics --- 9 packets transmitted, 9 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.096/1.300/1.499/0.119 ms With smaller packets: tim# ping -D -s 64 brain.internal PING brain.internal.hack.org (10.0.0.20): 64 data bytes 72 bytes from 10.0.0.20: icmp_seq=0 ttl=64 time=0.450 ms 72 bytes from 10.0.0.20: icmp_seq=1 ttl=64 time=53.031 ms 72 bytes from 10.0.0.20: icmp_seq=2 ttl=64 time=48.112 ms 72 bytes from 10.0.0.20: icmp_seq=3 ttl=64 time=43.394 ms 72 bytes from 10.0.0.20: icmp_seq=4 ttl=64 time=38.311 ms 72 bytes from 10.0.0.20: icmp_seq=5 ttl=64 time=33.252 ms 72 bytes from 10.0.0.20: icmp_seq=6 ttl=64 time=28.313 ms 72 bytes from 10.0.0.20: icmp_seq=7 ttl=64 time=23.204 ms 72 bytes from 10.0.0.20: icmp_seq=8 ttl=64 time=18.531 ms ^C --- brain.internal.hack.org ping statistics --- 9 packets transmitted, 9 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.450/31.844/53.031/15.422 ms Note what happens after the first packet. The other way, /from/ the laptop, seems fine, though: brain# ping -D -s 64 tim.internal PING tim.internal.hack.org (10.0.0.2): 64 data bytes 72 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=0.762 ms 72 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.565 ms 72 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.449 ms 72 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.359 ms ^C --- tim.internal.hack.org ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.359/0.534/0.762/0.151 ms From owner-freebsd-net@FreeBSD.ORG Wed Jan 17 22:32:02 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56FCA16A415; Wed, 17 Jan 2007 22:32:02 +0000 (UTC) (envelope-from fenner@research.att.com) Received: from mail-red.research.att.com (mail-red.research.att.com [192.20.225.110]) by mx1.freebsd.org (Postfix) with ESMTP id 3122013C455; Wed, 17 Jan 2007 22:32:02 +0000 (UTC) (envelope-from fenner@research.att.com) Received: from bright.research.att.com (bright.research.att.com [135.207.20.189]) by mail-green.research.att.com (Postfix) with ESMTP id 6BFF58565; Wed, 17 Jan 2007 17:32:01 -0500 (EST) Received: (from fenner@localhost) by bright.research.att.com (8.13.1/8.12.10/Submit) id l0HMVw4I030302; Wed, 17 Jan 2007 14:31:58 -0800 From: Bill Fenner Message-Id: <200701172231.l0HMVw4I030302@bright.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: hugme@hugme.org References: <20070112163057.2a3ec8f0.rnsanchez@wait4.org> <45A807F8.7080603@FreeBSD.org> <45ACCFF4.4040709@cisco.com> <200701162200.l0GM0FkG011595@bright.research.att.com> Date: Wed, 17 Jan 2007 14:31:58 -0800 Versions: dmail (linux) 2.7/makemail 2.14 Cc: freebsd-net@freebsd.org, Randall Stewart , "Bruce M. Simpson" , Ricardo Nabinger Sanchez Subject: Re: Problem with port 0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 22:32:02 -0000 Hug, If you feel like building a new kernel, I'd suggest commenting out those lines that I quoted in in_pcb.c: if (sin->sin_port == 0) return (EADDRNOTAVAIL); and see if the FreeBSD tftpd behaves the way you want after that. I don't think that's the solution that should be committed, but I think that may get you what you need (and the fix should be the same across any FreeBSD version, as long as you can build a new kernel for your varied boxes). Bill From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 00:36:50 2007 Return-Path: X-Original-To: freebsd-net@hub.freebsd.org Delivered-To: freebsd-net@hub.freebsd.org Received: by hub.freebsd.org (Postfix, from userid 680) id 1CD5F16A417; Thu, 18 Jan 2007 00:36:50 +0000 (UTC) Date: Thu, 18 Jan 2007 00:36:50 +0000 From: Darren Reed To: freebsd-net@hub.freebsd.org Message-ID: <20070118003650.GA70722@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: IPFilter 5.0.0 - feedback? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 00:36:50 -0000 Hi, So i've been implementing some new features in ipfilter, whether or not they make it a 5.0, I'm not sure...maybe a few people can let me know what they think about that.. So what are these new features? There are 3 new commands for ipnat.conf: rewrite - change both source and address fields for incoming or outgoing packets encap - encapsulated the packet in a new IP header (this will be compatible, I hope, with IPENCAP tunnels elsewhere0 divert - encapsulate the packet into an IP+UDP packet To help people use these, I've rewritten the ipnat.conf man page. divert ------ A divert rule looks like this: divert in on le0 proto udp from any to any port = 53 -> src 127.0.0.1,54 dst 127.0.0.1,5300; note the ";" on the end of the line. to the left of the "->" is the original packet to be matched, on the right, the IP/UDP header to create and put in front of the packet. Reply packets from that socket will have the IP+UDP headers removed when they get back to IPFilter. I'm hoping this will provide cross-platform "divert" functionality but it needs more widespread testing than what I've been able to achieve. *** I'm especially interested in hearing from people who use the *** divert feature and sockets in ipfw about how this compares *** with what they do and/or if they'd find it useful. encap is pretty much the same as divert, minus the port numbers to the right of "->". rewrite ------- Rewrites have a subset of the combined functionality of rdr/map rules. As an example of how the man page has been rewritten, I've included the contents of it for this new command below. ipmon ===== You can now use ipmon.conf to as the place to specify how log records are sent to syslog (facility & priority) rather than needing to do it in filter rules. ipf === As part of the "keep state" options, you can now specify a rule group to which ICMP replies can be filtered by - "... keep state(icmp-head icmprules)" It is also now possible to position stateful filtering checks, inbound and outbound nat lookups. If this is done, the traditional checks are no longer performed. This is done as follows: call now fr_checkstate in on le0 from any to any call now fr_ipfnatin in on ppp0 all call now fr_ipfnatout out on bge0 from bge0/32 to any Oh, being 5.0.0, it is a development version, there's nothing release quality about it (well, you might argue that for others too .. >:->), this is just to get some feedback from people on features and enable some people to try/test a few things out beyond my limited scope. Perhaps most importantly, most of my work to date has been limited to using NetBSD. Cheers, Darren http;//coombs.anu.edu.au/~avalon/ip_fil5.0.0.tar.gz MD5 (/home/darrenr/ip_fil5.0.0.tar.gz) = 7798797c1929cb55c182d3088f40b0b5 REWRITING SOURCE AND DESTINATION Whilst the above two commands provide a lot of flexibility in changing addressing fields in packets, often it can be of benefit to translate both source and destination at the same time or to change the source address on input or the destination address on output. Doing all of these things can be accomplished using rewrite NAT rules. A rewrite rule requires the same level of packet matching as before, protocol and source/destination information but in addition allows either in or out to be specified like this: rewrite in on ppp0 proto tcp from any to any port = 80 -> src 0/0 dst 127.0.0.1,3128; rewrite out on ppp0 from any to any -> src 0/32 dst 10.1.1.0/24; On the RHS we can specify both new source and destination information to place into the packet being sent out. As with other rules used in ipnat.conf, there are shortcuts syntaxes available to use the original address information (0/0) and the address associated with the network interface (0/32.) For TCP and UDP, both address and port information can be changed. At present it is only possible to specify either a range of port numbers to be used (X-Y) or a single port number (= X) as follows: rewrite in on le0 proto tcp from any to any port = 80 -> src 0/0,2000-20000 dst 127.0.0.1,port = 3128; There are four fields that are stepped through in enumerating the num- ber space available for creating a new destination: source address source port destination address destination port If one of these happens to be a static then it will be skipped and the next one incremented. As an example: rewrite out on le0 proto tcp from any to any port = 80 -> src 1.0.0.0/8,5000-5999 dst 2.0.0.0/24,6000-6999; The translated packets would be: 1st src=1.0.0.1,5000 dst=2.0.0.1,6000 2nd src=1.0.0.2,5000 dst=2.0.0.1,6000 3rd src=1.0.0.2,5001 dst=2.0.0.1,6000 4th src=1.0.0.2,5001 dst=2.0.0.2,6000 5th src=1.0.0.2,5001 dst=2.0.0.2,6001 6th src=1.0.0.3,5001 dst=2.0.0.2,6001 and so on. As with map rules, it is possible to specify a range of addresses by including the word range before the addresses: rewrite from any to any port = 80 -> src 1.1.2.3 - 1.1.2.6 dst 2.2.3.4 - 2.2.3.6; From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 07:37:24 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 29A9516A407 for ; Thu, 18 Jan 2007 07:37:24 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout2.pacific.net.au (mailout2-3.pacific.net.au [61.8.2.226]) by mx1.freebsd.org (Postfix) with ESMTP id E577213C467 for ; Thu, 18 Jan 2007 07:37:23 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 7F24510A02B; Thu, 18 Jan 2007 18:37:20 +1100 (EST) Received: from besplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id C6E0327411; Thu, 18 Jan 2007 18:37:21 +1100 (EST) Date: Thu, 18 Jan 2007 18:37:20 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Michael Widerkrantz In-Reply-To: <86lkk1jp3u.fsf@tim.hack.org> Message-ID: <20070118183704.A3165@besplex.bde.org> References: <45ACF404.20700@ide.resurscentrum.se> <2a41acea0701160958m27c3537ctb25e5420e7a46891@mail.gmail.com> <45AD3C4E.1050608@ide.resurscentrum.se> <86lkk1jp3u.fsf@tim.hack.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: Lenovo X60 em X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 07:37:24 -0000 On Wed, 17 Jan 2007, Michael Widerkrantz wrote: > I can verify that. I tried pinging the laptop from another machine > (10.0.0.2) in my small home LAN. > With smaller packets: > > tim# ping -D -s 64 brain.internal > PING brain.internal.hack.org (10.0.0.20): 64 data bytes > 72 bytes from 10.0.0.20: icmp_seq=0 ttl=64 time=0.450 ms > 72 bytes from 10.0.0.20: icmp_seq=1 ttl=64 time=53.031 ms > 72 bytes from 10.0.0.20: icmp_seq=2 ttl=64 time=48.112 ms > ... > Note what happens after the first packet. > > The other way, /from/ the laptop, seems fine, though: > > brain# ping -D -s 64 tim.internal > PING tim.internal.hack.org (10.0.0.2): 64 data bytes > 72 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=0.762 ms > 72 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.565 ms I've been working on reducing network latency, and now only consider latency 10 times smaller than 0.565 mS to be fine for a home LAN :-). Bruce From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 10:26:22 2007 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 309D616A407 for ; Thu, 18 Jan 2007 10:26:22 +0000 (UTC) (envelope-from stefan.lambrev@sun-fish.com) Received: from sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id E1FDF13C428 for ; Thu, 18 Jan 2007 10:26:21 +0000 (UTC) (envelope-from stefan.lambrev@sun-fish.com) Received: from sun-fish.com (localhost.cmotd.com [127.0.0.1]) by sun-fish.com (Postfix) with ESMTP id B91123847B for ; Thu, 18 Jan 2007 11:04:32 +0100 (CET) Received: from [192.168.3.125] (hater.cmotd.com [192.168.3.125]) by sun-fish.com (Postfix) with ESMTP id 7FFE038436 for ; Thu, 18 Jan 2007 11:04:32 +0100 (CET) Message-ID: <45AF4633.8090904@sun-fish.com> Date: Thu, 18 Jan 2007 12:04:35 +0200 From: Stefan Lambrev User-Agent: Thunderbird 1.5.0.9 (X11/20061230) MIME-Version: 1.0 To: net@FreeBSD.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV Cc: Subject: http://www.clearchain.com/wiki/wpi X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 10:26:22 -0000 Hello, Can someone help me little with WPI driver ? I'm willing to test it on my laptop, but I'm stuck at compile/install process :) I downloaded http://www.clearchain.com/~benjsc/download/20070107-wpi-freebsd.tar.gz but I'm not sure what to do with it. Any tips how to compile it? I'm using FreeBSD 6.2 RC2 - amd64. Thanks in advance. -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 11:34:13 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C2A116A412 for ; Thu, 18 Jan 2007 11:34:13 +0000 (UTC) (envelope-from gilbert.cao@bsdmon.com) Received: from bigfugu.bsdmon.com (218.128.101-84.rev.gaoland.net [84.101.128.218]) by mx1.freebsd.org (Postfix) with ESMTP id 3436B13C44B for ; Thu, 18 Jan 2007 11:34:13 +0000 (UTC) (envelope-from gilbert.cao@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by bigfugu.bsdmon.com (Postfix) with ESMTP id 5707D62AF; Thu, 18 Jan 2007 12:03:19 +0100 (CET) Received: from bigfugu.bsdmon.com ([127.0.0.1]) by localhost (bigfugu.bsdmon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60632-11; Thu, 18 Jan 2007 12:03:18 +0100 (CET) Received: from bigfugu.bsdmon.com (localhost [127.0.0.1]) by bigfugu.bsdmon.com (Postfix) with ESMTP id 8AA0362B2; Thu, 18 Jan 2007 12:03:18 +0100 (CET) Received: from ftplan.ice-dev.com ([82.226.60.41]) (SquirrelMail authenticated user macross) by bigfugu.bsdmon.com with HTTP; Thu, 18 Jan 2007 12:03:18 +0100 (CET) Message-ID: <12168.82.226.60.41.1169118198.squirrel@bigfugu.bsdmon.com> In-Reply-To: <45AF4633.8090904@sun-fish.com> References: <45AF4633.8090904@sun-fish.com> Date: Thu, 18 Jan 2007 12:03:18 +0100 (CET) From: "Gilbert Cao" To: "Stefan Lambrev" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at bsdmon.com Cc: net@freebsd.org Subject: Re: http://www.clearchain.com/wiki/wpi X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 11:34:13 -0000 > Hello, > > Can someone help me little with WPI driver ? > I'm willing to test it on my laptop, but I'm stuck at compile/install > process :) > > I downloaded > http://www.clearchain.com/~benjsc/download/20070107-wpi-freebsd.tar.gz > but I'm not sure what to do with it. > Any tips how to compile it? > > I'm using FreeBSD 6.2 RC2 - amd64. Hi, I manage to compile it, only on FreeBSD-CURRENT. I think you should "cvsup" it and not get an old FreeBSD-CURRENT snapshot. Hope this helps. From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 13:43:35 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5A4916A40F for ; Thu, 18 Jan 2007 13:43:35 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.freebsd.org (Postfix) with ESMTP id 825D913C44B for ; Thu, 18 Jan 2007 13:43:35 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-5.cisco.com with ESMTP; 18 Jan 2007 05:43:35 -0800 Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id l0IDhX39009033 for ; Thu, 18 Jan 2007 05:43:33 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id l0IDhUV0021750 for ; Thu, 18 Jan 2007 05:43:32 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:43:30 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:43:29 -0800 Message-ID: <45AF7962.7040407@cisco.com> Date: Thu, 18 Jan 2007 08:42:58 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: freebsd-net References: <45AF55DE.1070700@cisco.com> In-Reply-To: <45AF55DE.1070700@cisco.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Jan 2007 13:43:29.0997 (UTC) FILETIME=[A35CF7D0:01C73B06] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=840; t=1169127813; x=1169991813; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20mbuf=20large=20clusters |Sender:=20; bh=q5gQFIAsTMxQxMPYMILCkEAsLDd4Tx8UbzEX3pU0KoU=; b=kdJzlCH4y9cwiitnoiaIa04cmFt65QlBztxYTghDRKfx4kyNFZephGMw0wFFhiR8XfwcsXd2 AhMWMn2e+qw88lNZp+/GiyiucElS12bTLhejroYbrhpY3MJerNyQY+h7; Authentication-Results: sj-dkim-4; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim4002 verified; ); Subject: Re: mbuf large clusters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 13:43:35 -0000 Moving this question over to net.. since I think it belongs there :-) Oh, and looking at the sysctl to tune the 4/9 and 16k clusters.. it does NOT work. If I set it in the sysctl.conf by the time that is read its to late.. So.. a) Should we have a default and b) Does anyone mind if I fix this and put sysctl process type things in (like regular clusters have) so the limit will actually have some effect? Andre? R Randall Stewart wrote: > Question: > > I see that the 2k clusters are defaulted in > tunable_mbinit() > to: > > nmbclusters = 1024 + maxusers * 64; > > But there are NO limits what so ever set on the > larger clusters... > > Any particular reason why that is so? > > R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 13:58:50 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F187916A407; Thu, 18 Jan 2007 13:58:50 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-4.cisco.com (sj-iport-4.cisco.com [171.68.10.86]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC0D13C46A; Thu, 18 Jan 2007 13:58:50 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-4.cisco.com with ESMTP; 18 Jan 2007 05:58:50 -0800 Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l0IDwo3n000430; Thu, 18 Jan 2007 05:58:50 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l0IDwnDk012461; Thu, 18 Jan 2007 05:58:50 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:58:48 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:58:48 -0800 Message-ID: <45AF7CF8.6030102@cisco.com> Date: Thu, 18 Jan 2007 08:58:16 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Christian Brueffer References: <45AF55DE.1070700@cisco.com> <45AF7962.7040407@cisco.com> <20070118135319.GB1874@haakonia.hitnet.RWTH-Aachen.DE> In-Reply-To: <20070118135319.GB1874@haakonia.hitnet.RWTH-Aachen.DE> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Jan 2007 13:58:48.0537 (UTC) FILETIME=[C6DB0C90:01C73B08] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1231; t=1169128730; x=1169992730; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20mbuf=20large=20clusters |Sender:=20; bh=e90fmwk0rH7JjJ/42DFwH1oatvheZc3AoX1Ceeid8S0=; b=itfmRyWwznj3vBWF5mqUXCq1thyBQ0RI//PmqytMC8TeXauCG/fY9Urv0Br6WiIzO731uY1m JUlZ19cJx0LWDhaHmwSWVOBftItziPLICC5/gB+JCer3SRvy/M1O2P06; Authentication-Results: sj-dkim-2; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim2002 verified; ); Cc: freebsd-net Subject: Re: mbuf large clusters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 13:58:51 -0000 Christian Brueffer wrote: > > Not sure if I'm understanding you correctly, but kern.ipc.nmbclusters is > a tunable not a sysctl, so it has to be set in /boot/loader.conf or at > the loader prompt (see loader(8)). > Not in current from what I see (if I understand this correctly of course): ----------------------------------------------------- static int sysctl_nmbclusters(SYSCTL_HANDLER_ARGS) { int error, newnmbclusters; newnmbclusters = nmbclusters; error = sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req); if (error == 0 && req->newptr) { if (newnmbclusters > nmbclusters) { nmbclusters = newnmbclusters; uma_zone_set_max(zone_clust, nmbclusters); EVENTHANDLER_INVOKE(nmbclusters_change); } else error = EINVAL; } return (error); } SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW, &nmbclusters, 0, sysctl_nmbclusters, "IU", "Maximum number of mbuf clusters allowed"); ----------------------------------------------------- It looks to me like it lets you INCREASE the value from the calculated system value.. but NOT shrink it :-0 R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 14:05:58 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4CB4216A415; Thu, 18 Jan 2007 14:05:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id B72F213C465; Thu, 18 Jan 2007 14:05:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 65E53EB111B; Thu, 18 Jan 2007 22:05:55 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id lH4PLJ-QIFXF; Thu, 18 Jan 2007 22:05:43 +0800 (CST) Received: from [192.168.1.32] (unknown [221.222.204.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 9803FEB08F2; Thu, 18 Jan 2007 22:05:42 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=Xr0mhp/A9zIEm1I8/WbXLOoyvo1mXlYGJ8dUsWhEIwNQ1bHMVsAdMHylIXmM2pC9q bkg4ghjVh6IgAREJSowPw== Message-ID: <45AF7E5A.4080109@delphij.net> Date: Thu, 18 Jan 2007 22:04:10 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Randall Stewart References: <45AF55DE.1070700@cisco.com> <45AF7962.7040407@cisco.com> <20070118135319.GB1874@haakonia.hitnet.RWTH-Aachen.DE> <45AF7CF8.6030102@cisco.com> In-Reply-To: <45AF7CF8.6030102@cisco.com> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig8EABD3934C6AD61935167CBD" Cc: freebsd-net , Christian Brueffer Subject: Re: mbuf large clusters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 14:05:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8EABD3934C6AD61935167CBD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Randall Stewart wrote: > Christian Brueffer wrote: >=20 >> >> Not sure if I'm understanding you correctly, but kern.ipc.nmbclusters = is >> a tunable not a sysctl, so it has to be set in /boot/loader.conf or at= >> the loader prompt (see loader(8)). >> >=20 > Not in current from what I see (if > I understand this correctly of course): > ----------------------------------------------------- > static int > sysctl_nmbclusters(SYSCTL_HANDLER_ARGS) > { > int error, newnmbclusters; >=20 > newnmbclusters =3D nmbclusters; > error =3D sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req= ); > if (error =3D=3D 0 && req->newptr) { > if (newnmbclusters > nmbclusters) { > nmbclusters =3D newnmbclusters; > uma_zone_set_max(zone_clust, nmbclusters); > EVENTHANDLER_INVOKE(nmbclusters_change); > } else > error =3D EINVAL; > } > return (error); > } > SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW, > &nmbclusters, 0, sysctl_nmbclusters, "IU", > "Maximum number of mbuf clusters allowed"); >=20 > ----------------------------------------------------- >=20 > It looks to me like it lets you INCREASE the value from > the calculated system value.. but NOT shrink it :-0 No, shrinking it is not currently supported... It can easily trigger 'zonelimit' livelock if not handled properly. On the other hand, the code seems to have some problem as it allows setting an upper limit when there is no upper limit (nmbclusters=3D0). Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig8EABD3934C6AD61935167CBD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr35aOfuToMruuMARA+dAAJ9KAEsXi5S02HBFwGxe0EwofXcXggCggiAY I3XJXARvul3kQG7qCLiPBiA= =JrWS -----END PGP SIGNATURE----- --------------enig8EABD3934C6AD61935167CBD-- From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 14:53:22 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4495C16A407 for ; Thu, 18 Jan 2007 14:53:22 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from mta-2.ms.rz.rwth-aachen.de (mta-2.ms.rz.RWTH-Aachen.DE [134.130.7.73]) by mx1.freebsd.org (Postfix) with ESMTP id E275E13C44C for ; Thu, 18 Jan 2007 14:53:21 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from circe ([134.130.3.36]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JC2000V0H8XVV60@mta-2.ms.rz.RWTH-Aachen.de> for freebsd-net@freebsd.org; Thu, 18 Jan 2007 14:53:21 +0100 (CET) Received: from talos.rz.RWTH-Aachen.DE ([134.130.3.22]) by circe (MailMonitor for SMTP v1.2.2 ) ; Thu, 18 Jan 2007 14:53:20 +0100 (MET) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by smarthost.rwth-aachen.de (8.13.8/8.13.1/1) with ESMTP id l0IDrKCk005416; Thu, 18 Jan 2007 14:53:20 +0100 Received: from haakonia.hitnet.rwth-aachen.de ([137.226.181.92]) by bigboss.hitnet.rwth-aachen.de with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1H7Xhg-0005xC-Kj; Thu, 18 Jan 2007 14:53:20 +0100 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 321983F41B; Thu, 18 Jan 2007 14:53:20 +0100 (CET) Date: Thu, 18 Jan 2007 14:53:20 +0100 From: Christian Brueffer In-reply-to: <45AF7962.7040407@cisco.com> To: Randall Stewart Message-id: <20070118135319.GB1874@haakonia.hitnet.RWTH-Aachen.DE> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=5I6of5zJg18YgZEa Content-disposition: inline X-Operating-System: FreeBSD 6.2-PRERELEASE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <45AF55DE.1070700@cisco.com> <45AF7962.7040407@cisco.com> User-Agent: Mutt/1.5.11 Cc: freebsd-net Subject: Re: mbuf large clusters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 14:53:22 -0000 --5I6of5zJg18YgZEa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2007 at 08:42:58AM -0500, Randall Stewart wrote: > Moving this question over to net.. since I think > it belongs there :-) >=20 > Oh, and looking at the sysctl to tune the > 4/9 and 16k clusters.. it does NOT work. >=20 > If I set it in the sysctl.conf by the > time that is read its to late.. >=20 Not sure if I'm understanding you correctly, but kern.ipc.nmbclusters is a tunable not a sysctl, so it has to be set in /boot/loader.conf or at the loader prompt (see loader(8)). - Christian > So.. >=20 > a) Should we have a default > and > b) Does anyone mind if I fix this and > put sysctl process type things in (like regular > clusters have) so the limit will actually have > some effect? >=20 > Andre? >=20 > R >=20 >=20 > Randall Stewart wrote: > >Question: > > > >I see that the 2k clusters are defaulted in > >tunable_mbinit() > >to: > > > >nmbclusters =3D 1024 + maxusers * 64; > > > >But there are NO limits what so ever set on the > >larger clusters... > > > >Any particular reason why that is so? > > > >R >=20 >=20 > --=20 > Randall Stewart > NSSTG - Cisco Systems Inc. > 803-345-0369 803-317-4952 (cell) > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --5I6of5zJg18YgZEa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFr3vPbHYXjKDtmC0RAuA0AJ4yTGv+Je3UFqS5+F5MfDpdpweEbACgy0KO S50KW2wF74yTts1sT4QIi/I= =1y8Q -----END PGP SIGNATURE----- --5I6of5zJg18YgZEa-- From owner-freebsd-net@FreeBSD.ORG Fri Jan 19 14:18:09 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 374DC16A400 for ; Fri, 19 Jan 2007 14:18:09 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-2.cisco.com (sj-iport-2-in.cisco.com [171.71.176.71]) by mx1.freebsd.org (Postfix) with ESMTP id 0819A13C441 for ; Fri, 19 Jan 2007 14:18:08 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-2.cisco.com with ESMTP; 19 Jan 2007 06:17:46 -0800 X-IronPort-AV: i="4.13,211,1167638400"; d="scan'208"; a="356962755:sNHT1776272592" Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l0JEHi57026887 for ; Fri, 19 Jan 2007 06:17:44 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id l0JEHiUw015412 for ; Fri, 19 Jan 2007 06:17:44 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 Jan 2007 06:17:44 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 Jan 2007 06:17:43 -0800 Message-ID: <45B0D2E3.9050203@cisco.com> Date: Fri, 19 Jan 2007 09:17:07 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: freebsd-net Content-Type: multipart/mixed; boundary="------------040707050509060703070909" X-OriginalArrivalTime: 19 Jan 2007 14:17:43.0880 (UTC) FILETIME=[95FC6480:01C73BD4] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=4535; t=1169216264; x=1170080264; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20kern_mbuf.c=20patch |Sender:=20; bh=M+qJMMlidYbaXzrUyCnaP5cKGJF6wusd1XyNuA0zHUA=; b=Ie7dKhOA+O3sMExsN/6jzat5Ym7G4gZBCpZqOJkkX5m4APY8x8ArpMJKt3JxBYD0BMZNf6Qu hDnvpukCFFkRSuKj9SZ16Pa0hLm0DpJ3V1AWoL7K/rJko7sKUG8tUcF4; Authentication-Results: sj-dkim-3; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim3002 verified; ); Subject: kern_mbuf.c patch X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 14:18:09 -0000 This is a multi-part message in MIME format. --------------040707050509060703070909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit All: George and I have been discussing making the attached change to limit kernel large cluster growth. Note I also have added a fix so that if the limit is 0 (unlimited), then you cannot change the limit (back downward)... This is in response to Li Xin's comments about the code I posted earlier.. I have no idea if the "default numbers" for these are correct... it was a wild swag guess. Maybe someone might have a better idea of what the default limits for 4k/9k and 16k clusters should be :) Comments would be appreciated :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell) --------------040707050509060703070909 Content-Type: text/plain; name="patch.kern_mbuf.limits" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.kern_mbuf.limits" Index: kern_mbuf.c =================================================================== RCS file: /usr/FreeBSD/src/sys/kern/kern_mbuf.c,v retrieving revision 1.27 diff -u -r1.27 kern_mbuf.c --- kern_mbuf.c 22 Oct 2006 11:52:13 -0000 1.27 +++ kern_mbuf.c 19 Jan 2007 14:06:35 -0000 @@ -107,6 +107,9 @@ /* This has to be done before VM init. */ nmbclusters = 1024 + maxusers * 64; + nmbjumbop = 100 + (maxusers * 4); + nmbjumbo9 = 100 + (maxusers * 2); + nmbjumbo16 = 100 + (maxusers * 2); TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters); } SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_ANY, tunable_mbinit, NULL); @@ -120,7 +123,7 @@ newnmbclusters = nmbclusters; error = sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req); if (error == 0 && req->newptr) { - if (newnmbclusters > nmbclusters) { + if (nmbclusters && (newnmbclusters > nmbclusters)) { nmbclusters = newnmbclusters; uma_zone_set_max(zone_clust, nmbclusters); EVENTHANDLER_INVOKE(nmbclusters_change); @@ -129,15 +132,75 @@ } return (error); } + +static int +sysctl_nmbjclusters(SYSCTL_HANDLER_ARGS) +{ + int error, newnmbjclusters; + + newnmbjclusters = nmbjumbop; + error = sysctl_handle_int(oidp, &newnmbjclusters, sizeof(int), req); + if (error == 0 && req->newptr) { + if (nmbjumbop && (newnmbjclusters > nmbjumbop)) { + nmbjumbop = newnmbjclusters; + uma_zone_set_max(zone_jumbop, nmbjumbop); + } else + error = EINVAL; + } + return (error); +} + + +static int +sysctl_nmbj9clusters(SYSCTL_HANDLER_ARGS) +{ + int error, newnmbj9clusters; + + newnmbj9clusters = nmbjumbo9; + error = sysctl_handle_int(oidp, &newnmbj9clusters, sizeof(int), req); + if (error == 0 && req->newptr) { + if (nmbjumbo9 && (newnmbj9clusters > nmbjumbo9)) { + nmbjumbo9 = newnmbj9clusters; + uma_zone_set_max(zone_jumbo9, nmbjumbo9); + } else + error = EINVAL; + } + return (error); +} + +static int +sysctl_nmbj16clusters(SYSCTL_HANDLER_ARGS) +{ + int error, newnmbj16clusters; + + newnmbj16clusters = nmbjumbo16; + error = sysctl_handle_int(oidp, &newnmbj16clusters, sizeof(int), req); + if (error == 0 && req->newptr) { + if (nmbjumbo16 && (newnmbj16clusters > nmbjumbo16)) { + nmbjumbo16 = newnmbj16clusters; + uma_zone_set_max(zone_jumbo16, nmbjumbo16); + } else + error = EINVAL; + } + return (error); +} + SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW, &nmbclusters, 0, sysctl_nmbclusters, "IU", "Maximum number of mbuf clusters allowed"); -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbop, CTLFLAG_RW, &nmbjumbop, 0, + +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbop, CTLTYPE_INT|CTLFLAG_RW, +&nmbjumbop, 0, sysctl_nmbjclusters, "IU", "Maximum number of mbuf page size jumbo clusters allowed"); -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbo9, CTLFLAG_RW, &nmbjumbo9, 0, + +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbo9, CTLTYPE_INT|CTLFLAG_RW, +&nmbjumbo9, 0, sysctl_nmbj9clusters, "IU", "Maximum number of mbuf 9k jumbo clusters allowed"); -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbo16, CTLFLAG_RW, &nmbjumbo16, 0, + +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbo16, CTLTYPE_INT|CTLFLAG_RW, +&nmbjumbo16, 0, sysctl_nmbj16clusters, "IU", "Maximum number of mbuf 16k jumbo clusters allowed"); + SYSCTL_STRUCT(_kern_ipc, OID_AUTO, mbstat, CTLFLAG_RD, &mbstat, mbstat, "Mbuf general information and statistics"); --------------040707050509060703070909-- From owner-freebsd-net@FreeBSD.ORG Fri Jan 19 15:17:50 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69EEF16A400 for ; Fri, 19 Jan 2007 15:17:50 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 5683413C480 for ; Fri, 19 Jan 2007 15:17:50 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l0JEhxFd054369; Fri, 19 Jan 2007 06:43:59 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l0JEhxU2054368; Fri, 19 Jan 2007 06:43:59 -0800 (PST) (envelope-from rizzo) Date: Fri, 19 Jan 2007 06:43:59 -0800 From: Luigi Rizzo To: Randall Stewart Message-ID: <20070119064359.A54272@xorpc.icir.org> References: <45B0D2E3.9050203@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <45B0D2E3.9050203@cisco.com>; from rrs@cisco.com on Fri, Jan 19, 2007 at 09:17:07AM -0500 Cc: freebsd-net Subject: Re: kern_mbuf.c patch X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 15:17:50 -0000 On Fri, Jan 19, 2007 at 09:17:07AM -0500, Randall Stewart wrote: > All: > > George and I have been discussing making the attached change > to limit kernel large cluster growth. > > Note I also have added a fix so that if the limit > is 0 (unlimited), then you cannot change the limit > (back downward)... This is in response to Li Xin's comments > about the code I posted earlier.. > > I have no idea if the "default numbers" for these are > correct... it was a wild swag guess. > > Maybe someone might have a better idea of what > the default limits for 4k/9k and 16k clusters should > be :) > > Comments would be appreciated :-) not specific to this patch, but i see that there is no bound check on the sysctl values, and probably there should be. Given that probably there are many other places in the kernel that have similar bound-checking requirements, if would be good if you write your 3 sysctl handlers using a helper function like this err = sysctl_int_checked(oidp, &val, min, max) that returns EINVAL on error (new value < min or > max) leaving val untouched, and 0 on success updating the value. This way the error checking becomes simpler here and for all the lazy programmer who did not bother to implement that in the existing code. cheers luigi > R > -- > Randall Stewart > NSSTG - Cisco Systems Inc. > 803-345-0369 803-317-4952 (cell) > Index: kern_mbuf.c > =================================================================== > RCS file: /usr/FreeBSD/src/sys/kern/kern_mbuf.c,v > retrieving revision 1.27 > diff -u -r1.27 kern_mbuf.c > --- kern_mbuf.c 22 Oct 2006 11:52:13 -0000 1.27 > +++ kern_mbuf.c 19 Jan 2007 14:06:35 -0000 > @@ -107,6 +107,9 @@ > > /* This has to be done before VM init. */ > nmbclusters = 1024 + maxusers * 64; > + nmbjumbop = 100 + (maxusers * 4); > + nmbjumbo9 = 100 + (maxusers * 2); > + nmbjumbo16 = 100 + (maxusers * 2); > TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters); > } > SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_ANY, tunable_mbinit, NULL); > @@ -120,7 +123,7 @@ > newnmbclusters = nmbclusters; > error = sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req); > if (error == 0 && req->newptr) { > - if (newnmbclusters > nmbclusters) { > + if (nmbclusters && (newnmbclusters > nmbclusters)) { > nmbclusters = newnmbclusters; > uma_zone_set_max(zone_clust, nmbclusters); > EVENTHANDLER_INVOKE(nmbclusters_change); > @@ -129,15 +132,75 @@ > } > return (error); > } > + > +static int > +sysctl_nmbjclusters(SYSCTL_HANDLER_ARGS) > +{ > + int error, newnmbjclusters; > + > + newnmbjclusters = nmbjumbop; > + error = sysctl_handle_int(oidp, &newnmbjclusters, sizeof(int), req); > + if (error == 0 && req->newptr) { > + if (nmbjumbop && (newnmbjclusters > nmbjumbop)) { > + nmbjumbop = newnmbjclusters; > + uma_zone_set_max(zone_jumbop, nmbjumbop); > + } else > + error = EINVAL; > + } > + return (error); > +} > + > + > +static int > +sysctl_nmbj9clusters(SYSCTL_HANDLER_ARGS) > +{ > + int error, newnmbj9clusters; > + > + newnmbj9clusters = nmbjumbo9; > + error = sysctl_handle_int(oidp, &newnmbj9clusters, sizeof(int), req); > + if (error == 0 && req->newptr) { > + if (nmbjumbo9 && (newnmbj9clusters > nmbjumbo9)) { > + nmbjumbo9 = newnmbj9clusters; > + uma_zone_set_max(zone_jumbo9, nmbjumbo9); > + } else > + error = EINVAL; > + } > + return (error); > +} > + > +static int > +sysctl_nmbj16clusters(SYSCTL_HANDLER_ARGS) > +{ > + int error, newnmbj16clusters; > + > + newnmbj16clusters = nmbjumbo16; > + error = sysctl_handle_int(oidp, &newnmbj16clusters, sizeof(int), req); > + if (error == 0 && req->newptr) { > + if (nmbjumbo16 && (newnmbj16clusters > nmbjumbo16)) { > + nmbjumbo16 = newnmbj16clusters; > + uma_zone_set_max(zone_jumbo16, nmbjumbo16); > + } else > + error = EINVAL; > + } > + return (error); > +} > + > SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW, > &nmbclusters, 0, sysctl_nmbclusters, "IU", > "Maximum number of mbuf clusters allowed"); > -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbop, CTLFLAG_RW, &nmbjumbop, 0, > + > +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbop, CTLTYPE_INT|CTLFLAG_RW, > +&nmbjumbop, 0, sysctl_nmbjclusters, "IU", > "Maximum number of mbuf page size jumbo clusters allowed"); > -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbo9, CTLFLAG_RW, &nmbjumbo9, 0, > + > +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbo9, CTLTYPE_INT|CTLFLAG_RW, > +&nmbjumbo9, 0, sysctl_nmbj9clusters, "IU", > "Maximum number of mbuf 9k jumbo clusters allowed"); > -SYSCTL_INT(_kern_ipc, OID_AUTO, nmbjumbo16, CTLFLAG_RW, &nmbjumbo16, 0, > + > +SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbjumbo16, CTLTYPE_INT|CTLFLAG_RW, > +&nmbjumbo16, 0, sysctl_nmbj16clusters, "IU", > "Maximum number of mbuf 16k jumbo clusters allowed"); > + > SYSCTL_STRUCT(_kern_ipc, OID_AUTO, mbstat, CTLFLAG_RD, &mbstat, mbstat, > "Mbuf general information and statistics"); > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri Jan 19 19:25:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E203016A402 for ; Fri, 19 Jan 2007 19:25:27 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8B2C013C441 for ; Fri, 19 Jan 2007 19:25:27 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.13.6/8.13.6) with ESMTP id l0JJPPV1020594 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 19 Jan 2007 14:25:25 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id l0JJPJEI090678; Fri, 19 Jan 2007 14:25:19 -0500 (EST) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17841.6943.770698.707214@grasshopper.cs.duke.edu> Date: Fri, 19 Jan 2007 14:25:19 -0500 (EST) To: Randall Stewart In-Reply-To: <45B0D2E3.9050203@cisco.com> References: <45B0D2E3.9050203@cisco.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Cc: freebsd-net Subject: Re: kern_mbuf.c patch X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 19:25:28 -0000 Randall Stewart writes: > nmbclusters = 1024 + maxusers * 64; > + nmbjumbop = 100 + (maxusers * 4); The limit on page-size jumbos seems far too small. Since the socket buffer code now uses page-sized jumbos, I'd expect to see its limit be the same as nmbclusters. Drew From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 16:29:37 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 02CBA16A401; Sat, 20 Jan 2007 16:29:37 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mx1.freebsd.org (Postfix) with ESMTP id DC82313C428; Sat, 20 Jan 2007 16:29:36 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from tomcat.kitchenlab.org (tomcat.kitchenlab.org [64.142.31.107]) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l0KGTar6005017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jan 2007 08:29:36 -0800 Received: from tomcat.kitchenlab.org (localhost.kitchenlab.org [127.0.0.1]) by tomcat.kitchenlab.org (8.13.8/8.13.8) with ESMTP id l0KGTaGq018117; Sat, 20 Jan 2007 08:29:36 -0800 (PST) (envelope-from bmah@freebsd.org) Received: (from bmah@localhost) by tomcat.kitchenlab.org (8.13.8/8.13.8/Submit) id l0KGTa2u018116; Sat, 20 Jan 2007 08:29:36 -0800 (PST) (envelope-from bmah@freebsd.org) X-Authentication-Warning: tomcat.kitchenlab.org: bmah set sender to bmah@freebsd.org using -f Date: Sat, 20 Jan 2007 08:29:36 -0800 From: "Bruce A. Mah" To: freebsd-stable@freebsd.org, freebsd-net@freebsd.org Message-ID: <20070120162936.GA18104@tomcat.kitchenlab.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: jhay@freebsd.org, bmah@freebsd.org Subject: IPv6 over gif(4) broken in 6.2-RELEASE? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 16:29:37 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm observing a problem with IPv6 over gif(4) tunnels on 6.2-RELEASE and recent 6-STABLE, namely that I can't seem to be able to pass traffic over them. Essentially, when I configure a gif interface like this: # ifconfig gif0 inet6 aaaa:bbbb:cccc:dddd::1 aaaa:bbbb:cccc:dddd::2 prefixl= en 128 the interface should add a host route to aaaa:bbbb:cccc:dddd::2 through gif0. This is necessary to be able to pass traffic over the tunnel, particularly since the source and destination addresses of the link don't need to have any relationship to each other. However, this route doesn't get installed on recent 6-STABLE. Therefore there is no way to get an IPv6 packet to the other end of the tunnel because there's no route for the destination. The most obvious symptom is that I try to ping the other tunnel endpoint and get: ping6: UDP connect: No route to host I know this worked on RELENG_6 as of June 2006; my home firewall has been running this code for months without a hitch. It doesn't work in 6.2-RC2 or 6.2-RELEASE (fresh CD installs on i386, GENERIC kernels), or this week's RELENG_6 (nanobsd on i386). I somewhat suspect revs. 1.48.2.15 and 1.48.2.14 to src/sys/netinet/nd6.c. If I locally revert these two changes (see diff below), IPv6 over gif(4) works again. There's another workaround for people stuck in this situation and who aren't in a position to try this diff. That is to manually install the host route like this: # route add -host -inet6 aaaa:bbbb:cccc:dddd::2 -interface gif0 -nostatic -= llinfo Comments? Bruce. Index: nd6.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/netinet6/nd6.c,v retrieving revision 1.48.2.16 diff -u -r1.48.2.16 nd6.c --- nd6.c 29 Nov 2006 14:00:29 -0000 1.48.2.16 +++ nd6.c 20 Jan 2007 16:15:28 -0000 @@ -1316,7 +1316,7 @@ callout_init(&ln->ln_timer_ch, 0); =20 /* this is required for "ndp" command. - shin */ - if (req =3D=3D RTM_ADD && (rt->rt_flags & RTF_STATIC)) { + if (req =3D=3D RTM_ADD) { /* * gate should have some valid AF_LINK entry, * and ln->ln_expire should have some lifetime --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFskNu2MoxcVugUsMRAkWFAKDjjSFOSFxmHHAI86l/EJtpCTuTxgCg7zBs Tfqe3SLBrdpKVKw0qwjTuRE= =Mbvj -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o-- From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 17:30:15 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6F0B16A405; Sat, 20 Jan 2007 17:30:14 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.freebsd.org (Postfix) with ESMTP id 9960E13C442; Sat, 20 Jan 2007 17:30:14 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from [64.142.31.109] (phantom.kitchenlab.org [64.142.31.109]) (authenticated bits=0) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l0KHUEbN015277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jan 2007 09:30:14 -0800 Message-ID: <45B251A5.4000209@freebsd.org> Date: Sat, 20 Jan 2007 09:30:13 -0800 From: "Bruce A. Mah" User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Hiroki Sato References: <20070120162936.GA18104@tomcat.kitchenlab.org> <20070121.020741.59649277.hrs@allbsd.org> In-Reply-To: <20070121.020741.59649277.hrs@allbsd.org> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=5ba052c3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig782DBF7ACA3F756BAB68671B" Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org, jhay@freebsd.org Subject: Re: IPv6 over gif(4) broken in 6.2-RELEASE? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 17:30:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig782DBF7ACA3F756BAB68671B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If memory serves me right, Hiroki Sato wrote: > "Bruce A. Mah" wrote > in <20070120162936.GA18104@tomcat.kitchenlab.org>: >=20 > bm> I'm observing a problem with IPv6 over gif(4) tunnels on 6.2-RELEAS= E > bm> and recent 6-STABLE, namely that I can't seem to be able to pass > bm> traffic over them. [snip] > bm> I know this worked on RELENG_6 as of June 2006; my home firewall ha= s > bm> been running this code for months without a hitch. It doesn't work= in > bm> 6.2-RC2 or 6.2-RELEASE (fresh CD installs on i386, GENERIC kernels)= , > bm> or this week's RELENG_6 (nanobsd on i386). > bm> > bm> I somewhat suspect revs. 1.48.2.15 and 1.48.2.14 to > bm> src/sys/netinet/nd6.c. If I locally revert these two changes (see > bm> diff below), IPv6 over gif(4) works again. [snip] > I remember Dimitry Andric reported the same problem on -stable on 30 > Dec, and after he reverted rev.1.48.2.16 it worked fine again. Do > you have the symptom even on 6.2-RELEASE? Since RELENG_6_2_0_RELEASE > did not have the change, I thought there was no problem. >=20 > I will try to reproduce it on my box anyway... Yep, even on 6.2-RELEASE. I did a setup with a couple of machines yesterday (6.2-RC2 and 6.2-RELEASE) that demonstrated the problem. On my 6-STABLE system (which appears to be working fine), I still have the change from 1.48.2.16, I only backed out .15 and .14. I didn't try my diff on the 6.2-RC2 and 6.2-RELEASE machines yet. Hmmm...I was looking for that bug report before, but I couldn't find it. It's not clear to me how 1.48.2.16 is involved...hmmm... Thanks, Bruce. --------------enig782DBF7ACA3F756BAB68671B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFslGm2MoxcVugUsMRAhgOAKCPhPCDKGKqU7lj/ll9PrMje7AxnwCg9Kq9 N/Ubk47lKs7lzSdVOxdXOJY= =qYev -----END PGP SIGNATURE----- --------------enig782DBF7ACA3F756BAB68671B-- From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 17:45:08 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6B8B16A413; Sat, 20 Jan 2007 17:45:08 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (vlsi00.si.noda.tus.ac.jp [133.31.130.32]) by mx1.freebsd.org (Postfix) with ESMTP id 62BA913C480; Sat, 20 Jan 2007 17:45:08 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p3089-ipbf506funabasi.chiba.ocn.ne.jp [124.100.58.89]) (authenticated bits=128) by mail.allbsd.org (8.13.1/8.13.4) with ESMTP id l0KH82JZ039751; Sun, 21 Jan 2007 02:08:14 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (alph.allbsd.org [192.168.0.10]) (authenticated bits=0) by delta.allbsd.org (8.13.4/8.13.4) with ESMTP id l0KH7ijY057337; Sun, 21 Jan 2007 02:07:45 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sun, 21 Jan 2007 02:07:41 +0900 (JST) Message-Id: <20070121.020741.59649277.hrs@allbsd.org> To: bmah@FreeBSD.org From: Hiroki Sato In-Reply-To: <20070120162936.GA18104@tomcat.kitchenlab.org> References: <20070120162936.GA18104@tomcat.kitchenlab.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 5.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Sun_Jan_21_02_07_41_2007_727)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.allbsd.org [133.31.130.32]); Sun, 21 Jan 2007 02:08:15 +0900 (JST) Cc: freebsd-net@FreeBSD.org, freebsd-stable@FreeBSD.org, jhay@FreeBSD.org Subject: Re: IPv6 over gif(4) broken in 6.2-RELEASE? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 17:45:09 -0000 ----Security_Multipart(Sun_Jan_21_02_07_41_2007_727)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Bruce A. Mah" wrote in <20070120162936.GA18104@tomcat.kitchenlab.org>: bm> I'm observing a problem with IPv6 over gif(4) tunnels on 6.2-RELEASE bm> and recent 6-STABLE, namely that I can't seem to be able to pass bm> traffic over them. bm> bm> Essentially, when I configure a gif interface like this: bm> bm> # ifconfig gif0 inet6 aaaa:bbbb:cccc:dddd::1 aaaa:bbbb:cccc:dddd::2 prefixlen 128 bm> bm> the interface should add a host route to aaaa:bbbb:cccc:dddd::2 bm> through gif0. This is necessary to be able to pass traffic over the bm> tunnel, particularly since the source and destination addresses of the bm> link don't need to have any relationship to each other. bm> bm> However, this route doesn't get installed on recent 6-STABLE. bm> Therefore there is no way to get an IPv6 packet to the other end of bm> the tunnel because there's no route for the destination. The most bm> obvious symptom is that I try to ping the other tunnel endpoint and bm> get: bm> bm> ping6: UDP connect: No route to host bm> bm> I know this worked on RELENG_6 as of June 2006; my home firewall has bm> been running this code for months without a hitch. It doesn't work in bm> 6.2-RC2 or 6.2-RELEASE (fresh CD installs on i386, GENERIC kernels), bm> or this week's RELENG_6 (nanobsd on i386). bm> bm> I somewhat suspect revs. 1.48.2.15 and 1.48.2.14 to bm> src/sys/netinet/nd6.c. If I locally revert these two changes (see bm> diff below), IPv6 over gif(4) works again. bm> bm> There's another workaround for people stuck in this situation and who bm> aren't in a position to try this diff. That is to manually install bm> the host route like this: bm> bm> # route add -host -inet6 aaaa:bbbb:cccc:dddd::2 -interface gif0 -nostatic -llinfo bm> bm> Comments? I remember Dimitry Andric reported the same problem on -stable on 30 Dec, and after he reverted rev.1.48.2.16 it worked fine again. Do you have the symptom even on 6.2-RELEASE? Since RELENG_6_2_0_RELEASE did not have the change, I thought there was no problem. I will try to reproduce it on my box anyway... -- | Hiroki SATO ----Security_Multipart(Sun_Jan_21_02_07_41_2007_727)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBFskxdTyzT2CeTzy0RAn2QAJ45Sd5OYGBETxENyUXj/Ax2blKshwCghGtA lDubmL3WryAv3NBDxUNoxnI= =i5Ij -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Jan_21_02_07_41_2007_727)---- From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 19:40:12 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2B6816A401 for ; Sat, 20 Jan 2007 19:40:12 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from gw.sandvine.com (sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id 931A813C461 for ; Sat, 20 Jan 2007 19:40:10 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from mailserver.sandvine.com ([192.168.1.10]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 20 Jan 2007 14:28:08 -0500 Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by mailserver.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 20 Jan 2007 14:28:07 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id BD5B011706; Sat, 20 Jan 2007 14:28:07 -0500 (EST) Date: Sat, 20 Jan 2007 14:28:07 -0500 From: Ed Maste To: freebsd-net@freebsd.org Message-ID: <20070120192807.GA1326@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 20 Jan 2007 19:28:08.0075 (UTC) FILETIME=[1D48C5B0:01C73CC9] Subject: inet_pton and oddly-formatted addresses X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 19:40:13 -0000 It turns out an application at work is passing an IP address to inet_pton that is formatted slightly strangely; it ends up being something of the form 1.002.3.4. In 4.x inet_pton reports this as valid and returns 1.2.3.4. (I also checked that it's just ignoring the leading zeros, not parsing the octet as octal.) On my 5.x and 6.x machines, inet_pton rejects this string as invalid. I discussed this briefly with bz@, who pointed out two relevant RFCs. RFC 3493 has this to say: The inet_pton() function shall convert an address in its standard text presentation form into its numeric binary form. ... It shall return 0 if the input is not a valid IPv4 dotted-decimal string... The claim can easily be made that 1.002.3.4 is not "standard text presentation form." On the other hand, rfc 820 implies that 1.002.3.4 is a valid dotted decimal form: One commonly used notation for internet host addresses divides the 32-bit address into four 8-bit fields and specifies the value of each field as a decimal number with the fields separated by periods. This is called the "dotted decimal" notation. For example, the internet address of ISIF in dotted decimal is 010.002.000.052, or 10.2.0.52. I think an address like 1.002.3.4 is bizarre, but is our inet_pton incorrect in rejecting it? -ed From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 21:04:03 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67A5916A400 for ; Sat, 20 Jan 2007 21:04:03 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.freebsd.org (Postfix) with ESMTP id 05FBD13C45E for ; Sat, 20 Jan 2007 21:04:02 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:JGEg7IYwLtiPzqXEU3bW9RviJHMSbWWKmtP2jYcv3Metq7w5UgCBv3aVQjkCPGtV@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id l0KKRiuj063007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Jan 2007 05:27:45 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 21 Jan 2007 05:27:43 +0900 Message-ID: From: Hajimu UMEMOTO To: Ed Maste In-Reply-To: <20070120192807.GA1326@sandvine.com> References: <20070120192807.GA1326@sandvine.com> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 21 Jan 2007 05:27:45 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on ameno.mahoroba.org Cc: freebsd-net@freebsd.org Subject: Re: inet_pton and oddly-formatted addresses X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 21:04:03 -0000 Hi, >>>>> On Sat, 20 Jan 2007 14:28:07 -0500 >>>>> Ed Maste said: emaste> I think an address like 1.002.3.4 is bizarre, but is our inet_pton incorrect emaste> in rejecting it? The change was taken from BIND9. The following is from BIND9's CHANGES: 935. [bug] inet_pton failed to reject leading zeros. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 21:24:46 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C6CF16A405 for ; Sat, 20 Jan 2007 21:24:46 +0000 (UTC) (envelope-from wishmaster@velnet.ru) Received: from mail.velnet.ru (mail.velnet.ru [88.210.53.179]) by mx1.freebsd.org (Postfix) with ESMTP id EE57B13C45E for ; Sat, 20 Jan 2007 21:24:45 +0000 (UTC) (envelope-from wishmaster@velnet.ru) Received: from [213.141.131.138] (helo=localhost) by mail.velnet.ru with esmtp (Exim 4.30; FreeBSD) id 1H8NAB-000I3r-MP for freebsd-net@freebsd.org; Sat, 20 Jan 2007 23:50:11 +0300 Date: Sat, 20 Jan 2007 23:42:57 +0300 From: Wishmaster X-Mailer: The Bat! (v2.12.00) X-Priority: 3 (Normal) Message-ID: <1458229821.20070120234257@velnet.ru> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: reproducible watchdog timeout in bge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Wishmaster List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 21:24:46 -0000 Hi, http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/92090 -- Best regards, Wishmaster mailto:wishmaster@velnet.ru From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 21:54:39 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5CF016A400 for ; Sat, 20 Jan 2007 21:54:39 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 9F33E13C441 for ; Sat, 20 Jan 2007 21:54:39 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 87547EB7192; Sun, 21 Jan 2007 05:54:38 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id fRqssqXhCKUQ; Sun, 21 Jan 2007 05:54:29 +0800 (CST) Received: from [192.168.1.32] (unknown [221.216.129.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id A9A01EB120E; Sun, 21 Jan 2007 05:54:29 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=c0Pk8sd9/ptlSDn7KmVdrl1fjggMjNkIhiU0a9TavWUCLHx275WrdIU3Ih5f50T/a mRdrrrWNziTQDAj+wW9yA== Message-ID: <45B28F37.7040100@delphij.net> Date: Sun, 21 Jan 2007 05:52:55 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Wishmaster References: <1458229821.20070120234257@velnet.ru> In-Reply-To: <1458229821.20070120234257@velnet.ru> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig2A4AFB2B3EE49612ED96C417" Cc: freebsd-net@freebsd.org Subject: Re: reproducible watchdog timeout in bge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 21:54:40 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2A4AFB2B3EE49612ED96C417 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Wishmaster wrote: > Hi, >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/92090 Have you tried this one? http://people.freebsd.org/~delphij/misc/patch-bge-releng62 Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig2A4AFB2B3EE49612ED96C417 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFso83OfuToMruuMARA6vpAJsGnkakKr/vmZxwsPvC60FiTlixfQCdGYvk TCOvE8ZH7NuNHOD3IkWOtbg= =Wf+U -----END PGP SIGNATURE----- --------------enig2A4AFB2B3EE49612ED96C417-- From owner-freebsd-net@FreeBSD.ORG Sat Jan 20 22:13:59 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0FDD16A41A; Sat, 20 Jan 2007 22:13:59 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 771B013C4D9; Sat, 20 Jan 2007 22:13:59 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 7D9391FFE79; Sat, 20 Jan 2007 22:43:02 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id 4B1261FFE78; Sat, 20 Jan 2007 22:42:57 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 16BBD444AFE; Sat, 20 Jan 2007 21:42:44 +0000 (UTC) Date: Sat, 20 Jan 2007 21:42:44 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Hajimu UMEMOTO In-Reply-To: Message-ID: <20070120214052.U82671@maildrop.int.zabbadoz.net> References: <20070120192807.GA1326@sandvine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de Cc: freebsd-net@freebsd.org, Ed Maste Subject: Re: inet_pton and oddly-formatted addresses X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 22:13:59 -0000 On Sun, 21 Jan 2007, Hajimu UMEMOTO wrote: > Hi, > >>>>>> On Sat, 20 Jan 2007 14:28:07 -0500 >>>>>> Ed Maste said: > > emaste> I think an address like 1.002.3.4 is bizarre, but is our inet_pton incorrect > emaste> in rejecting it? > > The change was taken from BIND9. The following is from BIND9's > CHANGES: > > 935. [bug] inet_pton failed to reject leading zeros. well, maybe they were wrong? How does one get in contact with their bugs database these days? Is comp.protocols.dns.bind still a good place to discuss these things? -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT