From owner-freebsd-net Sun May 14 10: 7:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.alltel.net (mail.alltel.net [166.102.165.30]) by hub.freebsd.org (Postfix) with ESMTP id 7E96F37BDE9 for ; Sun, 14 May 2000 10:07:52 -0700 (PDT) (envelope-from jbstrt@alltel.net) Received: from alltel.net (lrar5pp93.alltel.net [166.102.177.94]) by mail.alltel.net (8.9.3/ALLTEL Messaging Service) with ESMTP id MAA17824 for ; Sun, 14 May 2000 12:07:39 -0500 (CDT) Message-ID: <391EDEFB.7F78D0B5@alltel.net> Date: Sun, 14 May 2000 13:14:35 -0400 From: Robert Fulford X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: multi-homed static routes & ISDN Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a Nortel RT-338 stand-alone ISDN router that uses DHCP. I set the pool size to 2 & the starting IP of the pool to 192.168.0.2. The router has an internal IP of 192.168.0.1. This allows me to use a crossover cable to hook the router into nic #1 on the fbsd box, which has the 192.168.0.2 IP. The second nic in the fbsd box has an IP of 192.168.150.150, and it is hooked into a hub, where W2k boxes w/ IP's of 192.168.150.154 & 192.168.150.156 are also hooked. The dfgw on the W2k boxes are set to 192.168.150.150, and the DNS addresses are set to 192.168.0.1. I used route add to enable the W2k boxes to access the 192.168.0.0 from the 192.168.150.150 interface. I used "route add -net 0.0.0.0 192.168.0.1" on the fbsd box to allow outside contacts. I have the following set in /etc/resolv.conf... nameserver 192.168.0.1 nameserver nameserver I do not have named_enable="YES" in /etc/rc.conf I can ping the 192.168.0.2 from the W2k boxes, and a ping to 192.168.0.1 triggers the router to activate the ISDN line. However, when the line hooks, i cannot ping outside IP's from the W2k boxes. I can ping an outside IP from the fbsd box, however. A web browser on the W2k boxes will trigger the ISDN, also, but no data gets through. IPFW is default to accept, and I have tried ppp_nat="YES" in rc.conf to no avail. I do not have firewall enabled in rc.conf, I will use it when I get IPFW rules set up accordingly. I have static_routes="" in rc.conf...should this be static_routes=" " ? This is on a 4.0 release box, and the syntax from 3.2 fails, where it allowed static_routes="route_blahone route_blahtwo" route_blahone="-net xxx.xxx.xxx.x xxx.xxx.xxx.xxx" route_blahtwo="-net xxx.xxx.xxx.x xxx.xxx.xxx.xxx" I am not running any routing daemons, like routed or mrouted, and gateway_enable="YES" in rc.conf, and default_router="192.168.0.1" I also have forward_sourceroute & accept_sourceroute set to yes. Can I get this working just using the routing tables? If so, what route add am I missing? I do not understand the man page for "route" that well, especially the -interface option. Thanks, Jeb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 14 10:28:40 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 10C1237B5A3 for ; Sun, 14 May 2000 10:28:37 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9D38B9.dip0.t-ipconnect.de [62.157.56.185]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id HAA03570; Sun, 14 May 2000 07:26:02 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id D4771AC2C; Sun, 14 May 2000 19:33:45 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id TAA13429; Sun, 14 May 2000 19:28:30 +0200 (CEST) (envelope-from alex) Date: Sun, 14 May 2000 19:28:30 +0200 From: Alexander Langer To: Barney Wolff Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming Message-ID: <20000514192830.A12892@cichlids.cichlids.com> References: <391cd7e80.3e9@databus.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <391cd7e80.3e9@databus.databus.com>; from barney@databus.com on Fri, May 12, 2000 at 11:56:00PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Barney Wolff (barney@databus.com): > Well, telnet is a funny protocol. Both answers have been wrong. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Interesting point. Unfortunately, since the server isn't going to echo back the chars, DON'T ECHO has the same effect. The difference between DON'T/WILL has effect if you assume, that the server echo's back each char it receives. Then client in WILL situation will echo, client in DON'T won't echo. But since the server won't echo anyways, there's no difference. You could have pointed that out without telling us we are wrong, which isn't true. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 14 10:46:40 2000 Delivered-To: freebsd-net@freebsd.org Received: from databus.databus.com (databus.databus.com [198.186.154.34]) by hub.freebsd.org (Postfix) with SMTP id C311637B7F1 for ; Sun, 14 May 2000 10:46:32 -0700 (PDT) (envelope-from barney@databus.databus.com) From: Barney Wolff To: freebsd-net@FreeBSD.ORG Date: Sun, 14 May 2000 13:29 EDT Subject: Re: socket programming Content-Length: 1212 Content-Type: text/plain Message-ID: <391ee6760.158e@databus.databus.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Have you actually tried it, with a real telnet client? As I understood the question, it was: How does the server make the client stop echoing to the user? And the answer is for the server to tell the client that it will do the echoing itself, and then not really do it. See RFC 857. Barney > Date: Sun, 14 May 2000 19:28:30 +0200 > From: Alexander Langer > To: Barney Wolff > Cc: freebsd-net@FreeBSD.ORG > Subject: Re: socket programming > Content-Length: 660 > > Thus spake Barney Wolff (barney@databus.com): > > > Well, telnet is a funny protocol. Both answers have been wrong. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Interesting point. Unfortunately, since the server isn't going to echo > back the chars, DON'T ECHO has the same effect. > > The difference between DON'T/WILL has effect if you assume, that the > server echo's back each char it receives. Then client in WILL > situation will echo, client in DON'T won't echo. But since the server > won't echo anyways, there's no difference. > > You could have pointed that out without telling us we are wrong, which > isn't true. > > Alex > > -- > I need a new ~/.sig. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun May 14 11:45:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.alltel.net (mail.alltel.net [166.102.165.30]) by hub.freebsd.org (Postfix) with ESMTP id 0094B37B5B1 for ; Sun, 14 May 2000 11:45:17 -0700 (PDT) (envelope-from jbstrt@alltel.net) Received: from alltel.net (r-251.169.alltel.net [166.102.251.169]) by mail.alltel.net (8.9.3/ALLTEL Messaging Service) with ESMTP id NAA23105 for ; Sun, 14 May 2000 13:45:15 -0500 (CDT) Message-ID: <391EF5DB.C1B5FD29@alltel.net> Date: Sun, 14 May 2000 14:52:11 -0400 From: Robert Fulford X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: multihomed ISDN question was answered...thanks! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org the long question i posted has been solved...thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 0:59:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A5C437B5FB for ; Mon, 15 May 2000 00:59:47 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C1148.dip0.t-ipconnect.de [62.156.17.72]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id VAA14807; Sun, 14 May 2000 21:57:14 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id CB2F0AC2C; Mon, 15 May 2000 10:05:00 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id JAA03939; Mon, 15 May 2000 09:59:38 +0200 (CEST) (envelope-from alex) Date: Mon, 15 May 2000 09:59:38 +0200 From: Alexander Langer To: Barney Wolff Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming Message-ID: <20000515095938.E997@cichlids.cichlids.com> References: <391ee6760.158e@databus.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <391ee6760.158e@databus.databus.com>; from barney@databus.com on Sun, May 14, 2000 at 01:29:00PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Barney Wolff (barney@databus.com): > Have you actually tried it, with a real telnet client? Yes, of course. > See RFC 857. I did, months ago the last time and yesterday again, because I was unsure. DONT ECHO is correct in this case, also, to turn off local echo. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 4:31: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from apollo.ocsny.com (apollo.ocsny.com [204.107.76.2]) by hub.freebsd.org (Postfix) with ESMTP id 4C9E637B50C for ; Mon, 15 May 2000 04:30:59 -0700 (PDT) (envelope-from mikel@ocsny.com) Received: from ocsny.com (thoth.upan.org [204.107.76.16]) by apollo.ocsny.com (8.9.2/8.9.3) with ESMTP id HAA47768; Mon, 15 May 2000 07:28:18 -0400 (EDT) Message-ID: <391FE02C.C0FBC14@ocsny.com> Date: Mon, 15 May 2000 07:31:56 -0400 From: Mikel Organization: Optimized Computer Solutions, Inc. X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en,it MIME-Version: 1.0 To: Suryadi Cc: FREEBSD-NET@FreeBSD.ORG Subject: Re: FAKE DOMAIN References: Content-Type: multipart/mixed; boundary="------------78C83B75122D484AF47D5456" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------78C83B75122D484AF47D5456 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok sure you can make up a domain name...but remember if you ever connect to the net then you MAY have to reconfigure every workstation on that lan...unless you do something slick like put to ethernet cards in anf set up a gateway with ipfw/natd...then you could have a cluster of workstations on the the inside private lan...we shall call ws1.clstr, ws2.clstr, ???.clstr for instance...and the one workstation that is actually connected to the world has a real domain name....On the flip side if you neve connect to the net thenit doesn't really matter....name them all .slug if you like...just remember to add an entry for each one in /etc/hosts on each machine... Suryadi wrote: > For now I only need for a private lan, but later maybe I need to connect > to the internet too. > Do you have any idea ? > > On Wed, 10 May 2000, Mikel wrote: > > > please elaborate...do you mean for use on a private lan? or are your going to > > connect to the internet some how? > > > > Suryadi wrote: > > > > > Hello everyone > > > > > > I want to ask about fake domain. Can I entered a server using fake domain > > > ? > > > > > > PS: when we entered a server, and we type 'w'. So there will be my login > > > name and my domain. That I want is to fake the domain. -- Cheers, Mikel +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | Optimized Computer Solutions, Inc http://www.ocsny.com | 39 W14th Street, Suite 203 212 727 2238 x132 | New York, NY 10011 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ --------------78C83B75122D484AF47D5456 Content-Type: text/x-vcard; charset=us-ascii; name="mikel.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mikel Content-Disposition: attachment; filename="mikel.vcf" begin:vcard n:King;Mikel tel;fax:2124638402 tel;home:http://www.upan.org tel;work:2127272100 x-mozilla-html:TRUE org:Optimized Computer Solutions version:2.1 email;internet:mikel@ocsny.com title:Director of Network Operations & Technology adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US note;quoted-printable:fBSD, PHP, MySql and OCS Rule!!!=0D=0A=0D=0AGoal is to be MS free by the end of 2k. x-mozilla-cpt:;7312 fn:Mikel King end:vcard --------------78C83B75122D484AF47D5456-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 8: 0:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from trauco.colomsat.net.co (trauco.colomsat.net.co [200.13.195.2]) by hub.freebsd.org (Postfix) with ESMTP id CBBB937B71E; Mon, 15 May 2000 07:59:51 -0700 (PDT) (envelope-from y-carden@uniandes.edu.co) Received: from uniandes.edu.co (200.13.193.242) by trauco.colomsat.net.co (NPlex 4.0.068) id 391DB93A00004467; Mon, 15 May 2000 09:56:33 -0500 Message-ID: <39201144.945A05C@uniandes.edu.co> Date: Mon, 15 May 2000 10:01:24 -0500 From: Yonny Cardenas Reply-To: ycardena@yahoo.com X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Cc: freebsd-net@freebsd.org Subject: Late binding between layers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello The network software is commonly layered into hierarchy of protocols, for example the TCP/IP implementation. The FreeBSD kernel support a late binding between layers? How ? Thanks. +--------------------------------+ YONNY CARDENAS B. Systems Engineer UNIX is BSD, and FreeBSD is an advanced 4.4BSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 8:28:21 2000 Delivered-To: freebsd-net@freebsd.org Received: from databus.databus.com (databus.databus.com [198.186.154.34]) by hub.freebsd.org (Postfix) with SMTP id B282F37B64E for ; Mon, 15 May 2000 08:28:15 -0700 (PDT) (envelope-from barney@databus.databus.com) From: Barney Wolff To: freebsd-net@freebsd.org Date: Mon, 15 May 2000 11:27 EDT Subject: Re: socket programming Content-Length: 826 Content-Type: text/plain Message-ID: <3920178a0.244e@databus.databus.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sigh. Quoting RFC 857: IAC DON'T ECHO The sender of this command DEMANDS the receiver of this command stop, or not start, echoing data characters it receives over the TELNET connection. In other words, having the server send the client IAC DONT ECHO tells the client not to echo, back to the server, characters it receives from the sender. But, of course, the client is already in that state. Barney > Date: Mon, 15 May 2000 09:59:38 +0200 > From: Alexander Langer > > Thus spake Barney Wolff (barney@databus.com): > > > Have you actually tried it, with a real telnet client? > > Yes, of course. > > > See RFC 857. > > I did, months ago the last time and yesterday again, because I was unsure. > DONT ECHO is correct in this case, also, to turn off local echo. > > Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 9: 2:39 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by hub.freebsd.org (Postfix) with ESMTP id 742AF37B5AD for ; Mon, 15 May 2000 09:02:34 -0700 (PDT) (envelope-from fenner@research.att.com) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-blue.research.att.com (Postfix) with ESMTP id 85A644CE02; Mon, 15 May 2000 12:02:32 -0400 (EDT) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id MAA23874; Mon, 15 May 2000 12:02:31 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id JAA04091; Mon, 15 May 2000 09:01:09 -0700 (PDT) Message-Id: <200005151601.JAA04091@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: egravel@taz.telusa.com Subject: Re: Weirdness in small network Cc: freebsd-net@freebsd.org Date: Mon, 15 May 2000 09:01:08 -0700 Versions: dmail (solaris) 2.2g/makemail 2.9a Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >The network is primarily coax (10b2) ... >Both >machines are in the middle of the chain so hardware problems aren't >an issue. Don't be too sure. Reflections can cause *really* strange problems. I've had machines close to each other (i.e. seperated by a 6' piece of 10b2) been unable to talk to each other while they could both talk to a machine 100' away. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 9:26:57 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 1204237B578 for ; Mon, 15 May 2000 09:26:47 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C1148.dip0.t-ipconnect.de [62.156.17.72]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id GAA11759; Mon, 15 May 2000 06:24:10 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id A1E11AC2C; Mon, 15 May 2000 18:26:37 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id SAA01005; Mon, 15 May 2000 18:26:35 +0200 (CEST) (envelope-from alex) Date: Mon, 15 May 2000 18:26:35 +0200 From: Alexander Langer To: Barney Wolff Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming Message-ID: <20000515182635.A408@cichlids.cichlids.com> References: <3920178a0.244e@databus.databus.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="17pEHd4RhPHOinZp" X-Mailer: Mutt 1.0.1i In-Reply-To: <3920178a0.244e@databus.databus.com>; from barney@databus.com on Mon, May 15, 2000 at 11:27:00AM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Thus spake Barney Wolff (barney@databus.com): > Sigh. Quoting RFC 857: Either you are right and all telnet-clients I can use atm (Linux, Windows9x, FreeBSD) have implemented things wrong or maybe you are wrong. If you are right, I suggest you rewrite things and shout at the guys that they have implemented the protocol wrongly and send them patches. In this case, I was also right, since I said the things have the same effect (on clients _I_ know, also, if this violates the RfC). I suggest trying out the attached source, with and without commented out the handshake and see, what happens. In your opinion this should have no effect since DONT ECHO doesn't mean that. Thanks Alex -- I need a new ~/.sig. --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="localecho.c" #include #include #include #include int main(int argc, char **argv) { int listenfd, sockfd; struct sockaddr_in servaddr, cliaddr; int on, clilen; char buf[10]; if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) exit(1); on = 1; if (setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(int)) == -1) exit(1); bzero(&servaddr, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_addr.s_addr = htonl(INADDR_ANY); servaddr.sin_port = htons(12345); if (bind(listenfd, (struct sockaddr *) & servaddr, sizeof(servaddr)) == -1) exit(1); if (listen(listenfd, 2) == -1) exit(1); clilen = sizeof(cliaddr); sockfd = accept(listenfd, (struct sockaddr *) & cliaddr, &clilen); write(sockfd, "\377\373\1\0", 4); for (;;) { printf("Received %i bytes...\n", read(sockfd, buf, 9)); } /* forever */ return (0); } --17pEHd4RhPHOinZp-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 9:36:16 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id ECC8C37B579 for ; Mon, 15 May 2000 09:36:06 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C1148.dip0.t-ipconnect.de [62.156.17.72]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id GAA14485; Mon, 15 May 2000 06:33:33 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 910ADAC2C; Mon, 15 May 2000 18:36:01 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id SAA01309; Mon, 15 May 2000 18:36:00 +0200 (CEST) (envelope-from alex) Date: Mon, 15 May 2000 18:35:59 +0200 From: Alexander Langer To: Barney Wolff Cc: net@freebsd.org Subject: Re: socket programming Message-ID: <20000515183559.B1130@cichlids.cichlids.com> References: <3920178a0.244e@databus.databus.com> <20000515182635.A408@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000515182635.A408@cichlids.cichlids.com>; from alex@big.endian.de on Mon, May 15, 2000 at 06:26:35PM +0200 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Alexander Langer (alex@big.endian.de): > write(sockfd, "\377\373\1\0", 4); ^^^ Man, I suck. You are right, of course. I always meant WILL all over the time. I was just too dumb to read numbers (I read my source and thought 373o == 254d, argl). Sorry. *blush* Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 10:45:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from po1.bbn.com (PO1.BBN.COM [192.1.50.38]) by hub.freebsd.org (Postfix) with ESMTP id 33F6537B515 for ; Mon, 15 May 2000 10:45:12 -0700 (PDT) (envelope-from dennis@bbn.com) Received: from bbn.com (DROCKWELL.BBN.COM [128.89.31.139]) by po1.bbn.com (8.9.1/8.9.1) with ESMTP id NAA21530; Mon, 15 May 2000 13:45:09 -0400 (EDT) Message-Id: <200005151745.NAA21530@po1.bbn.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: "TAZ Gravel, Emmanuel" Cc: "'freebsd-net@freebsd.org'" Subject: Re: Weirdness in small network In-reply-to: Message from "TAZ Gravel, Emmanuel" <6BFFC6F3FB6AD211A9D800A0C99B3E6F014A4123@TEAPHX0031> . X-face: &R'hN{mZu#r@8b_JU\bn"!fYpP{?5k4p/(|]?.2'6;>Dc9}~t*vY=/#-:"63ya.%)%o`Kv$ u&'Ff5k&n[}QC;j7YYsR5Hl]G"E:*9Zmw;dx[sw&9Tmx_PB/7B`RdFW;#@49hJU&kW+J"<[`9^?.dQ 3]L$zK,4'=tThX$wC!M\`e*@1y Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 May 2000 13:46:16 -0400 From: Dennis Rockwell Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 11 May, "TAZ Gravel, Emmanuel" wrote: > [ ... ] Both > machines are in the middle of the chain so hardware problems aren't > an issue. I would check on the distance between the units; I've seen instances where systems were too close or pessimistically phased and couldn't hear each other. Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 12:59:23 2000 Delivered-To: freebsd-net@freebsd.org Received: from new1.utep.edu (new1.utep.edu [129.108.1.217]) by hub.freebsd.org (Postfix) with ESMTP id 779E837B658 for ; Mon, 15 May 2000 12:59:13 -0700 (PDT) (envelope-from jan@janbeck.com) Received: from mail.utep.edu (mail.utep.edu [129.108.1.4]) by new1.utep.edu (8.9.3/8.9.3) with ESMTP id NAA13404; Mon, 15 May 2000 13:59:01 -0600 (MDT) Received: from backup4 (atlas51.mmtlc.utep.edu [129.108.79.150]) by mail.utep.edu (8.9.2/8.9.2) with ESMTP id NAA106782; Mon, 15 May 2000 13:58:46 -0600 Message-Id: <4.2.0.58.20000515150136.00a5ba20@mail.janbeck.com> X-Sender: janbeck01@mail.janbeck.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 15 May 2000 15:01:58 -0500 To: Barney Wolff , freebsd-net@FreeBSD.ORG From: Jan Beck Subject: Re: socket programming In-Reply-To: <391ee6760.158e@databus.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thank you all for the info. I really appreciate the help JAn At 01:29 PM 5/14/00 -0400, Barney Wolff wrote: >Have you actually tried it, with a real telnet client? > >As I understood the question, it was: How does the server make the >client stop echoing to the user? And the answer is for the server >to tell the client that it will do the echoing itself, and then >not really do it. > >See RFC 857. > >Barney > > > Date: Sun, 14 May 2000 19:28:30 +0200 > > From: Alexander Langer > > To: Barney Wolff > > Cc: freebsd-net@FreeBSD.ORG > > Subject: Re: socket programming > > Content-Length: 660 > > > > Thus spake Barney Wolff (barney@databus.com): > > > > > Well, telnet is a funny protocol. Both answers have been wrong. > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Interesting point. Unfortunately, since the server isn't going to echo > > back the chars, DON'T ECHO has the same effect. > > > > The difference between DON'T/WILL has effect if you assume, that the > > server echo's back each char it receives. Then client in WILL > > situation will echo, client in DON'T won't echo. But since the server > > won't echo anyways, there's no difference. > > > > You could have pointed that out without telling us we are wrong, which > > isn't true. > > > > Alex > > > > -- > > I need a new ~/.sig. > > > > >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 May 15 13: 8:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from falla.videotron.net (falla.videotron.net [205.151.222.106]) by hub.freebsd.org (Postfix) with ESMTP id A9BB737B807 for ; Mon, 15 May 2000 13:08:01 -0700 (PDT) (envelope-from bmilekic@dsuper.net) Received: from modemcable009.62-201-24.mtl.mc.videotron.net ([24.201.62.9]) by falla.videotron.net (Sun Internet Mail Server sims.3.5.1999.12.14.10.29.p8) with ESMTP id <0FUM00AWEAALD5@falla.videotron.net> for net@FreeBSD.ORG; Mon, 15 May 2000 16:01:33 -0400 (EDT) Date: Mon, 15 May 2000 16:02:56 -0400 (EDT) From: Bosko Milekic Subject: Re: MFC of mbuf wait and other patch In-reply-to: X-Sender: bmilekic@jehovah.technokratis.com To: Mike Silbersack Cc: net@FreeBSD.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 Sat, 13 May 2000, Mike Silbersack wrote: > Ok, I created the situation again, this time using fstat/lsof to see if I > could get any more additional information. Unfortunately, I've come up > dry. I'm sorry, as this is probably already the second time I'm asking you to do this (I unfortunately lost the first copy), but can you send me the code that you're using to simulate the exhaustion? (no need to CC is to the list, send directly to me). With that, I'll be able to get data and values that I can also try analyzing (now that this semester is officially over). > > What's occuring is that when I hit very close to all mbuf clusters and > mbufs full, apache answers the request, but is unable to stuff the full > ~15 of data (loopback's MTU size) into the send queue. It seems to wait > in mclalc for a few seconds, and goes back to the accept state. At this > point, the socket in question is no longer attached to any process, and > sits in the LAST_ACK state. However, unlike the pre-exhaustion sockets, > which are also in LAST_ACK, it seemingly never times out. I'll get back to you on this once I've tested it myself. On another note, how long have you waited for that "timeout?" > > I've been attempting to add to netstat so that it tells me more of the > socket internals so that I can hopefully see what's different about these > sockets than others, but it looks like adding all the various fields could > take some time; is there a tool which already shows this info > somewhere? Unfortunately, I'll be very busy during the next week, so I > won't get time to look much more into it. What you'd need in this case is also to get some information from the tcpcb in question. -- Bosko Milekic * pages.infinit.net/bmilekic/index.html * www.technokratis.com bmilekic@dsuper.net * bmilekic@technokratis.com * b.milekic@marianopolis.edu "Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 13:14:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from silby.com (adam042-051.resnet.wisc.edu [146.151.42.51]) by hub.freebsd.org (Postfix) with SMTP id 89D9E37B658 for ; Mon, 15 May 2000 13:14:52 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 18066 invoked by uid 1000); 15 May 2000 20:14:50 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 15 May 2000 20:14:50 -0000 Date: Mon, 15 May 2000 15:14:50 -0500 (CDT) From: Mike Silbersack To: Bosko Milekic Cc: net@FreeBSD.ORG Subject: Re: MFC of mbuf wait and other patch 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, 15 May 2000, Bosko Milekic wrote: > On Sat, 13 May 2000, Mike Silbersack wrote: > > > Ok, I created the situation again, this time using fstat/lsof to see if I > > could get any more additional information. Unfortunately, I've come up > > dry. > > I'm sorry, as this is probably already the second time I'm asking you > to do this (I unfortunately lost the first copy), but can you send me the > code that you're using to simulate the exhaustion? (no need to CC is to > the list, send directly to me). With that, I'll be able to get data and > values that I can also try analyzing (now that this semester is officially > over). Sent. > I'll get back to you on this once I've tested it myself. On another > note, how long have you waited for that "timeout?" They've hung around 2 days so far on this boot. I haven't had very long uptimes in the last few weeks due to playing around with the patches, but since they last longer than 5 minutes, I'm guessing they'd hang around virtually forever. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 17: 3: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 4399737B945 for ; Mon, 15 May 2000 17:03:01 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA86558; Tue, 16 May 2000 01:01:51 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id UAA00432; Mon, 15 May 2000 20:03:25 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200005151903.UAA00432@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Marc Tardif Cc: freebsd-net@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: ppp filter In-Reply-To: Message from Marc Tardif of "Fri, 12 May 2000 02:20:43 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 May 2000 20:03:25 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You need the ``nat port'' command. nat port tcp fbsd2.box.com:80 80 > How can I redirect www requests from the modem interface on one host to > another host on my local network? > > My current network consists of the following machines, where the "fbsd" > host also has a modem interface (tun0) with the static IP 1.1.1.1 (for > discussion's sake): > 192.168.0.1 fbsd.box.com fbsd > 192.168.0.2 fbsd2.box.com fbsd2 > > What I have tried so far is to connect to my isp using ppp and the nat > flag and then setting a filter as follows: > fbsd# ppp -nat isp > ppp ON fbsd> dial > PPP ON fbsd> set filter in 0 permit 1.1.1.1 192.168.0.2 tcp src eq 80 dst > eq 80 > > Unfortunately, once I set the filter, I cannot ping anywhere outside my > local network so I cannot put tcpdump to good use. Any suggestions to > either solve the problem or help get anywhere with this problem would be > much appreciated. > > Marc Tardif -- 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 May 15 18:42:57 2000 Delivered-To: freebsd-net@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 27B2737B5E4 for ; Mon, 15 May 2000 18:42:54 -0700 (PDT) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.9.3/8.9.1) with ESMTP id VAA04858; Mon, 15 May 2000 21:42:37 -0400 (EDT) (envelope-from louie@whizzo.transsys.com) Message-Id: <200005160142.VAA04858@whizzo.transsys.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alexander Langer Cc: Barney Wolff , freebsd-net@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: socket programming References: <3920178a0.244e@databus.databus.com> <20000515182635.A408@cichlids.cichlids.com> In-reply-to: Your message of "Mon, 15 May 2000 18:26:35 +0200." <20000515182635.A408@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 May 2000 21:42:37 -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Thus spake Barney Wolff (barney@databus.com): > > > Sigh. Quoting RFC 857: > > Either you are right and all telnet-clients I can use atm (Linux, > Windows9x, FreeBSD) have implemented things wrong or maybe you are > wrong. > If you are right, I suggest you rewrite things and shout at the guys > that they have implemented the protocol wrongly and send them patches. > In this case, I was also right, since I said the things have the same > effect (on clients _I_ know, also, if this violates the RfC). I think Barney is correct. When I wrote my first telnet server in 1982, telnet worked that way, and it still works this way. Telnet option negotiation has been well understood for decades now. My personal experience with this was on a big, horrible mainframe computer which presumed half-duplex printing terminals and which didn't echo what you typed. (This is actually the default state when a telnet sessions begins; UNIX telnet servers negotiate WILL ECHO so that the local client doesn't echo what you type.) So, in my case, when the OS told me it was prompting for a password though a mechanism I won't describe to you here in case you're eating, my telnet server would claim to peform remote echoing, and then wouldn't during the duration of the password prompt. It then negotiated WONT ECHO with the telnet client, so that the local echoing resumed. Note that to really get this right, when the telnet server sends a WILL ECHO, you should wait for the client to respond with DO ECHO before sending the prompt to ensure that the client's local echo was been disabled. While you can probably get away with just jamming the various telnet control sequences into the TCP connection (e.g., IAC WILL ECHO), there really is a state machine on both sides, as well as byte-stuffing of the IAC (binary value 0xff) going on too. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon May 15 20:18:51 2000 Delivered-To: freebsd-net@freebsd.org Received: from Gloria.CAM.ORG (Gloria.CAM.ORG [205.151.116.34]) by hub.freebsd.org (Postfix) with ESMTP id BF6A237B9B2 for ; Mon, 15 May 2000 20:18:48 -0700 (PDT) (envelope-from intmktg@CAM.ORG) Received: from localhost (intmktg@localhost) by Gloria.CAM.ORG (8.9.3/8.9.3) with ESMTP id XAA02455; Mon, 15 May 2000 23:06:55 -0400 Date: Mon, 15 May 2000 23:06:55 -0400 (EDT) From: Marc Tardif To: Brian Somers Cc: freebsd-net@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: ppp filter In-Reply-To: <200005151903.UAA00432@hak.lan.Awfulhak.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 I have gone back to the ppp manpage and read the "ppp command" section (line 1711) and tried the following commands from ppp: PPP ON fbsd> nat enable yes PPP ON fbsd> nat port tcp 192.168.0.2:80 80 Still doesn't work though, visitors keep getting the www server on host fbsd instead of being redirected to fbsd2 (even after hitting reload, in case the page was cached). Note that I only want www services redirected, so I don't think I can use the "nat addr" command. Considering my network setup is rather simple and I've recently cvsup'ed to stable, I really don't see what could be wrong. Any other ideas would be most welcome. > You need the ``nat port'' command. > > nat port tcp fbsd2.box.com:80 80 > > > How can I redirect www requests from the modem interface on one host to > > another host on my local network? > > > > My current network consists of the following machines, where the "fbsd" > > host also has a modem interface (tun0) with the static IP 1.1.1.1 (for > > discussion's sake): > > 192.168.0.1 fbsd.box.com fbsd > > 192.168.0.2 fbsd2.box.com fbsd2 > > > > What I have tried so far is to connect to my isp using ppp and the nat > > flag and then setting a filter as follows: > > fbsd# ppp -nat isp > > ppp ON fbsd> dial > > PPP ON fbsd> set filter in 0 permit 1.1.1.1 192.168.0.2 tcp src eq 80 dst > > eq 80 > > > > Unfortunately, once I set the filter, I cannot ping anywhere outside my > > local network so I cannot put tcpdump to good use. Any suggestions to > > either solve the problem or help get anywhere with this problem would be > > much appreciated. > > > > Marc Tardif > > -- > 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 May 16 1:57: 7 2000 Delivered-To: freebsd-net@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 20B7D37B78C for ; Tue, 16 May 2000 01:57:04 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id JAA73517; Tue, 16 May 2000 09:57:01 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA00469; Tue, 16 May 2000 08:42:23 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200005160742.IAA00469@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Marc Tardif Cc: Brian Somers , freebsd-net@FreeBSD.ORG, brian@hak.lan.awfulhak.org, brian@hak.lan.awfulhak.org Subject: Re: ppp filter In-Reply-To: Message from Marc Tardif of "Mon, 15 May 2000 23:06:55 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 May 2000 08:42:23 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I have gone back to the ppp manpage and read the "ppp command" section > (line 1711) and tried the following commands from ppp: > > PPP ON fbsd> nat enable yes > PPP ON fbsd> nat port tcp 192.168.0.2:80 80 > > Still doesn't work though, visitors keep getting the www server on host > fbsd instead of being redirected to fbsd2 (even after hitting reload, in > case the page was cached). Note that I only want www services redirected, > so I don't think I can use the "nat addr" command. Considering my network > setup is rather simple and I've recently cvsup'ed to stable, I really > don't see what could be wrong. Any other ideas would be most welcome. Strange, I've got nat enable yes nat port tcp dev:http http nat port tcp dev:ident ident nat port tcp gate:22 2201 nat port tcp dev:22 2205 nat port tcp rivet:22 2206 nat port tcp hak:22 2212 nat target default in my config and everything works as expected. The only thing I can suggest you do is try ``nat log yes'' and see if anything interesting turns up in /var/log/alias.log. > > You need the ``nat port'' command. > > > > nat port tcp fbsd2.box.com:80 80 > > > > > How can I redirect www requests from the modem interface on one host to > > > another host on my local network? > > > > > > My current network consists of the following machines, where the "fbsd" > > > host also has a modem interface (tun0) with the static IP 1.1.1.1 (for > > > discussion's sake): > > > 192.168.0.1 fbsd.box.com fbsd > > > 192.168.0.2 fbsd2.box.com fbsd2 > > > > > > What I have tried so far is to connect to my isp using ppp and the nat > > > flag and then setting a filter as follows: > > > fbsd# ppp -nat isp > > > ppp ON fbsd> dial > > > PPP ON fbsd> set filter in 0 permit 1.1.1.1 192.168.0.2 tcp src eq 80 dst > > > eq 80 > > > > > > Unfortunately, once I set the filter, I cannot ping anywhere outside my > > > local network so I cannot put tcpdump to good use. Any suggestions to > > > either solve the problem or help get anywhere with this problem would be > > > much appreciated. > > > > > > Marc Tardif -- 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 May 16 7:42:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtpe.casema.net (smtpe.casema.net [195.96.96.172]) by hub.freebsd.org (Postfix) with SMTP id D70FA37BA84 for ; Tue, 16 May 2000 07:42:51 -0700 (PDT) (envelope-from aernoudt@wanadoo.nl) Received: (qmail 9926 invoked from network); 16 May 2000 14:42:50 -0000 Received: from unknown (HELO wanadoo.nl) (212.64.81.30) by smtpe.casema.net with SMTP; 16 May 2000 14:42:50 -0000 Message-ID: <39215E58.D48B6DF3@wanadoo.nl> Date: Tue, 16 May 2000 16:42:32 +0200 From: AB X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en, nl, de, fr MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: ftpd error / problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Ever since installing sshd (which works just fine) my ftpd gives the following error message: ftpd[proces-ID] "getpeername (/usr/libexec/ftpd): socket operation on non-socket" Any help ? Thanks, Aernoudt -- Aernoudt Bottemanne * Powered by FreeBSD * http://www.freebsd.org http://www.openbsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 14:16:47 2000 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (law-f23.hotmail.com [209.185.131.86]) by hub.freebsd.org (Postfix) with SMTP id 0A1A637B8C9 for ; Tue, 16 May 2000 14:16:36 -0700 (PDT) (envelope-from manny8383@hotmail.com) Received: (qmail 56357 invoked by uid 0); 16 May 2000 21:16:33 -0000 Message-ID: <20000516211633.56356.qmail@hotmail.com> Received: from 128.8.96.27 by www.hotmail.com with HTTP; Tue, 16 May 2000 14:16:33 PDT X-Originating-IP: [128.8.96.27] From: "Manny Obrey" To: freebsd-net@FreeBSD.ORG Subject: socket programming, since the topic has come up Date: Tue, 16 May 2000 14:16:33 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org would any kind soul care to share w/ me how to send data out a particular nic. I'm doing socket programming and I'm not able to send outbound packets via the interface that I want. Can one use the 'bind' function to set the outbound nic (somehow)? should I be using raw sockets? I am hoping that I can do this w/o using libpcap ... which is where I'm headed next. any urls, points, suggestions would be helpful tks, manny ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 14:36: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id A482037BAE4 for ; Tue, 16 May 2000 14:35:59 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (sol.cs.binghamton.edu [128.226.123.100]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id RAA07739; Tue, 16 May 2000 17:35:40 -0400 (EDT) Date: Tue, 16 May 2000 17:34:52 -0400 (EDT) From: Zhihui Zhang To: Manny Obrey Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming, since the topic has come up In-Reply-To: <20000516211633.56356.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 16 May 2000, Manny Obrey wrote: > > would any kind soul care to share w/ me how to send data out a particular > nic. I'm doing socket programming and I'm not able to send > outbound packets via the interface that I want. Can one use the 'bind' > function to set the outbound nic (somehow)? should I be using raw sockets? I > am hoping that I can do this w/o using libpcap ... which is where I'm headed > next. > Each NIC has a unique IP address, right? You can bind to that address. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 14:44:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id BFF2837B990 for ; Tue, 16 May 2000 14:44:05 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C1131.dip0.t-ipconnect.de [62.156.17.49]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id XAA29440; Tue, 16 May 2000 23:43:52 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 0416CAC2C; Tue, 16 May 2000 23:44:00 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id XAA21220; Tue, 16 May 2000 23:43:57 +0200 (CEST) (envelope-from alex) Date: Tue, 16 May 2000 23:43:57 +0200 From: Alexander Langer To: Zhihui Zhang Cc: Manny Obrey , freebsd-net@FreeBSD.ORG Subject: Re: socket programming, since the topic has come up Message-ID: <20000516234357.A21177@cichlids.cichlids.com> References: <20000516211633.56356.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from zzhang@cs.binghamton.edu on Tue, May 16, 2000 at 05:34:52PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Zhihui Zhang (zzhang@cs.binghamton.edu): > > Each NIC has a unique IP address, right? You can bind to that address. Yes. Take a look at the daemon I had. You don't bind to INADDR_ANY but to the IP (that is, also for outgoing). You should buy a TCP/IP-programming book such as Stevens' "Unix Network Programming". It's very good. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 15: 0:39 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 2186D37BB1F for ; Tue, 16 May 2000 15:00:37 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000516220036.WQEF21643.mail.rdc1.sfba.home.com@beastie.localdomain>; Tue, 16 May 2000 15:00:36 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id PAA82823; Tue, 16 May 2000 15:10:58 -0700 (PDT) (envelope-from brian) Date: Tue, 16 May 2000 15:10:58 -0700 From: "Brian O'Shea" To: Manny Obrey Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming, since the topic has come up Message-ID: <20000516151058.K337@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: Manny Obrey , freebsd-net@FreeBSD.ORG References: <20000516211633.56356.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000516211633.56356.qmail@hotmail.com>; from Manny Obrey on Tue, May 16, 2000 at 02:16:33PM -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Manny, There are a number of good books on the topic of network programming. I recommend "UNIX Network Programming, Volume 1, 2nd Edition" by W. Richard Stevens (ISBN: 013490012X). If you are going to be doing network programming in a Unix development envoronment, this book is extremely useful. -brian On Tue, May 16, 2000 at 02:16:33PM -0700, Manny Obrey wrote: > > would any kind soul care to share w/ me how to send data out a particular > nic. I'm doing socket programming and I'm not able to send > outbound packets via the interface that I want. Can one use the 'bind' > function to set the outbound nic (somehow)? should I be using raw sockets? I > am hoping that I can do this w/o using libpcap ... which is where I'm headed > next. > > any urls, points, suggestions would be helpful > tks, > manny > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 19:29: 4 2000 Delivered-To: freebsd-net@freebsd.org Received: from netcom.com (netcom17.netcom.com [199.183.9.117]) by hub.freebsd.org (Postfix) with ESMTP id 4F39337B68E for ; Tue, 16 May 2000 19:29:01 -0700 (PDT) (envelope-from stanb@netcom.com) Received: (from stanb@localhost) by netcom.com (8.9.3/8.9.3) id TAA04726 for freebsd-net@FreeBSD.ORG; Tue, 16 May 2000 19:28:54 -0700 (PDT) From: Stan Brown Message-Id: <200005170228.TAA04726@netcom.com> Subject: What the heck! routeing wierdness To: freebsd-net@FreeBSD.ORG (FreeBSD Networking) Date: Tue, 16 May 2000 22:28:53 -0400 (EDT) X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a FreebSD 3.4 machine that I use for a NAT, ipfw firweall from my cablemodem provider to my home nnetwork. Today I was having problems reaching certain hosts (slashdot being one of them). I noticed that I could tracerout to a host 1 hop before shlashdot without a problem, but that traceroutes to is just got lost. So I looked at the routeing tables on that machine. here is wat I found! Script started on Tue May 16 22:22:59 2000 ]0;stan@koala.fas.com;/home/stanstan@koala.fas.com:/home/stan $ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 24.6.61.1 UGSc 44 782073 ed1 4.3.33.177 default UGHS 1 13414 ed1 4.48.171.31 default UGHS 0 410 ed1 24.5.62.2 default UGHS 0 1086 ed1 24.6.61.0 ff:ff:ff:ff:ff:ff UHLWb 0 3 ed1 => 24.6.61/24 link#2 UC 0 0 ed1 24.6.61.1 0:50:3e:e2:10:40 UHLW 8 15654 ed1 1073 24.6.61.255 ff:ff:ff:ff:ff:ff UHLWb 0 8738 ed1 24.25.116.78 default UGHS 0 13000 ed1 24.112.117.50 default UGHS 0 10 ed1 62.125.35.46 default UGHS 0 134 ed1 62.236.0.4 default UGHS 0 484 ed1 63.15.93.89 default UGHS 1 18 ed1 63.225.179.60 default UGHS 0 2064 ed1 64.28.67.48 default UGHS 0 128 ed1 127.0.0.1 127.0.0.1 UH 3 624586 lo0 131.118.80.101 default UGHS 0 52 ed1 151.99.78.38 default UGHS 1 110 ed1 162.39.196.32 default UGHS 0 13348 ed1 170.85.106/24 205.159.77.240 UGSc 0 0 ed0 170.85.109/24 205.159.77.240 UGSc 0 0 ed0 170.85.111/24 205.159.77.240 UGSc 0 0 ed0 170.85.113/24 205.159.77.240 UGSc 0 0 ed0 192.0.4.1 192.0.3.1 UH 0 5101 lp0 192.0.6.1 192.0.5.1 UH 0 4346 lp1 192.168.0.1 205.159.77.240 UGHS 0 0 ed0 192.168.1.1 205.159.77.240 UGHS 0 1155 ed0 198.92.138.246 default UGHS 0 94 ed1 202.53.226.70 default UGHS 0 1190 ed1 202.146.244.167 default UGHS 0 278 ed1 202.146.244.169 default UGHS 0 450 ed1 202.146.246.57 default UGHS 0 582 ed1 202.146.246.143 default UGHS 0 614 ed1 202.146.246.197 default UGHS 0 334 ed1 202.146.254.56 default UGHS 0 27494 ed1 202.147.251.241 default UGHS 0 212 ed1 202.154.42.20 default UGHS 0 162 ed1 202.155.5.166 default UGHS 0 502 ed1 202.155.53.122 default UGHS 0 390 ed1 203.123.252.234 default UGHS 0 486 ed1 205.159.77 link#1 UC 0 0 ed0 205.159.77.225 0:80:ad:7:f9:75 UHLW 0 9 ed0 234 205.159.77.231 8:0:9:4:1a:75 UHLW 0 8 ed0 474 205.159.77.232 link#1 UHLW 15 318024 ed0 205.159.77.234 0:80:ad:8:2b:80 UHLW 3 96 lo0 205.159.77.236 8:0:9:92:55:11 UHLW 2 1562217 ed0 1189 205.159.77.238 0:80:d4:0:11:97 UHLW 0 1232 ed0 222 205.159.77.239 8:0:9:10:6:a5 UHLW 2 1417 ed0 774 205.159.77.240 8:0:9:11:e5:a UHLW 12 735653 ed0 774 205.159.77.255 ff:ff:ff:ff:ff:ff UHLWb 1 4369 ed0 206.31.36.83 default UGHS 0 752 ed1 207.126.96.163 default UGHS 0 252 ed1 208.243.117.123 default UGHS 0 26 ed1 209.74.30.64 default UGHS 0 1380 ed1 209.74.30.178 default UGHS 0 1578 ed1 209.74.30.182 default UGHS 1 1182 ed1 209.198.223.126 default UGHS 0 268 ed1 212.25.97.32 default UGHS 0 18 ed1 216.132.33.42 default UGHS 0 206 ed1 ]0;stan@koala.fas.com;/home/stanstan@koala.fas.com:/home/stan $ Script done on Tue May 16 22:23:10 2000 Can anyone tell me what is going on here? ed0 is the internal interface, and ed1 is the external. The real default route should be to 24.6.61.1 What are all these others? Is this some strange sort of atack? -- Stan Brown stanb@netcom.com 404-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1998 Stan Brown. Redistribution via the Microsoft Network is prohibited. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue May 16 22:40:36 2000 Delivered-To: freebsd-net@freebsd.org Received: from inetfw.sonycsl.co.jp (inetfw.SonyCSL.Co.Jp [203.137.129.4]) by hub.freebsd.org (Postfix) with ESMTP id BE97E37BBCC for ; Tue, 16 May 2000 22:40:26 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (hotaka.csl.sony.co.jp [43.27.98.57]) by inetfw.sonycsl.co.jp (8.9.3+3.2W/3.7Ws3/inetfw/2000050701) with ESMTP id OAA04048 for ; Wed, 17 May 2000 14:40:14 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by hotaka.csl.sony.co.jp (8.9.3/3.7Ws3/hotaka/2000050700) with ESMTP id OAA67518; Wed, 17 May 2000 14:40:14 +0900 (JST) To: altq@csl.sony.co.jp Cc: freebsd-net@FreeBSD.ORG Subject: altq-2.2 is available X-Mailer: Mew version 1.94.2 on Emacs 20.6 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000517144014L.kjc@csl.sony.co.jp> Date: Wed, 17 May 2000 14:40:14 +0900 From: Kenjiro Cho X-Dispatcher: imput version 20000228(IM140) Lines: 36 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org A new version of ALTQ that supports FreeBSD-4.0 is now available. http://www.csl.sony.co.jp/~kjc/software.html -Kenjiro From README: ALTQ -- Version 2.2 May 15, 2000 This is a release of Alternate Queueing for BSD UNIX. ALTQ provides queueing schemes required to realize resource-sharing and quality of service. The ALTQ release is intended to be a flexible platform to promote network research and gain field experience. Now that ALTQ is being developed in the KAME repository, this standalone ALTQ release is back-ported from KAME, and supports only FreeBSD-3.4R and 4.0R. Other platform support (FreeBSD-2.2.8, NetBSD-1.4.2, and OpenBSD-2.6) is available in KAME snap releases. (some tools and documents haven't been merged into KAME, and are available only in this release.) What's New since version 2.1: - FreeBSD-4.0R support - includes dc and ti driver support - runs on alpha architecture (experimental) - tswtcm (time sliding window three color marker) - bug fixes You can get weekly KAME snap releases from You can get the latest ALTQ release from or To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 5:26:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.61]) by hub.freebsd.org (Postfix) with ESMTP id A5FAF37BC22 for ; Wed, 17 May 2000 05:26:10 -0700 (PDT) (envelope-from mgtak@crosswinds.net) Received: from r7a002503as.hlb.cable.rcn.com ([216.164.33.51] helo=vira) by smtp02.mrf.mail.rcn.net with smtp (Exim 2.12 #3) id 12s2ts-0004f4-00 for freebsd-net@freebsd.org; Wed, 17 May 2000 08:26:09 -0400 From: "MG_Tak" To: Subject: yale-tftpd problems. Date: Wed, 17 May 2000 08:24:57 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Good morning, I have an Xterm at home that I'm trying to boot from my FreeBSD machine. It can either use NFS or tftp to boot. Considering that I don't know much about NFS, I decided to give Yale's tftpd (/usr/ports/ftp/yale-tftpd) a try. It compiled just fine, but when I try to run it, with tftpd -s /usr/home/tftproot/ , it doesn't return any kind of message. Instead, I get a message sent to root that tftpd is trying to perform a non-socket operation. Does anyone have an idea what I'm doing wrong, or what could be wrong? Should I try to find another tftp daemon? If so, a couple of suggestions would be largely appreciated. Or should I just forget about tftp and use NFS instead? Thanks for your time, MG_Tak To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 6:52:12 2000 Delivered-To: freebsd-net@freebsd.org Received: from relay.wplus.net (relay.wplus.net [195.131.52.179]) by hub.freebsd.org (Postfix) with ESMTP id 88F9637BB33; Wed, 17 May 2000 06:52:04 -0700 (PDT) (envelope-from dms@woland.wplus.net) Received: from woland.wplus.net (woland.wplus.net [195.131.0.39]) by relay.wplus.net (8.9.1/8.9.1/wplus.2) with ESMTP id RAA73690; Wed, 17 May 2000 17:51:59 +0400 (MSD) X-Real-To: freebsd-hackers@FreeBSD.ORG Received: (from dms@localhost) by woland.wplus.net (8.9.3/8.9.1/wplus.2) id RAA04686; Wed, 17 May 2000 17:51:59 +0400 (MSD) Message-ID: X-Mailer: XFMail 1.4.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Date: Wed, 17 May 2000 17:51:59 +0400 (MSD) From: Dmitry Samersoff To: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: bpf question Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have traffic metering program using bpf, it works fine on relatevly free net but looses about 30% of packets on havy loaded one. Could any body suggest me something? Thank you! -- Dmitry Samersoff, dms@wplus.net, ICQ:3161705 http://devnull.wplus.net * There will come soft rains ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 13:39:17 2000 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f121.law9.hotmail.com [64.4.9.121]) by hub.freebsd.org (Postfix) with SMTP id 6F61D37B511 for ; Wed, 17 May 2000 13:39:15 -0700 (PDT) (envelope-from jsmith_118@hotmail.com) Received: (qmail 93155 invoked by uid 0); 17 May 2000 20:39:14 -0000 Message-ID: <20000517203914.93154.qmail@hotmail.com> Received: from 206.252.198.89 by www.hotmail.com with HTTP; Wed, 17 May 2000 13:39:14 PDT X-Originating-IP: [206.252.198.89] From: "Joe Smith" To: freebsd-net@freebsd.org Subject: ip_flow.c (ip_fastforward) Date: Wed, 17 May 2000 16:39:14 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org We're using ip_fastfowarding, on a system routing 20k-30k packets per second between two intel pro/100+ cards. When we enable it, it causes strange system behaviour; System gets sluggish, pauses from time to time. It may be because IPFLOW_MAX is set to 256. We attempted to change it to 8192, but the system halts immediately after enabling fastforward. Can anyone advise how we can properly adjust varables in ip_flow.c? (IPFLOW_MAX, IPFLOW_HASHBITS, IPFLOW_HASHSIZE, IPFLOW_TIMER, etc). (We're using FreeBSD 3.4-STABLE, running BGP4 with 72,000 routes in kernel). Any help would be appreicated! ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 14:40:19 2000 Delivered-To: freebsd-net@freebsd.org Received: from obie.softweyr.com (obie.softweyr.com [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id DCC4637BEDE; Wed, 17 May 2000 14:40:05 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (ip43.salt-lake-city6.ut.pub-ip.psi.net [38.27.95.43]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id PAA14146; Wed, 17 May 2000 15:39:54 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <39231213.62692C57@softweyr.com> Date: Wed, 17 May 2000 15:41:39 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Dmitry Samersoff Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: bpf question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dmitry Samersoff wrote: > > I have traffic metering program using bpf, > it works fine on relatevly free net but looses about 30% > of packets on havy loaded one. > > Could any body suggest me something? A much faster processor? What kind of CPU/memory/network interface are you using? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 23:10:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from wcug.wwu.edu (sloth.wcug.wwu.edu [140.160.164.200]) by hub.freebsd.org (Postfix) with SMTP id 80EC237BD28 for ; Wed, 17 May 2000 23:10:46 -0700 (PDT) (envelope-from tcole@wcug.wwu.edu) Received: (qmail 19062 invoked by uid 1085); 18 May 2000 06:10:44 -0000 Date: Wed, 17 May 2000 23:10:44 -0700 From: Travis Cole To: Dmitry Samersoff Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: bpf question Message-ID: <20000517231043.A13544@wcug.wwu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: ; from dms@wplus.net on Wed, May 17, 2000 at 05:51:59PM +0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, May 17, 2000 at 05:51:59PM +0400, Dmitry Samersoff wrote: > I have traffic metering program using bpf, > it works fine on relatevly free net but looses about 30% > of packets on havy loaded one. Are you doing dns lookups? Don't do those and you may fix your problem. > > Could any body suggest me something? > > Thank you! > > -- > Dmitry Samersoff, dms@wplus.net, ICQ:3161705 > http://devnull.wplus.net > * There will come soft rains ... > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- --Travis "Linux is something for Windows haters, BSD is something for Unix lovers" (Heike S., Febr. 98) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed May 17 23:53:35 2000 Delivered-To: freebsd-net@freebsd.org Received: from cr1003333-a.crdva1.bc.home.com (cr1003333-a.crdva1.bc.wave.home.com [24.113.51.240]) by hub.freebsd.org (Postfix) with ESMTP id 0E9A337BCF2 for ; Wed, 17 May 2000 23:53:29 -0700 (PDT) (envelope-from pangolin@home.com) Received: from cr1003333-a.crdva1.bc.wave.home.com. (localhost [127.0.0.1]) by cr1003333-a.crdva1.bc.home.com (8.9.3/8.9.3) with ESMTP id XAA02527 for ; Wed, 17 May 2000 23:53:26 -0700 (PDT) (envelope-from pangolin@home.com) Message-Id: <200005180653.XAA02527@cr1003333-a.crdva1.bc.home.com> X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 17 May 2000 23:53:26 -0700 (PDT) Reply-To: Jonathan Hanna Organization: Pangolin Systems From: Jonathan Hanna To: freebsd-net@freebsd.org Subject: ed driver problem Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am running two network cards detected ad "ed" on a Micronics M5Pi PCI/ISA motherboard. One is a Lynksys PCI and one is a Realtek ISA PnP. The OS is 4.0-Stable, very recent. The PCI card is assigned ed0. The ISA PnP card is assigned ed2. I have two problems: - the boot hangs this was fixed by adding "return 0;" in if_ed.c at line 905 in ed_get_Linksys(sc) - ed0 says "ed0: device timeout" and does not seem to work I have tried "link0" "link1" and "link2" I am a little suspicious of the IRQ, as it seems to be shared with the video card, though they are both PCI. Any ideas? My demsg follows: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-STABLE #3: Wed May 17 17:37:40 PDT 2000 root@mgfw.pangolin-systems.com:/home/src/sys/compile/MGFW Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P5 (64.48-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x515 Stepping = 5 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 29057024 (28376K bytes) Preloaded elf kernel "kernel" at 0xc03ac000. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 2.0 on pci0 isa0: on isab0 pci0: (vendor=0x1c1c, dev=0x0001) at 3.0 irq 14 ed0: port 0xd000-0xd01f irq 5 at device 12.0 on pci0 ed0: address 00:20:78:13:60:2a, type NE2000 (16 bit) pci0: at 15.0 irq 5 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 fd1: <1200-KB 5.25" drive> on fdc0 drive 1 WARNING: "fd" is usurping "fd"'s cdevsw[] WARNING: "fd" is usurping "fd"'s bmaj ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 ed2: at port 0x220-0x23f irq 9 on isa0 ed2: address 00:c0:a8:4e:59:62, type NE2000 (16 bit) IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, l ogging limited to 1000 packets/entry by default ad0: 610MB [1240/16/63] at ata0-master using BIOSPIO ad1: 2014MB [4092/16/63] at ata0-slave using BIOSPIO Mounting root from ufs:/dev/ad0s1a ed0: device timeout ed0: device timeout ed0: device timeout ed0: device timeout ... Jonathan Hanna To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu May 18 8:38:50 2000 Delivered-To: freebsd-net@freebsd.org Received: from aluminum.jp.above.net (aluminum.jp.above.net [211.13.224.123]) by hub.freebsd.org (Postfix) with ESMTP id 3A22C37B5F5 for ; Thu, 18 May 2000 08:38:47 -0700 (PDT) (envelope-from koji@jp.above.net) Received: from localhost (localhost [127.0.0.1]) by aluminum.jp.above.net (8.9.3/8.9.3) with ESMTP id AAA14648 for ; Fri, 19 May 2000 00:38:43 +0900 (JST) (envelope-from koji@jp.above.net) Date: Fri, 19 May 2000 00:38:43 +0900 (JST) Message-Id: <20000519.003843.41647712.koji@jp.above.net> To: freebsd-net@freebsd.org Subject: cannot ftp to link-local address From: Koji Kondo X-Mailer: Mew version 1.95b34 on Emacs 20.6 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm using 4.0-stable(20000516). I cannot ftp to link-local address. % ftp fe80::1%lo0 ftp: fe80: No address associated with hostname ftp: Can't connect or login to host `fe80' -koji To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu May 18 20:21:30 2000 Delivered-To: freebsd-net@freebsd.org Received: from super-g.com (super-g.com [207.240.140.161]) by hub.freebsd.org (Postfix) with ESMTP id 1E91E37BA2F for ; Thu, 18 May 2000 20:21:27 -0700 (PDT) (envelope-from spork@super-g.com) Received: by super-g.com (Postfix, from userid 1000) id 7EAC7B419; Thu, 18 May 2000 23:21:25 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by super-g.com (Postfix) with SMTP id 695AAB401; Thu, 18 May 2000 23:21:25 -0400 (EDT) Date: Thu, 18 May 2000 23:21:25 -0400 (EDT) From: spork X-Sender: spork@super-g.inch.com To: Olaf Hoyer Cc: freebsd-net@FreeBSD.ORG Subject: Re: sniffing networks In-Reply-To: <38725AB4.852D4FAE@fbwi.fh-wilhelmshaven.de> 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 Tue, 4 Jan 2000, Olaf Hoyer wrote: (ouch, gotta get to these lists more often...) > Yes, they began to install one switch, so that net network is divided > into 11 segments (floors in our home), then money was at its end... It may be too expensive, but we're using a switch/router that gives us 48 ports for < $5K US. It priced out much lower than most chassis-based units, and it has some nifty features. You can give a "master" vlan an IP, say a /24 and include other ports as "sub-vlans". Each of these can be bound to a port and either a range of IPs or a single IP. It locks people down pretty hard, and if they try to nab someone else's IP, they simply drop out of the vlan. There's really no need to do MAC-level locking, as everything happens at the IP layer. You can also flip a switch to prevent users from even exchanging traffic with each other... Very nifty, but maybe out of your price range, I don't know. Charles > Here in Germany some hardware is quite expensive, or can someone point > me to a good source for inexpensive _and_ reliable products? > > Regards > Olaf Hoyer > > > > > 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 Fri May 19 4: 5:34 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 8E58237BD6F for ; Fri, 19 May 2000 04:05:27 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id QAA18469 for ; Fri, 19 May 2000 16:33:46 +0530 (IST) Received: from sund6.sasi.com ([10.0.16.6]) by sasi.com; Fri, 19 May 2000 16:33:41 +0000 (IST) Received: from localhost (gbnaidu@localhost) by sund6.sasi.com (8.9.3/8.9.1) with ESMTP id QAA17689 for ; Fri, 19 May 2000 16:36:33 +0530 (IST) Date: Fri, 19 May 2000 16:36:33 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Subject: warnings in compilatoin... 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, IN my kernel, I have used some write() calls. But the compiler giving warning messages saying that "implicit declaration". Once I boot this kernel, whenever a write() call is executed, it is panicking. I guess it is because write() is supposed to be used by kernel. What do I need to use if I want the similar functionality as write()? thanks --gb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 6:57:34 2000 Delivered-To: freebsd-net@freebsd.org Received: from relay.wplus.net (relay.wplus.net [195.131.52.179]) by hub.freebsd.org (Postfix) with ESMTP id 30B7237BE21; Fri, 19 May 2000 06:57:27 -0700 (PDT) (envelope-from dms@woland.wplus.net) Received: from woland.wplus.net (woland.wplus.net [195.131.0.39]) by relay.wplus.net (8.9.1/8.9.1/wplus.2) with ESMTP id RAA60557; Fri, 19 May 2000 17:57:25 +0400 (MSD) X-Real-To: freebsd-net@FreeBSD.ORG Received: (from dms@localhost) by woland.wplus.net (8.9.3/8.9.1/wplus.2) id RAA00390; Fri, 19 May 2000 17:57:24 +0400 (MSD) Message-ID: X-Mailer: XFMail 1.4.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20000517231043.A13544@wcug.wwu.edu> Date: Fri, 19 May 2000 17:57:24 +0400 (MSD) From: Dmitry Samersoff To: Travis Cole Subject: Re: bpf question Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 18-May-2000 Travis Cole wrote: > On Wed, May 17, 2000 at 05:51:59PM +0400, Dmitry Samersoff wrote: >> I have traffic metering program using bpf, >> it works fine on relatevly free net but looses about 30% >> of packets on havy loaded one. > > Are you doing dns lookups? Don't do those and you may fix your problem. Thanks for all. I tryed all usual solution (change CPU, bring packet parsing out of reading thread and so on.) and now I have stoped on perforamnce bpf itself. Is there alternate driver or can changing of bpf queue in kernel help, and where I can read about it? Did any body work with raw ethernet and is it helpfull? -- Dmitry Samersoff, dms@wplus.net, ICQ:3161705 http://devnull.wplus.net * There will come soft rains ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 8: 2:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp-3.ig.com.br (d062.200-225-157.ig.com.br [200.225.157.62]) by hub.freebsd.org (Postfix) with SMTP id 4190A37BF12 for ; Fri, 19 May 2000 08:02:37 -0700 (PDT) (envelope-from jorge@acron.ind.br) Received: (qmail 29781 invoked from network); 19 May 2000 15:03:39 -0000 Received: from ppp111-bsano204.telebrasilia.net.br (HELO cbf) (200.193.245.111) by 200.225.157.62 with SMTP; 19 May 2000 15:03:39 -0000 Message-ID: <007f01bfc1a2$bca11800$6500a8c0@acron.int> From: "Jorge P Vasquez" To: Subject: working with mbufs Date: Fri, 19 May 2000 11:58:46 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007C_01BFC189.960BCFA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_007C_01BFC189.960BCFA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all. I need some clues about where to find information on working with mbufs. = To be more specific, I need to strip the ethernet header of a packet, do = some processing (for instance, IP=3Dmtod (m, struct ip*) should work = correctly) with it and then restore the _original_ ether header. Could someone please = give me a pointer to the information I need to get started (besides mbuf.h = and uipc_mbuf.c, which were of some help, but weren't enough) or to some = sample code? Thanks. Jorge -- Jorge Peixoto Vasquez Electrical Engineer Acron Telecomunicacoes e Informatica LTDA Brazil ------=_NextPart_000_007C_01BFC189.960BCFA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all.

