From owner-freebsd-net Sun Nov 21 5:20:14 1999 Delivered-To: freebsd-net@freebsd.org Received: from smtp02.wxs.nl (smtp02.wxs.nl [195.121.6.60]) by hub.freebsd.org (Postfix) with ESMTP id 6A6AB1519E; Sun, 21 Nov 1999 05:20:04 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.196.130]) by smtp02.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA48D9; Sun, 21 Nov 1999 14:19:58 +0100 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id OAA48986; Sun, 21 Nov 1999 14:19:51 +0100 (CET) (envelope-from asmodai) Date: Sun, 21 Nov 1999 14:19:50 +0100 From: Jeroen Ruigrok/Asmodai To: Assar Westerlund Cc: net@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: Patches for socket.h Message-ID: <19991121141950.F48139@daemon.ninth-circle.org> References: <19991120213713.N41154@daemon.ninth-circle.org> <5l903sn2e8.fsf@foo.sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <5l903sn2e8.fsf@foo.sics.se> Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [19991121 04:00], Assar Westerlund (assar@sics.se) wrote: >Jeroen Ruigrok/Asmodai writes: > >> One caveat for now is the sa_family_t type, which would be the type for >> sa_family in the sockaddr struct. > >typedef u_char sa_family_t or is it more complicated than that? Sorry for not correctly answering it last night. No, that's not it. According to SUSv2: The header defines the unsigned integral type sa_family_t. So there will be a typedef unsigned int sa_family_t; and not of u_char. Wrt socklen_t, the spec wants it to be at least 32 bits in size, so I could choose it to be u_int32_t or unsigned int, I am still somewhat in doubt what to prefer. For now I settled on POSIX compliant types. See http://home.wxs.nl/~asmodai/socket.patch since it grew a bit in size and didn't feel like spamming the list with it. The coming extensions to this patch will include updates manual pages and more clearifications and consistency clean-ups. Thanks for testing. Please let me know if something borks, I made world and kernel a few times and it works here, but I can't test everything. ssh and NFS still work here. -- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl The BSD Programmer's Documentation Project Network/Security Specialist BSD: Technical excellence at its best Learn e-mail netiquette: http://www.lemis.com/email.html Once sent from the Golden Hall... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 7: 0:19 1999 Delivered-To: freebsd-net@freebsd.org Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 769A214C8B; Sun, 21 Nov 1999 06:59:51 -0800 (PST) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost [127.0.0.1]) by hub.freebsd.org (8.9.3/8.9.3) with ESMTP id JAA33586; Sun, 21 Nov 1999 09:55:13 -0500 (EST) (envelope-from green@FreeBSD.org) Date: Sun, 21 Nov 1999 09:55:13 -0500 (EST) From: Brian Fundakowski Feldman X-Sender: green@green.myip.org To: Jeroen Ruigrok/Asmodai Cc: Assar Westerlund , net@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: Patches for socket.h In-Reply-To: <19991121141950.F48139@daemon.ninth-circle.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 21 Nov 1999, Jeroen Ruigrok/Asmodai wrote: > According to SUSv2: > > The header defines the unsigned integral type > sa_family_t. > > So there will be a typedef unsigned int sa_family_t; and not of u_char. No, typedef u_char sa_family_t; is just fine. An "unsigned integral type" is an unsigned integral type, not an unsigned int. Integral types include enum, char, short, int, long, and long long. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 7:25: 4 1999 Delivered-To: freebsd-net@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8434514D0E; Sun, 21 Nov 1999 07:24:56 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from p100-ts5.syd2.zeta.org.au (beefcake.zeta.org.au [203.26.10.12]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id CAA15065; Mon, 22 Nov 1999 02:31:58 +1100 Date: Mon, 22 Nov 1999 02:24:32 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Jeroen Ruigrok/Asmodai Cc: Assar Westerlund , net@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: Patches for socket.h In-Reply-To: <19991121141950.F48139@daemon.ninth-circle.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 21 Nov 1999, Jeroen Ruigrok/Asmodai wrote: > -On [19991121 04:00], Assar Westerlund (assar@sics.se) wrote: > >Jeroen Ruigrok/Asmodai writes: > > > >> One caveat for now is the sa_family_t type, which would be the type for > >> sa_family in the sockaddr struct. > > > >typedef u_char sa_family_t or is it more complicated than that? > > Sorry for not correctly answering it last night. > > No, that's not it. > > According to SUSv2: > > The header defines the unsigned integral type > sa_family_t. > > So there will be a typedef unsigned int sa_family_t; and not of u_char. integral != int. u_char is unsigned integral. `unsigned int' is consintently (mis)spelled `u_int' in . > Wrt socklen_t, the spec wants it to be at least 32 bits in size, so I > could choose it to be u_int32_t or unsigned int, I am still somewhat in > doubt what to prefer. For now I settled on POSIX compliant types. It has to be u_int32_t or u_long to meet the spec. u_int is only guaranteed to be 16 bits by POSIX and/or ISO C. The spec requires changing int to an unsigned integral type in many places. This may cause sign extension bugs. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 8:41:53 1999 Delivered-To: freebsd-net@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id EBD5114F4B; Sun, 21 Nov 1999 08:41:47 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.196.130]) by smtp04.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA4822; Sun, 21 Nov 1999 17:02:23 +0100 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id RAA49573; Sun, 21 Nov 1999 17:02:16 +0100 (CET) (envelope-from asmodai) Date: Sun, 21 Nov 1999 17:02:15 +0100 From: Jeroen Ruigrok/Asmodai To: net@freebsd.org Cc: peter@freebsd.org Subject: protocols.diff Message-ID: <19991121170215.B49201@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" X-Mailer: Mutt 1.0pre3i Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Hi, a fast in-between patch. I am still wondering about ISIS over IPv4's service name, I commented it out for now. -- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl The BSD Programmer's Documentation Project Network/Security Specialist BSD: Technical excellence at its best Learn e-mail netiquette: http://www.lemis.com/email.html United we stand, divided we fall. --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="protocols.diff" Index: protocols =================================================================== RCS file: /work/FreeBSD/ncvs/src/etc/protocols,v retrieving revision 1.13 diff -u -u -r1.13 protocols --- protocols 1999/08/27 23:23:43 1.13 +++ protocols 1999/11/21 15:50:29 @@ -129,6 +129,14 @@ srp 119 SRP # SpectraLink Radio Protocol uti 120 UTI # UTI smp 121 SMP # Simple Message Protocol -# 122-254 # Unassigned +sm 122 SM # SM +ptp 123 PTP # Performance Transparency Protocol +# 124 ISIS over IPv4 +fire 125 FIRE # FIRE +crtp 126 CRTP # Combat Radio Transport Protocol +crudp 127 CRUDP # Combat Radio User Datagram +sscopmce 128 SSCOPMCE # +iplt 129 IPLT # IPLT +# 130-254 # Unassigned divert 254 DIVERT # Divert pseudo-protocol # 255 # Reserved --W/nzBZO5zC0uMSeA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 9:38:52 1999 Delivered-To: freebsd-net@freebsd.org Received: from eh.est.is (eh.est.is [194.144.208.34]) by hub.freebsd.org (Postfix) with ESMTP id 5549814D34 for ; Sun, 21 Nov 1999 09:38:47 -0800 (PST) (envelope-from totii@est.is) Received: from toti.est.is (root@wanestkrona.est.is [194.144.208.17] (may be forged)) by eh.est.is (8.8.8/8.8.8) with ESMTP id RAA21306 for ; Sun, 21 Nov 1999 17:38:45 GMT (envelope-from totii@est.is) Received: from est.is (asus.est.is [194.144.208.242]) by toti.est.is (8.9.3/8.9.1) with ESMTP id RAA33705 for ; Sun, 21 Nov 1999 17:38:44 GMT (envelope-from totii@est.is) Message-ID: <38382E01.2A218720@est.is> Date: Sun, 21 Nov 1999 17:38:09 +0000 From: Thordur Ivarsson Reply-To: thivars@est.is X-Mailer: Mozilla 4.08 [en] (Win98; I) MIME-Version: 1.0 To: "freebsd-net@FreeBSD.ORG" Subject: Client restriction with "MAC ADDRESS" ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi there, Do FreeBSD allow me to control traffic from client checked from the MAC address. My problem is that everyone is allowed to connect to the network it self but I need to filter users at the boarder firewall. I will give any user IP number from DHCP server but if someone fakes IP number then I have problems. Some users buy the internet connection then they are given another IP number, and passed over the boarder firewall. But to be sure I would like to check if their MAC address matches the IP. Any solution? TIA Thordur Ivarsson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 13:38:18 1999 Delivered-To: freebsd-net@freebsd.org Received: from smtp05.wxs.nl (smtp05.wxs.nl [195.121.6.57]) by hub.freebsd.org (Postfix) with ESMTP id 5800F14E97; Sun, 21 Nov 1999 13:38:10 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.197.25]) by smtp05.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA6263; Sun, 21 Nov 1999 22:38:08 +0100 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id WAA02649; Sun, 21 Nov 1999 22:37:56 +0100 (CET) (envelope-from asmodai) Date: Sun, 21 Nov 1999 22:37:55 +0100 From: Jeroen Ruigrok/Asmodai To: Bruce Evans Cc: Assar Westerlund , net@FreeBSD.org, cvs-committers@FreeBSD.org, green@freebsd.org, phk@freebsd.org Subject: Re: Patches for socket.h Message-ID: <19991121223755.A2447@daemon.ninth-circle.org> References: <19991121141950.F48139@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [19991121 18:09], Bruce Evans (bde@zeta.org.au) wrote: >On Sun, 21 Nov 1999, Jeroen Ruigrok/Asmodai wrote: >> -On [19991121 04:00], Assar Westerlund (assar@sics.se) wrote: >> >Jeroen Ruigrok/Asmodai writes: >> > >> >> One caveat for now is the sa_family_t type, which would be the type for >> >> sa_family in the sockaddr struct. >> > >> >typedef u_char sa_family_t or is it more complicated than that? >> >> According to SUSv2: >> >> The header defines the unsigned integral type >> sa_family_t. >> >> So there will be a typedef unsigned int sa_family_t; and not of u_char. > >integral != int. u_char is unsigned integral. > >`unsigned int' is consintently (mis)spelled `u_int' in . Bwerk. Here I showed my noviceness about the intergral meaning. Sorrt for doubting you Assar. Bruce, you mean those u_int whould be a type of unsigned int then? I am not quite understanding what you just said here. >> Wrt socklen_t, the spec wants it to be at least 32 bits in size, so I >> could choose it to be u_int32_t or unsigned int, I am still somewhat in >> doubt what to prefer. For now I settled on POSIX compliant types. > >It has to be u_int32_t or u_long to meet the spec. u_int is only guaranteed >to be 16 bits by POSIX and/or ISO C. > >The spec requires changing int to an unsigned integral type in many places. >This may cause sign extension bugs. http://home.wxs.nl/~asmodai/socket.patch or http://lucifer.bart.nl/~asmodai/socket.patch I tested this patch against a CURRENT cvsupped thursday. I made world, made my own kernel and LINT, no problems whatsoever. Comments welcome, -- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl The BSD Programmer's Documentation Project Network/Security Specialist BSD: Technical excellence at its best Learn e-mail netiquette: http://www.lemis.com/email.html Embrace Love, be godlike... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 15:59:58 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.bsb.nutecnet.com.br (mail.bsb.nutecnet.com.br [200.252.253.5]) by hub.freebsd.org (Postfix) with ESMTP id 5E4F814E64 for ; Sun, 21 Nov 1999 15:59:50 -0800 (PST) (envelope-from visi0n@aux-tech.org) Received: from variola.chinatown.org (dl8020-bsb.bsb.nutecnet.com.br [200.252.209.20]) by mail.bsb.nutecnet.com.br (8.8.5/SCA-6.6) with SMTP id RAA03472; Sun, 21 Nov 1999 17:01:39 -0200 (BRV) Date: Sun, 21 Nov 1999 16:59:49 +0000 ( ) From: visi0n X-Sender: visi0n@variola.chinatown.org To: thivars@est.is Cc: "freebsd-net@FreeBSD.ORG" Subject: Re: Client restriction with "MAC ADDRESS" ? In-Reply-To: <38382E01.2A218720@est.is> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 21 Nov 1999, Thordur Ivarsson wrote: > Hi there, > > Do FreeBSD allow me to control traffic from client checked from the MAC > address. > > My problem is that everyone is allowed to connect to the network it self > but I need to filter users at the boarder firewall. I will give any user > IP number from DHCP server but if someone fakes IP number then I have > problems. > > Some users buy the internet connection then they are given another IP > number, and passed over the boarder firewall. But to be sure I would > like to check if their MAC address matches the IP. > > Any solution? > > TIA > > Thordur Ivarsson > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > If these clients are connected in the same net segment they can forge mac addr too. =============================================================================== visi0n AUX Technologies [www.aux-tech.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 16:10:41 1999 Delivered-To: freebsd-net@freebsd.org Received: from proxy2.ba.best.com (proxy2.ba.best.com [206.184.139.14]) by hub.freebsd.org (Postfix) with ESMTP id 7841514BE4 for ; Sun, 21 Nov 1999 16:10:38 -0800 (PST) (envelope-from mda@discerning.com) Received: from MDAXKE (cm-24-142-61-115.cableco-op.ispchannel.com [24.142.61.115]) by proxy2.ba.best.com (8.9.3/8.9.2/best.out) with ESMTP id QAA12442 for ; Sun, 21 Nov 1999 16:09:23 -0800 (PST) Date: Sun, 21 Nov 1999 16:08:51 -0800 From: "Mark D. Anderson" To: freebsd-net@freebsd.org Subject: SYN flood and freebsd? Message-ID: <2602693885.943200531@MDAXKE> X-Mailer: Mulberry (Win32) [2.0.0a6, s/n U-301276] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (I sent the following query to freebsd-security a week ago, and got no answers, presumably because that lists concentrates on userland. Perhaps someone here can answer.) i've searched around deja and freebsd.org and come up wanting (email archives show rarely show resolutions...). what is the current status in stable and latest regarding defense against SYN flood, and how is it implemented? i found some discussion regarding the inadequacy of the "SYN cookie" defense added to linux -- i couldn't make out whether that fix has actually been withdrawn from linux or not. i also didn't find an explanation of exactly what was bad about it -- something about firewalls or NAT. see for example: http://x41.deja.com/getdoc.xp?AN=491586304&CONTEXT=942635225.1891434518&hitnum=26 and openbsd has apparently settled on a random dropping of old half-open connections. appreciate some clarification on this, as well as pointers to where answers to things like this might be found, for those of us who don't want to run grep through kernel sources. -mda To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 17:24: 3 1999 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 9C8E014F50 for ; Sun, 21 Nov 1999 17:24:00 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id UAA78187; Sun, 21 Nov 1999 20:23:55 -0500 (EST) (envelope-from wollman) Date: Sun, 21 Nov 1999 20:23:55 -0500 (EST) From: Garrett Wollman Message-Id: <199911220123.UAA78187@khavrinen.lcs.mit.edu> To: Bruce Evans Cc: net@FreeBSD.org Subject: Re: Patches for socket.h In-Reply-To: References: <19991121141950.F48139@daemon.ninth-circle.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > It has to be u_int32_t or u_long to meet the spec. u_int is only guaranteed > to be 16 bits by POSIX and/or ISO C. u_int is guaranteed to be at least 32 bits by the FreeBSD API, which is the relevant reference in these mailing-lists. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 21 23:17:16 1999 Delivered-To: freebsd-net@freebsd.org Received: from its-sby.edu (ns2.its-sby.edu [202.154.63.3]) by hub.freebsd.org (Postfix) with ESMTP id 3A4EF1588D for ; Sun, 21 Nov 1999 23:16:39 -0800 (PST) (envelope-from roy@its-sby.edu) Received: from localhost (roy@localhost) by its-sby.edu (8.8.8/8.8.8) with SMTP id HAA19708 for ; Mon, 22 Nov 1999 07:33:41 GMT (envelope-from roy@its-sby.edu) Date: Mon, 22 Nov 1999 14:33:41 +0700 (JAVT) From: "Royyana M. Ijtihadie" To: freebsd-net@freebsd.org Subject: domex SCSI card Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hello all... i have a scsi card DOMEX 3194u where i can get the driver for that card ?? thanks.. /* Roy */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 9: 7:17 1999 Delivered-To: freebsd-net@freebsd.org Received: from daemon9.cameron.edu (daemon9.cameron.edu [164.58.116.140]) by hub.freebsd.org (Postfix) with ESMTP id F0AED14C0A for ; Mon, 22 Nov 1999 09:06:48 -0800 (PST) (envelope-from jbeley@daemon9.cameron.edu) Received: (from jbeley@localhost) by daemon9.cameron.edu (8.9.3/8.9.3) id KAA78773 for freebsd-net@freebsd.org; Mon, 22 Nov 1999 10:49:22 -0600 (CST) (envelope-from jbeley) Date: Mon, 22 Nov 1999 10:49:22 -0600 From: Jeff Beley To: freebsd-net@freebsd.org Subject: IPv6 Message-ID: <19991122104922.A78437@daemon9.cameron.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Does FreeBSD 3.3 have an implementation of ipv6? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 9:13:29 1999 Delivered-To: freebsd-net@freebsd.org Received: from mta2.rcsntx.swbell.net (mta2.rcsntx.swbell.net [151.164.30.26]) by hub.freebsd.org (Postfix) with ESMTP id CFF07152E1 for ; Mon, 22 Nov 1999 09:13:21 -0800 (PST) (envelope-from chris@holly.dyndns.org) Received: from holly.dyndns.org ([216.62.157.60]) by mta2.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8) with ESMTP id <0FLL00H67ZQH4Q@mta2.rcsntx.swbell.net> for freebsd-net@FreeBSD.ORG; Mon, 22 Nov 1999 11:11:05 -0600 (CST) Received: (from chris@localhost) by holly.dyndns.org (8.9.3/8.9.3) id LAA83331; Mon, 22 Nov 1999 11:11:59 -0600 (CST envelope-from chris) X-URL: http://www.FreeBSD.org/~chris/ Date: Mon, 22 Nov 1999 11:11:58 -0600 From: Chris Costello Subject: Re: IPv6 In-reply-to: <19991122104922.A78437@daemon9.cameron.edu> To: Jeff Beley Cc: freebsd-net@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <19991122111158.E78478@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i X-Operating-System: FreeBSD 4.0-CURRENT (i386) References: <19991122104922.A78437@daemon9.cameron.edu> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Nov 22, 1999, Jeff Beley wrote: > Does FreeBSD 3.3 have an implementation of ipv6? No, but 4.0-CURRENT (the development version that you probably _don't_ want to use on your production systems) does. -- |Chris Costello |Your password is pitifully obvious. `---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 10:31:28 1999 Delivered-To: freebsd-net@freebsd.org Received: from orthanc.ab.ca (orthanc.ab.ca [207.167.3.130]) by hub.freebsd.org (Postfix) with ESMTP id 3BA9815949 for ; Mon, 22 Nov 1999 10:31:16 -0800 (PST) (envelope-from lyndon@orthanc.ab.ca) Received: from orthanc.ab.ca (localhost.orthanc.ab.ca [127.0.0.1]) by orthanc.ab.ca (8.10.0.Beta6/8.10.0.Beta6) with ESMTP id dAMIUUQ79329; Mon, 22 Nov 1999 11:30:30 -0700 (MST) Message-Id: <199911221830.dAMIUUQ79329@orthanc.ab.ca> To: chris@calldei.com Cc: Jeff Beley , freebsd-net@FreeBSD.ORG Subject: Re: IPv6 In-reply-to: Your message of "Mon, 22 Nov 1999 11:11:58 CST." <19991122111158.E78478@holly.calldei.com> Date: Mon, 22 Nov 1999 11:30:29 -0700 From: Lyndon Nerenberg Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> "Chris" == Chris Costello writes: Chris> On Mon, Nov 22, 1999, Jeff Beley wrote: >> Does FreeBSD 3.3 have an implementation of ipv6? Chris> No, but 4.0-CURRENT (the development version that you Chris> probably _don't_ want to use on your production systems) Chris> does. -CURRENT can respond to local IPV6 pings ... not what I would call a complete stack :-) Check out www.kame.net for a patch kit that will add IPv6+IPSEC to your 3.3 source tree. --lyndon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 11:28:15 1999 Delivered-To: freebsd-net@freebsd.org Received: from eh.est.is (eh.est.is [194.144.208.34]) by hub.freebsd.org (Postfix) with ESMTP id 6547115031 for ; Mon, 22 Nov 1999 11:28:01 -0800 (PST) (envelope-from totii@est.is) Received: from toti.est.is (root@toti-mx.est.is [194.144.208.17]) by eh.est.is (8.8.8/8.8.8) with ESMTP id SAA11280; Mon, 22 Nov 1999 18:48:30 GMT (envelope-from totii@est.is) Received: from est.is (asus.est.is [194.144.208.242]) by toti.est.is (8.9.3/8.9.1) with ESMTP id SAA42277; Mon, 22 Nov 1999 18:48:27 GMT (envelope-from totii@est.is) Message-ID: <38398FF2.66B4514A@est.is> Date: Mon, 22 Nov 1999 18:48:18 +0000 From: Thordur Ivarsson Reply-To: thivars@est.is X-Mailer: Mozilla 4.08 [en] (Win98; I) MIME-Version: 1.0 To: visi0n Cc: thivars@est.is, "freebsd-net@FreeBSD.ORG" Subject: Re: Client restriction with "MAC ADDRESS" ? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org visi0n wrote: > > On Sun, 21 Nov 1999, Thordur Ivarsson wrote: > > > Hi there, > > > > Do FreeBSD allow me to control traffic from client checked from the MAC > > address. > > > > My problem is that everyone is allowed to connect to the network it self > > but I need to filter users at the boarder firewall. I will give any user > > IP number from DHCP server but if someone fakes IP number then I have > > problems. > > > > Some users buy the internet connection then they are given another IP > > number, and passed over the boarder firewall. But to be sure I would > > like to check if their MAC address matches the IP. > > > > Any solution? > > > > TIA > > > > Thordur Ivarsson > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-net" in the body of the message > > > If these clients are connected in the same net segment they can > forge mac addr too. If they do they must have information on what mac address is used by someone on the segment, and if that user uses the network at the same time I will get arp errors, that have been tried here. But can I filter traffic by MAC address? Thordur To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 16: 2:58 1999 Delivered-To: freebsd-net@freebsd.org Received: from ind.alcatel.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id D373814FF2; Mon, 22 Nov 1999 16:02:46 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com (mailhub [198.206.181.70]) by ind.alcatel.com (8.9.3+Sun/8.9.1 (ind.alcatel.com 3.0 [OUT])) with SMTP id PAA05330; Mon, 22 Nov 1999 15:59:07 -0800 (PST) X-Origination-Site: Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id PAA13991; Mon, 22 Nov 1999 15:59:06 -0800 Received: from softweyr.com (dyn0.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA15694; Mon, 22 Nov 99 15:58:57 PST Message-Id: <3839D8BF.3749AC5B@softweyr.com> Date: Mon, 22 Nov 1999 16:58:55 -0700 From: Wes Peters Reply-To: freebsd-questions@FreeBSD.ORG Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: "Royyana M. Ijtihadie" Cc: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: domex SCSI card References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Royyana M. Ijtihadie" wrote: > > hello all... > i have a scsi card DOMEX 3194u > where i can get the driver for that card ?? > thanks.. First of all, what does this have to do with networking on FreeBSD? I've directed your question to the freebsd-questions newsgroup, where you should have sent it in the first place. Second, they will be much better able to help you if you can provide some details about that a DOMEX 3194u card is. Does it have any identifiable chipsets on it? Anything that says Adaptec, Symbios, or NCR is a likely candidate. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 17: 9:20 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id C241414CE4 for ; Mon, 22 Nov 1999 17:09:17 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id RAA32432; Mon, 22 Nov 1999 17:08:04 -0800 (PST) Message-ID: <3839E8F3.446B9B3D@whistle.com> Date: Mon, 22 Nov 1999 17:08:03 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.3-RELEASE i386) MIME-Version: 1.0 To: spork Cc: "Louis A. Mamakos" , freebsd-net@FreeBSD.ORG Subject: Announce: PPPoE for -curent and -stable now standard. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Net type people. As the Header annunces, FreeBSD now has a full implementation of PPPoE in -current. -Stable has all the kernel and ppp parts but not yet the pppoed that lets it serve pppoe sessions (only needs MFC-ing) Thanks go particularly to Brian who got a "deep end of the pool" introduction to Netgraph. And who did as much to debug my hacky netgraph code as another person could be expected to put up with. I chose this (old) message to respond to as it touched on a few things.. spork wrote: > > This is from a company that sells win/mac/linux PPPoE implementations to > ISP's (I came here after browsing the linux source on Sympatico's > website). Seems like a decent list of links: > > http://www.nts.com/library/tlpppoe.html > > There's a bit of info from sympatico at: > > http://www.hse.sympatico.ca/en/community/download.htm > > Charles > Not that these are only partial implementations. I believe FreeBSD to be a complete implementation of the PPPoE RFC. We can both serve and request PPPoE sessions. > > On Fri, 1 Oct 1999, Louis A. Mamakos wrote: > > > > > Uh, as one of the folks responsible for driving PPPoE development, I can > > > assure that the last part of your remark wasn't one of the goals we had. > > > It was, in fact, time-to-market given the existing bridged-ethernet > > > capable hardware out there. It was also to support simultanous connections > > > to different service providers, and with different levels of service. Think > > > low-end, consumer user vs. work-at-home teleworkers. Why shouldn't they > > > be able to use the same ADSL pipe to support concurrent access to both > > > e.g., AOL for the kids (that you're paying for yourself) AND > > > higher-performance > > > access that your employer is paying for. It turns out that the main ISPs who have implemented it allow only ONE MAC address per DSL connection. If you change ethernet cards you need to wait for the old one to timeout (apparently a day or so) before the new one will work. Or maybe you can call the ISP and get them to flush the MAC cache entries. (yeah right.. "duh, sorry sir, I don't understand") This means that you cannot use the DSL line for > 1 machine unless you use the NAT feature of ppp of natd, and a second interface. (good for us, bad for windows :-) This suprises me as you suggested it was a goal of pppoe. > > > > > > > Is there anyone actively working on PPPoE for FreeBSD? I don't like the > > > > whole concept of wrapping so many frames inside each other, but it would > > > > be a shame if a bunch of folks with FBSD gateways for their home nets had > > > > to move to Win98 and its' ICS (Internet Connection Sharing). Blech. > > > > > > > > Could user/kernel ppp be modified? How does this work anyhow? Is there > > > > an ethernet frame type for PPPoE? How close do you have to get to the > > > > ethernet driver to send PPPoE frames? Can any existing PPP implementations > > > > easily handle a few megabits/sec on older hardware? > > > > > > We did a proof-of-concept implemention starting with the user-mode PPP > > > daemon and using BPF to put frames on and off the wire, with no kernel > > > changes. This happened to be done on a BSDI system, but that's really > > > not at all significant. There is such a userland program available, anyone who wants it can contact me as I have a copy. (for those poor NetBSD/OpenBSD/BSDI guys that don't have Netgraph :-) It has very poor performance but works. > > > > > > I observed once before that the Whistle netgraph stuff is an ideal > > > sort of solution for this type of problem where you're really concerned > > > about performance, and don't want to context switch into a user process > > > for each packet. > > > > I hope to start work on a netgraph/PPPoE module in the next day or so.. > > do you have any suggested reading? > > Well it took longer than expected as neither Brian nor I was working on it full time but I think everyone will be pleased by the result. (see the netgraph(4), netgraph(3) ng_pppoe(8) ppp(8) and pppoed(8) man pages for details). This will be improved even more when ppp learns to use netgraph to to ppp packet processing totally in the kernel. (we already have it working under mpd). This will result in NO kernel boundary crossings for ppp processing. Have a look at it and netgraph. Comments are welcome. Julian -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / On assignment | / \ julian@Whistle.com +------>x USA \ in a strange | ( OZ ) 110 Marsh dr. Foster City, CA \___ ___ | country ! +- X_.---._/ USA+(650) 577-7063 (wk) \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 17:32:42 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.snickers.org (snickers.org [216.126.90.2]) by hub.freebsd.org (Postfix) with ESMTP id E476D14A07 for ; Mon, 22 Nov 1999 17:32:37 -0800 (PST) (envelope-from josh@snickers.org) Received: by mail.snickers.org (Postfix, from userid 1037) id 92EFE3D19; Mon, 22 Nov 1999 20:32:36 -0500 (EST) Date: Mon, 22 Nov 1999 20:32:36 -0500 From: Josh Tiefenbach To: Brian Somers Cc: Josh Tiefenbach , Julian Elischer , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: PPPoE Redux. Message-ID: <19991122203236.A66907@snickers.org> References: <199911191726.RAA00312@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199911191726.RAA00312@hak.lan.Awfulhak.org> Organization: Hah Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Maybe not without a log file. I *suspect* you need to ``set cd 3'' > (or maybe higher). Currently, ppp polls the netgraph node every second > to see if it's received a SUCCESS message. It does this only for the > carrier detect timeout, which is 1 second by default. ``set cd'' > changes this. Success! This did it. I stuck a 'set cd 5' into ppp.conf, and now everything works like a charm. Thanks so much for the help, Julian and Brian. Its been great. Just as a side note, I'm seeing about 93kb/s over the interface. This is somewhat less than the ~104kb/s I saw with DHCP, but *way* higher than the ~30kb/s I saw with the windows client, and the speeds reported by some of the linux implementations. Great job guys. josh (deleriously happy. Can you tell? :) -- Malkovitch! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 18:20:34 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 77F8814C2F for ; Mon, 22 Nov 1999 18:20:29 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id SAA37283; Mon, 22 Nov 1999 18:20:15 -0800 (PST) Date: Mon, 22 Nov 1999 18:20:14 -0800 (PST) From: Julian Elischer To: "David J. Fiander" Cc: spork , "Louis A. Mamakos" , freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have done the following to get it going on 3.3-R Add the patches to socket.h and netisr.h (fetch from www cvs. one-line patches) or alternatively apply the 3.3 patch in ftp://ftp.whistle.com/pub/archie/netgraph get the following directories and contents from 3.3 stable: /usr/src/sys/netgraph /usr/src/sys/modules/netgraph /usr/src/usr.sbin/{ngctl,nghook,ppp} /uir/src/lib/libnetgraph /usr/src/sys/net/if_ethersubr.c <-- replace this file /usr/src/sys/conf/* <-- get netgraph parts (possibly just replace whole files) do this even if you got the patches above these are newer versions of the files. mkdir /usr/include/netgraph cp /sys/netgraph/*.h /usr/include/netgraph Add options NETGRAPH, NG_SOCKET, NG_PPPOE to your kernel compile kenrel recompile ppp cd /usr/src/usr.sbin/ppp; make -DNOI4B; make -DNOI4B install I'll try make a patch set that is all one step... On Mon, 22 Nov 1999, David J. Fiander wrote: > On Mon, 22 Nov 1999, Julian Elischer wrote: > > > Net type people. > > > > As the Header annunces, FreeBSD now has a full implementation of > > PPPoE in -current. -Stable has all the kernel and ppp parts but > > not yet the pppoed that lets it serve pppoe sessions (only needs > > MFC-ing) > > How much work would it be for us -release people? > > - David > > -- > David J. Fiander | What's past is prologue > Incipient Librarian | The Tempest -- Wm. Shakespeare > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 18:25:36 1999 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-49.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.177]) by hub.freebsd.org (Postfix) with ESMTP id 3032F14EDC for ; Mon, 22 Nov 1999 18:25:32 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA03503; Tue, 23 Nov 1999 01:58:41 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA08451; Tue, 23 Nov 1999 02:03:35 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199911230203.CAA08451@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Julian Elischer Cc: spork , "Louis A. Mamakos" , freebsd-net@FreeBSD.ORG, Archie Cobbs , Brian Somers , Poul-Henning Kamp , ppp/sync project Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message from Julian Elischer of "Mon, 22 Nov 1999 17:08:03 PST." <3839E8F3.446B9B3D@whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Nov 1999 02:03:34 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Net type people. > > As the Header annunces, FreeBSD now has a full implementation of > PPPoE in -current. -Stable has all the kernel and ppp parts but > not yet the pppoed that lets it serve pppoe sessions (only needs > MFC-ing) > > Thanks go particularly to Brian who got a "deep end > of the pool" introduction to Netgraph. And who did as much > to debug my hacky netgraph code as another person could be > expected to put up with. And thanks to you for being persistent and not giving up on trying to show me the light. [.....] > Well it took longer than expected as neither Brian nor I was working > on it full time but I think everyone will be pleased by the result. > (see the netgraph(4), netgraph(3) ng_pppoe(8) ppp(8) and pppoed(8) > man pages for details). > > This will be improved even more when ppp learns to use netgraph to > to ppp packet processing totally in the kernel. (we already have it > working under mpd). This will result in NO kernel boundary crossings > for ppp processing. To infinity and beyond !!!!! Just to flesh this out a bit, Archie Cobbs @ Whistle has done most of the groundwork here (ng_ppp, ng_async, ng_vjc). My ultimate aim is to figure out a way of turning code like ng_vjc and ng_async into something that can be preprocessed into a kernel source file, a kernel module and a ppp userland module (the first two are already there). Then the controlling code (usr.sbin/ppp/{link,physical}.c) can decide how it's going to `build' a link based on how much of it needs to be in userland (eg: ``set device !someprogram'') and how much of it can be forced into the kernel. Everyday devices such as Ethernet (PPPoE), ttys and ISDN devices (i4b) will be the first candidates. Poul-Henning (cc'd) is wholly responsible for being the first person to make me believe that it's really possible for me to do this, but the learning curve (me understanding anything under /sys) was a bit daunting - read the pppd code if you want to be scared away from the kernel for life ! Julian is responsible for bringing something pretty much standalone into the kernel (read: a finite thing that's possible to understand) and pushing me into wanting to make things work. Of course ppp(8) will probably never be complete - I've been working at it for 3 years now, and my TODO list is longer than it was before I started !!! > Have a look at it and netgraph. Comments are welcome. > > Julian > > > -- > +------------------------------------+ ______ _ __ > | __--_|\ Julian Elischer | \ U \/ / On assignment > | / \ julian@Whistle.com +------>x USA \ in a strange > | ( OZ ) 110 Marsh dr. Foster City, CA \___ ___ | country ! > +- X_.---._/ USA+(650) 577-7063 (wk) \_/ \\ > v -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 18:26:38 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 942BE14ED0 for ; Mon, 22 Nov 1999 18:26:36 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id SAA37569; Mon, 22 Nov 1999 18:26:14 -0800 (PST) Date: Mon, 22 Nov 1999 18:26:14 -0800 (PST) From: Julian Elischer To: Josh Tiefenbach Cc: Brian Somers , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: PPPoE Redux. In-Reply-To: <19991122203236.A66907@snickers.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org also make sure you turn off excsessive logging it can really slow it down. On Mon, 22 Nov 1999, Josh Tiefenbach wrote: > > Maybe not without a log file. I *suspect* you need to ``set cd 3'' > > (or maybe higher). Currently, ppp polls the netgraph node every second > > to see if it's received a SUCCESS message. It does this only for the > > carrier detect timeout, which is 1 second by default. ``set cd'' > > changes this. > > Success! > > This did it. I stuck a 'set cd 5' into ppp.conf, and now everything works like > a charm. > > Thanks so much for the help, Julian and Brian. Its been great. > > Just as a side note, I'm seeing about 93kb/s over the interface. This is > somewhat less than the ~104kb/s I saw with DHCP, but *way* higher than the > ~30kb/s I saw with the windows client, and the speeds reported by some of the > linux implementations. > > Great job guys. > > josh > (deleriously happy. Can you tell? :) > > -- > Malkovitch! > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 18:30: 9 1999 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-52.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.180]) by hub.freebsd.org (Postfix) with ESMTP id 4518A14FFC for ; Mon, 22 Nov 1999 18:30:05 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA03879; Tue, 23 Nov 1999 02:29:52 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA09120; Tue, 23 Nov 1999 02:34:47 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199911230234.CAA09120@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Josh Tiefenbach Cc: Brian Somers , Julian Elischer , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org, brian@hak.lan.Awfulhak.org Subject: Re: PPPoE Redux. In-Reply-To: Message from Josh Tiefenbach of "Mon, 22 Nov 1999 20:32:36 EST." <19991122203236.A66907@snickers.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Nov 1999 02:34:47 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Maybe not without a log file. I *suspect* you need to ``set cd 3'' > > (or maybe higher). Currently, ppp polls the netgraph node every second > > to see if it's received a SUCCESS message. It does this only for the > > carrier detect timeout, which is 1 second by default. ``set cd'' > > changes this. > > Success! > > This did it. I stuck a 'set cd 5' into ppp.conf, and now everything works like > a charm. > > Thanks so much for the help, Julian and Brian. Its been great. > > Just as a side note, I'm seeing about 93kb/s over the interface. This is > somewhat less than the ~104kb/s I saw with DHCP, but *way* higher than the > ~30kb/s I saw with the windows client, and the speeds reported by some of the > linux implementations. This is good to hear. Is there any compression involved in the win case (CCP or VJ) ? I would guess that the win stuff can use STAC/MPPC whereas ppp(8) can't :-( > Great job guys. > > josh > (deleriously happy. Can you tell? :) > > -- > Malkovitch! Cheers. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 19:20: 4 1999 Delivered-To: freebsd-net@freebsd.org Received: from hqsmtp.mks.com (hqsmtp.mks.com [198.73.192.3]) by hub.freebsd.org (Postfix) with ESMTP id B953514C23 for ; Mon, 22 Nov 1999 19:19:57 -0800 (PST) (envelope-from djfiande@julian.uwo.ca) Received: from hqntexch.mks.com (hqntexch.mks.com [1.0.0.105]) by hqsmtp.mks.com (Postfix) with ESMTP id 107D559007; Mon, 22 Nov 1999 22:14:16 -0500 (EST) Received: from p19.dialup.mks.com ([198.73.107.119]) by hqntexch.mks.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id W6LFZAT0; Mon, 22 Nov 1999 22:19:38 -0500 Date: Mon, 22 Nov 1999 22:18:19 -0500 (EST) From: "David J. Fiander" X-Sender: davidf@localhost.waterloo.on.ca To: Julian Elischer Cc: freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 22 Nov 1999, Julian Elischer wrote: > I have done the following to get it going on 3.3-R > [...] > > Add options NETGRAPH, NG_SOCKET, NG_PPPOE to your kernel > Everything's cool until I get here, but config reports "NG_PPPOE" and "NG_SOCKET" are unknown options, and they don't appear in the options file that I got from -stable. I'm guessing that you meant to say Add options ... NETGRAPH_SOCKET, NETGRAPH_PPPOE to your kernel > compile kernel This complains, in a few places, that "struct arpcom" does not have a member named "ac_ng". I copied sys/net/if_arp.h from -stable. I also need sys/net/netisr.h for NETISR_NETGRAPH sys/sys/socket.h for AF_NETGRAPH This redefines AF_MAX, so sys/mount.h has to be fixed. > recompile ppp > cd /usr/src/usr.sbin/ppp; make -DNOI4B; make -DNOI4B install This builds a ppp with '-DNONETGRAPH'. Is that right? I, of course, also have to build and install libnetgraph, ngctl, and nghook. - David -- David J. Fiander | What's past is prologue Incipient Librarian | - The Tempest, Wm. Shakespeare To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 20:17:22 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 2F74C14C09 for ; Mon, 22 Nov 1999 20:17:19 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id UAA43244; Mon, 22 Nov 1999 20:16:47 -0800 (PST) Date: Mon, 22 Nov 1999 20:16:47 -0800 (PST) From: Julian Elischer To: "David J. Fiander" Cc: freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org yes you are geting through it.. the -DNONETGRPAPH needs to be removed from the Makefile in ppp (brian just checked in a version with it removed.) we didn't want it compiling it till teh netgraph stuff was all checked in) On Mon, 22 Nov 1999, David J. Fiander wrote: > On Mon, 22 Nov 1999, Julian Elischer wrote: > > > I have done the following to get it going on 3.3-R > > > > [...] > > > > > Add options NETGRAPH, NG_SOCKET, NG_PPPOE to your kernel > > > > Everything's cool until I get here, but config reports "NG_PPPOE" > and "NG_SOCKET" are unknown options, and they don't appear in the > options file that I got from -stable. I'm guessing that you > meant to say > > Add options ... NETGRAPH_SOCKET, NETGRAPH_PPPOE to your kernel yep sorry. > > > compile kernel > > This complains, in a few places, that "struct arpcom" does not > have a member named "ac_ng". I copied sys/net/if_arp.h from > -stable. I also need > > sys/net/netisr.h for NETISR_NETGRAPH > sys/sys/socket.h for AF_NETGRAPH > > This redefines AF_MAX, so sys/mount.h has to be fixed. yeah though nothing would go wrong if it were incorrect > > > recompile ppp > > cd /usr/src/usr.sbin/ppp; make -DNOI4B; make -DNOI4B install > > This builds a ppp with '-DNONETGRAPH'. Is that right? > > I, of course, also have to build and install libnetgraph, ngctl, > and nghook. > yep sounds likeyou are getting there I hope to have a single tar file that does all of this :-) > - David > -- > David J. Fiander | What's past is prologue > Incipient Librarian | - The Tempest, Wm. Shakespeare > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 20:18:22 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 292D9152CA for ; Mon, 22 Nov 1999 20:18:18 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id UAA43261; Mon, 22 Nov 1999 20:18:07 -0800 (PST) Date: Mon, 22 Nov 1999 20:18:07 -0800 (PST) From: Julian Elischer To: "David J. Fiander" Cc: freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 22 Nov 1999, David J. Fiander wrote: > On Mon, 22 Nov 1999, Julian Elischer wrote: > > > I have done the following to get it going on 3.3-R > > > > [...] > > > > > Add options NETGRAPH, NG_SOCKET, NG_PPPOE to your kernel > > > > Everything's cool until I get here, but config reports "NG_PPPOE" > and "NG_SOCKET" are unknown options, and they don't appear in the > options file that I got from -stable. I'm guessing that you > meant to say > > Add options ... NETGRAPH_SOCKET, NETGRAPH_PPPOE to your kernel > > > compile kernel > > This complains, in a few places, that "struct arpcom" does not > have a member named "ac_ng". I copied sys/net/if_arp.h from > -stable. I also need > > sys/net/netisr.h for NETISR_NETGRAPH > sys/sys/socket.h for AF_NETGRAPH I mentionned getting these patches from the CVS repository :-) > > This redefines AF_MAX, so sys/mount.h has to be fixed. > > > recompile ppp > > cd /usr/src/usr.sbin/ppp; make -DNOI4B; make -DNOI4B install > > This builds a ppp with '-DNONETGRAPH'. Is that right? > > I, of course, also have to build and install libnetgraph, ngctl, > and nghook. > > - David > -- > David J. Fiander | What's past is prologue > Incipient Librarian | - The Tempest, Wm. Shakespeare > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 22 22:37:25 1999 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-108.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.236]) by hub.freebsd.org (Postfix) with ESMTP id 0553A14A16 for ; Mon, 22 Nov 1999 22:37:20 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA03962; Tue, 23 Nov 1999 02:37:04 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA09265; Tue, 23 Nov 1999 02:41:59 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199911230241.CAA09265@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Julian Elischer Cc: Josh Tiefenbach , Brian Somers , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org, brian@hak.lan.Awfulhak.org Subject: Re: PPPoE Redux. In-Reply-To: Message from Julian Elischer of "Mon, 22 Nov 1999 18:26:14 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Nov 1999 02:41:59 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > also make sure you turn off excsessive logging > it can really slow it down. [.....] Pah! ``set log +timer''.... *real* logging ! -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 23 6:10:39 1999 Delivered-To: freebsd-net@freebsd.org Received: from hqsmtp.mks.com (hqsmtp.mks.com [198.73.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 4DB4B14F75 for ; Tue, 23 Nov 1999 06:10:30 -0800 (PST) (envelope-from djfiande@julian.uwo.ca) Received: from p19.dialup.mks.com (p19.dialup.mks.com [198.73.107.119]) by hqsmtp.mks.com (Postfix) with ESMTP id 8055B59008; Tue, 23 Nov 1999 09:04:12 -0500 (EST) Date: Tue, 23 Nov 1999 09:08:21 -0500 (EST) From: "David J. Fiander" X-Sender: davidf@localhost.waterloo.on.ca To: Julian Elischer Cc: freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 22 Nov 1999, Julian Elischer wrote: > sounds likeyou are getting there > > I hope to have a single tar file that does all of this :-) > So, I've now rebuilt ppp and fired it up and, not too surprisingly, nothing very exciting happened, so I started perusing manpages. The ppp(8) page tells me to look at the ng_pppoe(8) man page for "further details", but I discovered that it wasn't installed. What do I do about building the netgraph modules that you told me to d/l and then completely ignored? ;-) I tried just "make" in the top level directory, and most things worked, but in the tty subdirectory, "ng_tty.c" failed because NETGRAPHDISC is undefined. So, I got sys/ttycom.h from -stable and then installed. -- David J. Fiander | What's past is prologue Incipient Librarian | - The Tempest, Wm. Shakespeare To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 23 8: 4:17 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.visi.com (baal.visi.com [209.98.98.3]) by hub.freebsd.org (Postfix) with ESMTP id 96AA514BD7 for ; Tue, 23 Nov 1999 08:04:10 -0800 (PST) (envelope-from nichols@roundview.com) Received: from mail-relay.roundview.com (roundview-host217.dsl.visi.com [209.98.239.217]) by mail.visi.com (8.8.8/8.7.5) with ESMTP id KAA19778 for ; Tue, 23 Nov 1999 10:04:00 -0600 (CST) Posted-Date: Tue, 23 Nov 1999 10:04:00 -0600 (CST) Received: from ns.sys.roundview.com (ns.sys.roundview.com [10.128.1.1]) by mail-relay.roundview.com (8.9.1/8.9.1) with ESMTP id MAA14084 for ; Tue, 23 Nov 1999 12:46:19 -0600 (CST) Received: from localhost (nichols@localhost) by ns.sys.roundview.com (8.9.3/8.9.3) with ESMTP id KAA20864 for ; Tue, 23 Nov 1999 10:09:12 -0600 (CST) (envelope-from nichols@ns.sys.roundview.com) Date: Tue, 23 Nov 1999 10:09:12 -0600 (CST) From: Vern Nichols To: freebsd-net@freebsd.org Subject: netgraph'd enet nics anyone? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm currently playing around with and learning what I can about netgraph to see if I want to use it in a new project. I thought I'd play around by trying to use it on the ethernet card (rl0). I'm wondering if anyone has done that and if I'd also have to make a TCP netgraph node to make it work the way I'd expect. I think I'd be looking at something like: SocketNode->TCPNode(does not seem to exist)->IFaceNode(IP)->NICNode(enet) Or am I off base on how netgraph can/should be used? I see some ngether_*() routines in if_ethersubr.c so I assume someone is already looking into a netgraph enet node. I'm currenlty working on 3.2 with the netgraph 3.0 patches applied. I see netgraph appears to be integrated into 4.0. Is it worth moving up to 4.0 before I start getting too deep in netgraph? Thanks for any insite. Vern A. Nichols Roundview, Inc. nichols@roundview.com 10700 Old Co Rd. 15, Suite 303 612.591.7777 ext. 14 Plymouth, MN 55441 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 23 11:23:54 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id C541415374 for ; Tue, 23 Nov 1999 11:23:45 -0800 (PST) (envelope-from julian@whistle.com) Received: from home.elischer.org (home.elischer.org [207.76.204.203]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id LAA90316; Tue, 23 Nov 1999 11:23:16 -0800 (PST) Date: Tue, 23 Nov 1999 11:23:14 -0800 (PST) From: Julian Elischer X-Sender: julian@home.elischer.org To: "David J. Fiander" Cc: freebsd-net@FreeBSD.ORG Subject: Re: Announce: PPPoE for -curent and -stable now standard. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org you don't need any modules if you have the options in your kernel. basicaly what you need to do to get pppoe running is have a 'set device PPPoE:ed0' in your ppp config file you should also have 'cd 5' and 'set dial' I have: pppoe: set device PPPoE:ed0 set mru 1492 set mtu 1942 deny chap accept pap set speed sync set cd 5 set authname xxxxx set authkey ccccc enable lqr set redial 0 0 set dial add 0 0 HISADDR then I type ppp -ddial pppoe and zap.. I'm online. ifconfig -a to see what addresses I got. Julian On Tue, 23 Nov 1999, David J. Fiander wrote: > On Mon, 22 Nov 1999, Julian Elischer wrote: > > sounds likeyou are getting there > > > > I hope to have a single tar file that does all of this :-) > > > > So, I've now rebuilt ppp and fired it up and, not too > surprisingly, nothing very exciting happened, so I started > perusing manpages. The ppp(8) page tells me to look at the > ng_pppoe(8) man page for "further details", but I discovered that > it wasn't installed. > > What do I do about building the netgraph modules that you told me > to d/l and then completely ignored? ;-) I tried just "make" in > the top level directory, and most things worked, but in the tty > subdirectory, "ng_tty.c" failed because NETGRAPHDISC is > undefined. So, I got sys/ttycom.h from -stable and then > installed. > > -- > David J. Fiander | What's past is prologue > Incipient Librarian | - The Tempest, Wm. Shakespeare > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 23 11:48: 5 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 4D1F114BEE for ; Tue, 23 Nov 1999 11:48:01 -0800 (PST) (envelope-from julian@whistle.com) Received: from home.elischer.org (home.elischer.org [207.76.204.203]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id LAA92184; Tue, 23 Nov 1999 11:47:15 -0800 (PST) Date: Tue, 23 Nov 1999 11:47:14 -0800 (PST) From: Julian Elischer X-Sender: julian@home.elischer.org To: Vern Nichols Cc: freebsd-net@FreeBSD.ORG Subject: Re: netgraph'd enet nics anyone? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm currently playing around with and learning what I can about netgraph > to see if I want to use it in a new project. I thought I'd play around by > trying to use it on the ethernet card (rl0). There is already the following: if_ethersubr.c when compiled with options NETGRAPH already generates a netgraph node for every etherenet NIC. You can decide if you want to pre-empt ALL packets, or just get those that are unrecognised by present protocols. If you have rl0 and compile if_ethersubr.c with options NETGRAPH you already have a node called rl0: There is an 'Iface' type that generated a system interface that shows up in ifconfig. This feeds data in to the bottom of ip abd effectively gives us a netgraph attachment to the botom of IP, without us needing to touch IP. There is a 'ksocket' type that pretends to be a socket. This allows us to catch packets at the top of udp or tcp that are destined to certain addresses. Once again, this is the equivalent of having a netgraph attachment at the top of tcp/udp, except without having to actually touch tcp or udp. On Tue, 23 Nov 1999, Vern Nichols wrote: > > > I'm wondering if anyone has done that and if I'd also have to make a TCP > netgraph node to make it work the way I'd expect. I think I'd be looking > at something like: > > SocketNode->TCPNode(does not seem to exist)->IFaceNode(IP)->NICNode(enet) > > Or am I off base on how netgraph can/should be used? I see some > ngether_*() routines in if_ethersubr.c so I assume someone is already > looking into a netgraph enet node. > > I'm currenlty working on 3.2 with the netgraph 3.0 patches applied. I > see netgraph appears to be integrated into 4.0. Is it worth moving up > to 4.0 before I start getting too deep in netgraph? It's already applied to 3.3-STABLEB as well. basically you can already do all that you say. though our aim is not to replace the present 'fast path from socket to NIC' but to allow people to make diversions if needed. e.g. [tcp socket] [netgraph socket] | | | | | [arbitrary processig node] | | | | | | | [ksocket node] | | | | | /------------+ | / [--tcp/udp/ip--] | \ | \ | \ | \ | \ | \ | | | | | [iface node] | | | | | [arbitrary processing nodes] | | | / | / | / | / | / |norm /netgraph [NIC (with netgraph option] > > Thanks for any insite. > > Vern A. Nichols Roundview, Inc. > nichols@roundview.com 10700 Old Co Rd. 15, Suite 303 > 612.591.7777 ext. 14 Plymouth, MN 55441 > julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Nov 23 16:20:16 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail-relay2.yahoo.com (mail-relay2.yahoo.com [206.251.17.77]) by hub.freebsd.org (Postfix) with ESMTP id 9EF6D14D96 for ; Tue, 23 Nov 1999 16:20:09 -0800 (PST) (envelope-from jayanth@yahoo-inc.com) Received: from borogove.yahoo.com (borogove.yahoo.com [205.216.162.65]) by mail-relay2.yahoo.com (8.10.0.Beta6/8.10.0.Beta6) with ESMTP id dAO0JLc21360 for ; Tue, 23 Nov 1999 16:19:21 -0800 (PST) Received: from yahoo-inc.com (milk.yahoo.com [206.132.89.117]) by borogove.yahoo.com (8.10.0.Beta6/8.10.0.Beta6) with ESMTP id dAO0JL528246 for ; Tue, 23 Nov 1999 16:19:21 -0800 (PST) Message-ID: <383B2F08.5B2B4D38@yahoo-inc.com> Date: Tue, 23 Nov 1999 16:19:20 -0800 From: jayanth X-Mailer: Mozilla 4.08 [en] (X11; I; FreeBSD 2.2.8-STABLE i386) MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: peculiar tcp behavior Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi, I have a tcpdump below. If a Reset segment is received that is greater than "last_ack_sent" the FreeBSD 2.2.8 tcpip stack does not process the segment and drop the connection. Is the sender(a.b.c.d) of the Reset wrong in sending a Reset that is within the window but greater than our "last_ack_sent "? Since the connection is not dropped the x.y.z.w host has retransmit timeouts. What is the correct behavior ? tcpdump -------- 13:54:45.130913 a.b.c.d.1038 > x.y.z.w.http: S 2478243840:2478243840(0) win 2048 (DF) 13:54:45.130969 x.y.z.w.http > a.b.c.d.1038: S 876676280:876676280(0) ack 2478243841 win 17520 (DF) 13:54:45.131869 a.b.c.d.1038 > x.y.z.w.http: P 1:78(77) ack 1 win 2048 (DF) 13:54:45.161755 x.y.z.w.http > a.b.c.d.1038: . ack 78 win 17520 (DF) 13:54:45.352783 x.y.z.w.http > a.b.c.d.1038: P 1:210(209) ack 78 win 17520 (DF) 13:54:45.353055 x.y.z.w.http > a.b.c.d.1038: F 210:210(0) ack 78 win 17520 (DF) ???????????? 13:54:45.353119 a.b.c.d.1038 > x.y.z.w.http: R 2478261437:2478261437(0) ^^^^^^^^^^^^^^^^^^^^^ win 1 (DF) ??????????? 13:54:46.561619 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win 17520 (DF) 13:54:49.561403 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win 17520 (DF) 13:54:55.560988 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win 17520 (DF) .................. thanks jayanth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Nov 24 7:44: 5 1999 Delivered-To: freebsd-net@freebsd.org Received: from ausmail2.austin.ibm.com (ausmail2.austin.ibm.com [192.35.232.11]) by hub.freebsd.org (Postfix) with ESMTP id E068D152A4 for ; Wed, 24 Nov 1999 07:43:31 -0800 (PST) (envelope-from venkats@austin.ibm.com) Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [9.53.250.96]) by ausmail2.austin.ibm.com (8.9.1/8.8.5) with ESMTP id JAA44410 for ; Wed, 24 Nov 1999 09:39:33 -0600 Received: from austin.ibm.com (ambika.austin.ibm.com [9.53.150.77]) by netmail1.austin.ibm.com (8.8.5/8.8.5) with ESMTP id JAA29876; Wed, 24 Nov 1999 09:42:44 -0600 Message-ID: <383C0773.21E99C6D@austin.ibm.com> Date: Wed, 24 Nov 1999 09:42:43 -0600 From: venkat venkatsubra Organization: IBM X-Mailer: Mozilla 4.61 [en] (X11; U; AIX 4.3) X-Accept-Language: en MIME-Version: 1.0 To: jayanth Cc: freebsd-net@FreeBSD.ORG Subject: Re: peculiar tcp behavior References: <383B2F08.5B2B4D38@yahoo-inc.com> Content-Type: multipart/mixed; boundary="------------83BAB6521073EDFB9822F331" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------83BAB6521073EDFB9822F331 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit jayanth wrote: > hi, > I have a tcpdump below. If a Reset segment is received that is greater > than "last_ack_sent" the FreeBSD 2.2.8 tcpip stack does not process the > segment and drop the connection. Is the sender(a.b.c.d) of the Reset > wrong in > sending a Reset that is within the window but greater than our > "last_ack_sent "? > Since the connection is not dropped the x.y.z.w host has retransmit > timeouts. > What is the correct behavior ? > > tcpdump > -------- > 13:54:45.130913 a.b.c.d.1038 > x.y.z.w.http: S 2478243840:2478243840(0) > win 2048 (DF) > 13:54:45.130969 x.y.z.w.http > a.b.c.d.1038: S 876676280:876676280(0) > ack 2478243841 win 17520 (DF) > 13:54:45.131869 a.b.c.d.1038 > x.y.z.w.http: P 1:78(77) ack 1 win 2048 > (DF) > 13:54:45.161755 x.y.z.w.http > a.b.c.d.1038: . ack 78 win 17520 (DF) > 13:54:45.352783 x.y.z.w.http > a.b.c.d.1038: P 1:210(209) ack 78 win > 17520 (DF) > 13:54:45.353055 x.y.z.w.http > a.b.c.d.1038: F 210:210(0) ack 78 win > 17520 (DF) > > ???????????? > 13:54:45.353119 a.b.c.d.1038 > x.y.z.w.http: R 2478261437:2478261437(0) > > ^^^^^^^^^^^^^^^^^^^^^ > win 1 (DF) > ??????????? > > 13:54:46.561619 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win > 17520 (DF) > 13:54:49.561403 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win > 17520 (DF) > 13:54:55.560988 x.y.z.w.http > a.b.c.d.1038: FP 1:210(209) ack 78 win > 17520 (DF) > .................. > > thanks > jayanth > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --------------83BAB6521073EDFB9822F331 Content-Type: text/plain; charset=us-ascii; name="xx1" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xx1" Jayanth, Looking at RFC 793, the RST from a.b.c.d seems a valid RST since it is within the window. I haven't seen the freebsd code lately, but i recall that they had added the code from Page 960 of TCP/IP Illustrated Vol.2 long time back. That introduces a problem where a RST to a previous incarnation of the same connection could get accepted by the current connection and get terminated. Is the check about 'last_ack_sent' as you mentioned is to fix that problem ? By the way, doesn't RST mostly take the ACK number of the received segment for the sequence number ? In that case checking with last_ack_sent will work. But what if the RST is generated due to retransmission timer connection timeout or the linger period has expired SO_LINGER), etc. and some of the packets ahead were dropped ? Then the sequence number in RST segment and the last_ack_sent won't match. What platform is a.b.c.d that generates the RST with the sequence number set to the right edge of the window ? Venkat --------------83BAB6521073EDFB9822F331-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 25 16:17:35 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id D9F1C14D37 for ; Thu, 25 Nov 1999 16:17:32 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id QAA76845; Thu, 25 Nov 1999 16:17:30 -0800 (PST) Date: Thu, 25 Nov 1999 16:17:30 -0800 (PST) From: Julian Elischer To: Vern Nichols Cc: freebsd-net@FreeBSD.ORG Subject: Re: netgraph'd enet nics anyone? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, did you get this? does it answer your toughts, or did I mis-understand what you wanted? On Tue, 23 Nov 1999, Julian Elischer wrote: > > I'm currently playing around with and learning what I can about netgraph > > to see if I want to use it in a new project. I thought I'd play around by > > trying to use it on the ethernet card (rl0). > > There is already the following: > > if_ethersubr.c when compiled with options NETGRAPH > already generates a netgraph node for every etherenet NIC. > You can decide if you want to pre-empt ALL packets, or just get those > that are unrecognised by present protocols. > If you have rl0 and compile if_ethersubr.c with options NETGRAPH you > already have a node called rl0: > > > There is an 'Iface' type that generated a system interface that shows up > in ifconfig. This feeds data in to the bottom of ip abd effectively gives > us a netgraph attachment to the botom of IP, without us needing to touch > IP. > > There is a 'ksocket' type > that pretends to be a socket. This allows us to catch packets at the top > of udp or tcp that are destined to certain addresses. > Once again, this is the equivalent of having a netgraph attachment at the > top of tcp/udp, except without having to actually touch tcp or udp. > > > > > > On Tue, 23 Nov 1999, Vern Nichols wrote: > > > > > > > I'm wondering if anyone has done that and if I'd also have to make a TCP > > netgraph node to make it work the way I'd expect. I think I'd be looking > > at something like: > > > > SocketNode->TCPNode(does not seem to exist)->IFaceNode(IP)->NICNode(enet) > > > > Or am I off base on how netgraph can/should be used? I see some > > ngether_*() routines in if_ethersubr.c so I assume someone is already > > looking into a netgraph enet node. > > > > I'm currenlty working on 3.2 with the netgraph 3.0 patches applied. I > > see netgraph appears to be integrated into 4.0. Is it worth moving up > > to 4.0 before I start getting too deep in netgraph? > > It's already applied to 3.3-STABLEB as well. > > basically you can already do all that you say. though our aim is not to > replace the present 'fast path from socket to NIC' but to allow > people to make diversions if needed. > e.g. > > [tcp socket] [netgraph socket] > | | > | | > | [arbitrary processig node] > | | > | | > | | > | [ksocket node] > | | > | | > | /------------+ > | / > [--tcp/udp/ip--] > | \ > | \ > | \ > | \ > | \ > | \ > | | > | | > | [iface node] > | | > | | > | [arbitrary processing nodes] > | | > | / > | / > | / > | / > | / > |norm /netgraph > [NIC (with netgraph option] > > > > > > > > Thanks for any insite. > > > > Vern A. Nichols Roundview, Inc. > > nichols@roundview.com 10700 Old Co Rd. 15, Suite 303 > > 612.591.7777 ext. 14 Plymouth, MN 55441 > > > julian > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 25 16:40:45 1999 Delivered-To: freebsd-net@freebsd.org Received: from bingsun2.cc.binghamton.edu (bingsun2.cc.binghamton.edu [128.226.6.4]) by hub.freebsd.org (Postfix) with ESMTP id AFB1814F6E for ; Thu, 25 Nov 1999 16:40:38 -0800 (PST) (envelope-from bg24484@binghamton.edu) Received: from localhost (bg24484@localhost) by bingsun2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id TAA22112 for ; Thu, 25 Nov 1999 19:40:32 -0500 (EST) X-Authentication-Warning: bingsun2.cc.binghamton.edu: bg24484 owned process doing -bs Date: Thu, 25 Nov 1999 19:40:31 -0500 (EST) From: X-Sender: bg24484@bingsun2 To: freebsd-net@FreeBSD.ORG Subject: Timer to flush data? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi!, Data sitting in the send socket buffer is flushed when the send socket buffer is full and when the timer fires. What is the name of this timer and which function or counter is used by this timer. Any help would be appreciated. Thanx in advance, Roshan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Nov 25 17:12:13 1999 Delivered-To: freebsd-net@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id BAFA214E98 for ; Thu, 25 Nov 1999 17:12:09 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id UAA02830; Thu, 25 Nov 1999 20:12:06 -0500 (EST) Date: Thu, 25 Nov 1999 20:12:06 -0500 (EST) From: Bosko Milekic To: bg24484@binghamton.edu Cc: freebsd-net@FreeBSD.ORG Subject: Re: Timer to flush data? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 25 Nov 1999 bg24484@binghamton.edu wrote: !> !>Hi!, !> !>Data sitting in the send socket buffer is flushed when the send socket !>buffer is full and when the timer fires. !>What is the name of this timer and which function or counter is used by !>this timer. !>Any help would be appreciated. !> !>Thanx in advance, !>Roshan This timeout occurs at the protocol level, and for netinet, for instance, you should look at tcp_keepidle (available as a sysctl) and tcp_maxidle. For TCP, the procedure that you are probably looking for would be tcp_timer_2msl() -- it takes care of checking whether ETIMEDOUT should be returned in the case of a timeout (as opposed to waiting for a FIN forever). Have fun, Bosko. -- Bosko Milekic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message