I need some clues about where to find information on = working=20 with mbufs. To
be more specific, I need to strip the ethernet header = of a=20 packet, do some
processing (for instance, IP=3Dmtod (m, struct ip*) = should work=20 correctly) with
it and then restore the _original_ ether header. = Could=20 someone please give
me a pointer to the information I need to get = started=20 (besides mbuf.h and
uipc_mbuf.c, which were of some help, but weren't = enough)=20 or to some sample
code?

Thanks.

Jorge
--
Jorge = Peixoto=20 Vasquez
Electrical Engineer
Acron Telecomunicacoes e Informatica=20 LTDA
Brazil
------=_NextPart_000_007C_01BFC189.960BCFA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 8:12:18 2000 Delivered-To: freebsd-net@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id A289837BF21; Fri, 19 May 2000 08:12:05 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id KAA27497; Fri, 19 May 2000 10:11:53 -0500 (CDT) (envelope-from dan) Date: Fri, 19 May 2000 10:11:53 -0500 From: Dan Nelson To: Dmitry Samersoff Cc: Travis Cole , freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: bpf question Message-ID: <20000519101153.C18334@dan.emsphone.com> References: <20000517231043.A13544@wcug.wwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from "Dmitry Samersoff" on Fri May 19 17:57:24 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the last episode (May 19), Dmitry Samersoff said: > On 18-May-2000 Travis Cole wrote: > > On Wed, May 17, 2000 at 05:51:59PM +0400, Dmitry Samersoff wrote: > >> I have traffic metering program using bpf, it works fine on > >> relatevly free net but looses about 30% of packets on havy loaded > >> one. > > > > Are you doing dns lookups? Don't do those and you may fix your problem. > > Thanks for all. I tryed all usual solution (change CPU, bring packet > parsing out of reading thread and so on.) and now Define "heavily loaded". If you just run "tcpdump -n" for a couple minutes and hit ^C, does it report any dropped packets? If it does, then your machine probably isn't fast enough to handle the network load. If I flood my 100mbit network with small packets, and monitor it on a P6/200 with "tcpdump -n", I drop from 1-10% of the packets. If I use "tcpdump -n -w logfile.txt", I drop no packets. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 11:11:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 5613237B532 for ; Fri, 19 May 2000 11:11:41 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000519181140.UUIF22234.mail.rdc1.sfba.home.com@beastie.localdomain>; Fri, 19 May 2000 11:11:40 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id LAA92594; Fri, 19 May 2000 11:22:08 -0700 (PDT) (envelope-from brian) Date: Fri, 19 May 2000 11:22:07 -0700 From: "Brian O'Shea" To: Jorge P Vasquez Cc: freebsd-net@FreeBSD.ORG Subject: Re: working with mbufs Message-ID: <20000519112207.S337@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: Jorge P Vasquez , freebsd-net@FreeBSD.ORG References: <007f01bfc1a2$bca11800$6500a8c0@acron.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int>; from Jorge P Vasquez on Fri, May 19, 2000 at 11:58:46AM -0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, May 19, 2000 at 11:58:46AM -0300, Jorge P Vasquez scribbled: > Hi all. > > I need some clues about where to find information on working with mbufs. To > be more specific, I need to strip the ethernet header of a packet, do some > processing (for instance, IP=mtod (m, struct ip*) should work correctly) with > it and then restore the _original_ ether header. Could someone please give > me a pointer to the information I need to get started (besides mbuf.h and > uipc_mbuf.c, which were of some help, but weren't enough) or to some sample > code? There is a good discussion of mbufs in chapter 2 of "TCP/IP Illustrated, Volume 2: The Implementation", W. Richard Stevens (ISBN 0-201-63354-X). -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 13: 6:40 2000 Delivered-To: freebsd-net@freebsd.org Received: from arf.bussert.COM (arf.bussert.com [209.183.67.130]) by hub.freebsd.org (Postfix) with ESMTP id CA96937BF0E for ; Fri, 19 May 2000 13:06:36 -0700 (PDT) (envelope-from matheny@bussert.com) Received: from localhost (matheny@localhost) by arf.bussert.COM (8.9.3/8.9.3) with ESMTP id PAA89235 for ; Fri, 19 May 2000 15:34:28 -0500 (EST) (envelope-from matheny@bussert.com) Date: Fri, 19 May 2000 15:34:28 -0500 (EST) From: Blake Matheny To: freebsd-net@freebsd.org Subject: 2 nics in web server giving problems. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have 2 network cards (pci 10/100 intel pro's) in a web server running freebsd 3.4. I get messages periodically (at the bottom of the email). This didn't happen before I put the second nic in. My ip set up: 209.183.78.161 Gateway(router) 209.183.78.163 A Firewall 209.183.78.164 NIC 1 in Web Server 209.183.78.165 NIC 2 in Web Server Everything is plugged into the same hub (Switched HP 10Base hub) and the firewall has 2 nics with 1 of them plugged into the hub, the other doing NAT for a private network. Anyone have any insight as to what these 'errors' might be? Thanks in advance. Blake Matheny Bussert Consulting Network Engineer (765)423-2100 matheny@bussert.com ---------Begining of Mail Output-------- checking setuid files and devices: checking for uids of 0: root 0 toor 0 checking for passwordless accounts: web.in2600.com kernel log messages: arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.162 is on fxp0 but got reply from 00:50:04:a5:d9:7c on fxp1 arp: 209.183.78.162 is on fxp0 but got reply from 00:50:04:a5:d9:7c on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri May 19 13:28:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from arf.bussert.COM (arf.bussert.com [209.183.67.130]) by hub.freebsd.org (Postfix) with ESMTP id D4EB837B5FA for ; Fri, 19 May 2000 13:28:06 -0700 (PDT) (envelope-from matheny@bussert.com) Received: from localhost (matheny@localhost) by arf.bussert.COM (8.9.3/8.9.3) with ESMTP id PAA89359; Fri, 19 May 2000 15:55:53 -0500 (EST) (envelope-from matheny@bussert.com) Date: Fri, 19 May 2000 15:55:53 -0500 (EST) From: Blake Matheny To: Tom Frontera Cc: freebsd-net@freebsd.org Subject: Re: 2 nics in web server giving problems. 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 The firewall has 2 nic's, one nic is connected to the public hub. The other nic is connected to a seperate private hub using 10.10.10.x as it's ip range. I think those entries from 209.183.78.163 are when I tried to ssh in from behind that firewall. I don't think the firewall is coming into play with those error messages though. Thanks. Blake Matheny Bussert Consulting Network Engineer (765)423-2100 matheny@bussert.com On Fri, 19 May 2000, Tom Frontera wrote: > You can't have the same ip#'s accross two different networks. The NAT nic > card should use private ip space like 192.168.*.* and will act like the > gateway to your 209.183.78.* network... does that make sense? > > Tom Frontera > Sys Admin > (805)684-6060 ext 208 > http://www.valueclick.com/ > > On Fri, 19 May 2000, Blake Matheny wrote: > > > Hi, I have 2 network cards (pci 10/100 intel pro's) in a web server > > running freebsd 3.4. I get messages periodically (at the bottom of the > > email). This didn't happen before I put the second nic in. My ip set up: > > 209.183.78.161 Gateway(router) > > 209.183.78.163 A Firewall > > 209.183.78.164 NIC 1 in Web Server > > 209.183.78.165 NIC 2 in Web Server > > Everything is plugged into the same hub (Switched HP 10Base hub) and the > > firewall has 2 nics with 1 of them plugged into the hub, the other doing > > NAT for a private network. Anyone have any insight as to what these > > 'errors' might be? Thanks in advance. > > > > > > Blake Matheny > > Bussert Consulting > > Network Engineer > > (765)423-2100 > > matheny@bussert.com > > > > ---------Begining of Mail Output-------- > > checking setuid files and devices: > > > > > > checking for uids of 0: > > root 0 > > toor 0 > > > > > > checking for passwordless accounts: > > > > > > web.in2600.com kernel log messages: > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.161 is on fxp0 but got reply from 00:00:0c:6d:98:c4 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.162 is on fxp0 but got reply from 00:50:04:a5:d9:7c on fxp1 > > arp: 209.183.78.162 is on fxp0 but got reply from 00:50:04:a5:d9:7c on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > arp: 209.183.78.164 is on lo0 but got reply from 00:90:27:9c:3e:29 on fxp1 > > arp: 209.183.78.163 is on fxp0 but got reply from 00:50:04:a5:d7:af on fxp1 > > > > > > > > > > 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 Fri May 19 17:49:29 2000 Delivered-To: freebsd-net@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id CD21937B74F for ; Fri, 19 May 2000 17:49:24 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12sxS2-0009IS-00; Sat, 20 May 2000 07:49:10 +0700 Date: Sat, 20 May 2000 07:49:10 +0700 (ALMST) From: Boris Popov To: Jorge P Vasquez Cc: freebsd-net@freebsd.org Subject: Re: working with mbufs In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 19 May 2000, Jorge P Vasquez wrote: > I need some clues about where to find information on working with mbufs. To > be more specific, I need to strip the ethernet header of a packet, do some > processing (for instance, IP=mtod (m, struct ip*) should work correctly) with > it and then restore the _original_ ether header. Could someone please give > me a pointer to the information I need to get started (besides mbuf.h and > uipc_mbuf.c, which were of some help, but weren't enough) or to some sample > code? There is a good paper about "Networking Implementation Notes" located at the /usr/share/doc/smm/18.net directory. Unfortunately, the above details is not enough to give complete answer. Look also at Netgraph interface. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 4:52:52 2000 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id A8CAF37B589; Sat, 20 May 2000 04:52:45 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id HAA00591; Sat, 20 May 2000 07:52:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 20 May 2000 07:52:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dmitry Samersoff Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: bpf question 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 Wed, 17 May 2000, Dmitry Samersoff wrote: > I have traffic metering program using bpf, > it works fine on relatevly free net but looses about 30% > of packets on havy loaded one. Two possibilities come to mind: 1) You machine is too slow (pretty slow), your bus is too slow (ISA), or your cards are too slow (maybe if_ed). 2) You're using multiple processes/rforks to support the application, which results in a full context switch during BPF reads. Instead, use our userland pthreads library. Only you can tell us about (1) -- I can tell you I have successfully snarfed 60+mbps (probably more like 70) off of two 100mbps interfaces simultaneously with the CPU still quite low on FreeBSD 4.0, with a moderately decent machine (400mhzish box). There was no packet loss at all, and I was pulling the whole packet off the wire, not just the header. In this experiment, the limiting factors were the data-pumping machines, not the sniffing machine. Number (2) is interesting -- if I run two tcpdumps at the same time, I see a huge loss of performance, as all copies from kernel to userland happen twice, and many packet deliveries cause both processes to wake up and be scheduled. For high speed sniffing, using only a single process (i.e., just a relatively fast kernel->user1->kernel switch). Preventing a full userland context switch and making sure all BPF data goes through a single process makes a big difference (measurements on a p166). Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 6:46:11 2000 Delivered-To: freebsd-net@freebsd.org Received: from alpham.uni-mb.si (alpham.uni-mb.si [164.8.1.101]) by hub.freebsd.org (Postfix) with ESMTP id AA67C37B5D9 for ; Sat, 20 May 2000 06:46:08 -0700 (PDT) (envelope-from maddave@suxx.eu.org) Received: from spider.y0u.net ([164.8.70.227]) by alpham.uni-mb.si (PMDF V5.2-32 #44902) with ESMTP id <01JPMMQEL3ZI001XTA@alpham.uni-mb.si> for freebsd-net@freebsd.org; Sat, 20 May 2000 15:46:06 MET Received: by spider.y0u.net (Postfix, from userid 500) id 0400317812; Sat, 20 May 2000 15:59:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by spider.y0u.net (Postfix) with ESMTP id D7A0B3E834 for ; Sat, 20 May 2000 15:59:26 +0200 (CEST) Date: Sat, 20 May 2000 15:59:26 +0200 (CEST) From: MadDave Subject: ARP X-Sender: maddave@spider.y0u.net To: freebsd-net@freebsd.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 Hellow !!! My test network looks like this: _____ _____ _____ | | | | | | | Win |------|Free | | Win | | 1 | | BSD |-------| 2 | |_____| |_____| |_____| Configuration of Win1: IP: 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 Configuration of Win2: IP: 192.168.0.201 netmask 255.255.255.0 broadcast: 192.168.0.255 Configuration of FreeBSD: Interface 1: IP: 192.168.0.1 netmask: 255.255.255.128 Interface 2: IP: 192.168.0.200 netmask: 255.255.255.128 Problem: I tried to set up PROXY-ARP for this two windows machines: arp -s 192.168.0.2 pub arp -s 192.168.0.201 pub FreeBSD seems to publish both entries od ALL interfaces, so that windows machine thinks that someone has taken the same IP that windows have. Question 1: How do i tell FreeBSD to publish ARP entry on only one card. Under linux this is accomplished by -i option. Question 2: How do i tell FreeBSD to do PROXY-ARP of network and not for specific IPs ?? Under linux this is acomplished by netmask option. Thanks for answers.. bye, MadDave ---------------------------------------------------------------------- |Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.| ---------------------------------------------------------------------- | > FreeBSD < - > Power to SERVE < | ---------------------------------------------------------------------- | Open source software - with no walls and fences, who needs Windows | | and Gates? | ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 9:39:38 2000 Delivered-To: freebsd-net@freebsd.org Received: from neptun.rz.uni-duesseldorf.de (sirene.rz.uni-duesseldorf.de [134.99.128.2]) by hub.freebsd.org (Postfix) with ESMTP id 2D03E37B7C8 for ; Sat, 20 May 2000 09:39:34 -0700 (PDT) (envelope-from ponomare@uni-duesseldorf.de) Received: from ponomare.krion (pc.unistrasse-1.uni-duesseldorf.de [134.99.26.17]) by neptun.rz.uni-duesseldorf.de (Sun Internet Mail Server sims.4.0.1999.06.13.00.20) with SMTP id <0FUV005FRA9U00@neptun.rz.uni-duesseldorf.de> for freebsd-net@freebsd.org; Sat, 20 May 2000 18:39:30 +0200 (MET DST) Date: Sat, 20 May 2000 18:40:05 +0200 From: Kirill Ponomarew Subject: Routing Table in FreeBSD 4.0 To: freebsd-net@freebsd.org Reply-To: ponomare@uni-duesseldorf.de Message-id: <00052018403701.00771@ponomare.krion> MIME-version: 1.0 X-Mailer: KMail [version 1.0.28] Content-type: text/plain Content-transfer-encoding: 7BIT Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hallo I have the following problem with my network configuration: my normal routing tables is: Destination Gateway Genmask IFace 134.99.26.17 0.0.0.0 255.255.255.255 eth0 134.99.26.0 0.0.0.0 255.255.255.0 eth0 127.0.0.0 0.0.0.0 255.0.0.0. etho 0.0.0.0 134.99.26.1 (sorry that i'm using here route table from Linux, I can't mail from FreeBSD because of network troubles) IP is 134.99.26.17 Gateway is 134.99.26.1 the problem is that gateway 134.99.26.1 is behind firewall at the university I can't use such things like ftp <-- for ports downloading, icq, real audio etc. On purpose to make our student life better, our UniAdmin has made the second gateway, we have to log in the second gateway with ssh and then we can use all services like ftp etc. The question is - how to add in FreeBSD the second gateway from the other subnetwork ??? IP of second gateway is 134.99.162.254 I tried the following things: route add -net 134.99.162.0 -mask 255.255.255.0 0.0.0.0 route add default 134.99.162.254 route: writing to routing socket: File exists in Linux it worked always: route add -net 134.99.162.0 netmask 255.255.255.0 dev eth0 route add default gw 134.99.162.254 thank you for your help -- Kirill Ponomarew Tro New Media GmbH Zimmerstr. 19 40215 Duesseldorf Deutschland Fon: +49 211 / 31 16 55-21 Fax: +49 211 / 31 16 55-33 Mobile: +49 173 / 43-5555-4 Mail: kirill@tro.de "That vulnerability is completely theoretical." -- Microsoft -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: NnF8YVk2MEyRqGD68pa0Y6j9kagUiD54 iQA/AwUBOSbACLSU3AmMQCDLEQLZKACgo+ZVb5le3oifooIKRhbFdeNq+wYAoIAs PJ0r9/ry4FjJ1WVJdOg0esbG =/l0y -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 10:21:25 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtpe.casema.net (smtpe.casema.net [195.96.96.172]) by hub.freebsd.org (Postfix) with SMTP id 58B3137B5A0 for ; Sat, 20 May 2000 10:21:21 -0700 (PDT) (envelope-from aernoudt@wanadoo.nl) Received: (qmail 28094 invoked from network); 20 May 2000 17:21:17 -0000 Received: from unknown (HELO wanadoo.nl) (212.64.80.146) by smtpe.casema.net with SMTP; 20 May 2000 17:21:17 -0000 Message-ID: <3926C973.92F2BC6F@wanadoo.nl> Date: Sat, 20 May 2000 19:20:51 +0200 From: AB X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: de, en, nl, fr MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: ftpd error message: can somebody explain me what it means ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, No matter how many books/man pages I read, I can not find the explanation for this error message: ftpd[proces-ID] "getpeername (/usr/libexec/ftpd): socket operation on non-socket" On an other machine I got this too, until I changed ftp back to be started from inetd (what I do not like at all, but at least now I can use ssh and ftp on the same machine, with ssh being started from rc.local) But when I change this on my other machine this does not help... Any help ? Aernoudt -- Aernoudt Bottemanne * Powered by FreeBSD * http://www.freebsd.org http://www.openbsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 15:19:35 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rz.fh-wilhelmshaven.de (mail.rz.fh-wilhelmshaven.de [139.13.25.134]) by hub.freebsd.org (Postfix) with ESMTP id 5044137B51A for ; Sat, 20 May 2000 15:19:30 -0700 (PDT) (envelope-from ohoyer@fbwi.fh-wilhelmshaven.de) Received: from fettesau.stuwo.fh-wilhelmshaven.de (stuwopc5.stuwo.fh-wilhelmshaven.de [139.13.209.5]) by mail.rz.fh-wilhelmshaven.de (8.9.3/8.9.3) with SMTP id AAA27568 for ; Sun, 21 May 2000 00:19:23 +0200 (MET DST) Message-Id: <4.1.20000521000029.00c86bd0@mail.rz.fh-wilhelmshaven.de> X-Sender: ohoyer@mail.rz.fh-wilhelmshaven.de X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sun, 21 May 2000 00:03:37 +0200 To: freebsd-net@freebsd.org From: Olaf Hoyer Subject: PPPoE standard? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! As I'm going deeper into things as cable modems and that stuff, and have to deal with the phenomenom PPPoE, could anyone point me to some resources soing some detailed insight in this and practical appliances? Is this standardized already in a RFC? Heard some opinions from some guys that this is not standardized yet... Anyone knows what OS is used in those "routers" for cable modems/DSL lines manufactured by DLink, Linksys etc.? Regards Olaf Hoyer -------- Olaf Hoyer www.nightfire.de mailto:Olaf.Hoyer@nightfire.de FreeBSD- Turning PC's into workstations ICQ:22838075 Liebe und Hass sind nicht blind, aber geblendet vom Feuer, dass sie selber mit sich tragen. (Nietzsche) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 18:18:30 2000 Delivered-To: freebsd-net@freebsd.org Received: from hetnet.nl (net090s.hetnet.nl [194.151.104.183]) by hub.freebsd.org (Postfix) with ESMTP id B48E037B81E for ; Sat, 20 May 2000 18:18:20 -0700 (PDT) (envelope-from wilbertdg@hetnet.nl) Received: from pecan ([63.202.83.148]) by hetnet.nl with Microsoft SMTPSVC(5.5.1877.387.38); Sun, 21 May 2000 03:15:03 +0200 Message-ID: <000a01bfc2d2$ae4d85a0$bcf0fea9@icsi.berkeley.edu> From: "Wilbert de Graaf" To: , "Olaf Hoyer" References: <4.1.20000521000029.00c86bd0@mail.rz.fh-wilhelmshaven.de> Subject: Re: PPPoE standard? Date: Sat, 20 May 2000 20:14:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Olaf, > Is this standardized already in a RFC? > Heard some opinions from some guys that this is not standardized yet... I's RFC 2516 (http://www.ietf.org/rfc/rfc2516.txt) > Anyone knows what OS is used in those "routers" for cable modems/DSL lines > manufactured by DLink, Linksys etc.? You mean the router terminating this PPP ? I don't know the OS, but router manufacturers like Cisco and Redback.support it. - Wilbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 18:50:32 2000 Delivered-To: freebsd-net@freebsd.org Received: from assaris.sics.se (t2o69p61.telia.com [62.20.144.181]) by hub.freebsd.org (Postfix) with ESMTP id 1D26D37B7FF for ; Sat, 20 May 2000 18:50:28 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id DAA11777; Sun, 21 May 2000 03:50:35 +0200 (CEST) (envelope-from assar) To: AB Cc: freebsd-net@FreeBSD.ORG Subject: Re: ftpd error message: can somebody explain me what it means ? References: <3926C973.92F2BC6F@wanadoo.nl> From: Assar Westerlund Date: 21 May 2000 03:50:34 +0200 In-Reply-To: AB's message of "Sat, 20 May 2000 19:20:51 +0200" Message-ID: <5l7lcohdsl.fsf@assaris.sics.se> Lines: 14 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org AB writes: > No matter how many books/man pages I read, I can not find the > explanation for this error message: > > ftpd[proces-ID] "getpeername (/usr/libexec/ftpd): socket operation on > non-socket" ftpd assumes it has been started from inetd and therefore that file descriptor 0 is a TCP-socket. If this is not the case you get the error you quotes above. I repeat: ftpd has to be started by inetd (or something inetd-like). /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat May 20 21:18: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from noname.cbr.amur.ru (noname.cbr.amur.ru [195.151.156.206]) by hub.freebsd.org (Postfix) with ESMTP id C6AE137B732 for ; Sat, 20 May 2000 21:17:52 -0700 (PDT) (envelope-from maxim@amur.cbr.ru) Received: from localhost (localhost [127.0.0.1]) by noname.cbr.amur.ru (8.9.3/8.9.3) with ESMTP id OAA01517; Sun, 21 May 2000 14:16:44 +1000 (YAKST) (envelope-from maxim@amur.cbr.ru) Date: Sun, 21 May 2000 14:16:44 +1000 (YAKST) From: Maxim Konovalov X-Sender: maxim@noname.cbr.amur.ru To: Assar Westerlund Cc: AB , freebsd-net@FreeBSD.ORG Subject: Re: ftpd error message: can somebody explain me what it means ? In-Reply-To: <5l7lcohdsl.fsf@assaris.sics.se> 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 > AB writes: > > No matter how many books/man pages I read, I can not find the > > explanation for this error message: > > > > ftpd[proces-ID] "getpeername (/usr/libexec/ftpd): socket operation on > > non-socket" > > ftpd assumes it has been started from inetd and therefore that file > descriptor 0 is a TCP-socket. If this is not the case you get the > error you quotes above. > > I repeat: ftpd has to be started by inetd (or something inetd-like). > > /assar But if you steel want to run standalone ftpd try # /usr/libexec/ftpd -D -4 It works for me. HTH, Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message