From owner-freebsd-net Sun Jan 20 2:59: 5 2002 Delivered-To: freebsd-net@freebsd.org Received: from soho1.binc.net (soho1.binc.net [64.73.16.3]) by hub.freebsd.org (Postfix) with SMTP id 7A9ED37B400 for ; Sun, 20 Jan 2002 02:58:59 -0800 (PST) Received: (qmail 7025 invoked from network); 20 Jan 2002 10:58:57 -0000 Received: from localhost (HELO the-rob.com) ([127.0.0.1]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 20 Jan 2002 10:58:57 -0000 Received: from 216.170.184.146 (SquirrelMail authenticated user rob@the-rob.com) by www.soho.berbee.com with HTTP; Sun, 20 Jan 2002 04:58:57 -0600 (CST) Message-ID: <3374.216.170.184.146.1011524337.squirrel@www.soho.berbee.com> Date: Sun, 20 Jan 2002 04:58:57 -0600 (CST) Subject: pppoe gateway routing issues From: To: X-Mailer: SquirrelMail (version 1.2.0 [cvs]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org First off if this shows up as html, I apologize, I'm temporarily using a web based client. This email contains my configuration files so is kind of long but I hope this will give as much information as possible. I just got DSL after riding myself of my cable modem. The DSL I have is using pppoe. I was able to get this up and running on my laptop. I am now working on my gateway machine to get my LAN back up and running. I have used the how-to's listed in the freebsd diary ( http://www.freebsddiary.org/pppoe.php ) I also tried http://www.daemonnews.org/200101/pppoe.html These worked fine on my laptop and I was able to surf the web no problem. I then went to configure my gateway box. I added the appropriate options to the kernel and recompiled. I added the neccesary "ppp" lines to my rc.conf. I also created my ppp.conf. When I boot the machine I get the IP addresses but when I try to pass any traffic I get "no route to host" messages. I make sure my default gateway is setup correctly (which it appears to be as such). I delete the the default route and add it myself but this does not work either. I've tried using the routed daemon but I get the following error messages when I do that: (IP_ADD_MEMBERSHIP RIP) can't assign requested address setsockopt(IP_ADD_MEMBERSHIP RIP): Can't assign requested address After looking at my config files is there anything I am missing? Any other offers and suggestions? Thank you in advanced. Please CC: me as I am no longer on this list until I start my new job later this week. Rob UNAME -A: FreeBSD PITA.the-rob.com 4.5-RC FreeBSD 4.5-RC #2 Sat Jan 19 13:35:26 GMT 2002 zietlow@PITA.the-rob.com:/usr/src/sys/compile/FIREWALL i386 RC.CONF: # -- sysinstall generated deltas -- # # Created: Thu Jul 26 10:02:13 2001 # Enable network daemons for user convenience. # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. gateway_enable="YES" hostname="PITA.the-rob.com" network_interfaces="xl0 dc0 lo0" ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_lo0="inet 127.0.0.1" ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0" #ifconfig_xl0="DHCP" inetd_enable="YES" kern_securelevel_enable="NO" linux_enable="YES" sshd_enable="YES" # -- sysinstall generated deltas -- # ntpdate_flags="time.nist.gov" ntpdate_enable="YES" portmap_enable="NO" update_motd="NO" font8x8="/usr/share/syscons/fonts/iso02-8x8.fnt" allscreens_flags="132x43" syslogd_flags="-ss" sshd_flags="-4" ipfilter_enable="YES" ipmon_enable="YES" ipmon_flags="-Dsvn" ipnat_enable="YES" #router_flags="-q" #router="routed" #router_enable="YES" ppp_enable="YES" ppp_mode="ddial" ppp_profile="tds" ppp_nat="YES" PPP.CONF: # # ppp.conf: pppoe configuration # from http://www.daemonnews.org/200101/pppoe.html # default: #ppp over ethernet set device PPPoE:xl0: set speed sync set mru 1492 set mtu 1492 set ctsrts off # monitor line quality enable lqr # log just a bit set log Phase tun # insert default route upon connection add default HISADDR # download /etc/resolv.conf enable dns tds: set authname USERNAME set authkey PASSWORD IFCONFIG: dc0: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::220:78ff:fe08:5e76%dc0 prefixlen 64 scopeid 0x1 ether 00:20:78:08:5e:76 media: Ethernet autoselect (100baseTX ) status: active xl0: flags=8843 mtu 1500 options=3 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::204:76ff:feb8:267c%xl0 prefixlen 64 scopeid 0x2 ether 00:04:76:b8:26:7c media: Ethernet autoselect (10baseT/UTP) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 faith0: flags=8002 mtu 1500 tun0: flags=8051 mtu 1492 inet6 fe80::220:78ff:fe08:5e76%tun0 prefixlen 64 scopeid 0x5 inet 216.170.184.59 --> 216.170.184.1 netmask 0xffffff00 Opened by PID 59 NETSTAT -R: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 216.170.184.1 UGSc 2 1 tun0 10/24 link#2 UC 0 0 xl0 localhost localhost UH 0 0 lo0 192.168.1 link#1 UC 0 0 dc0 216.170.184.1 216.170.184.59 UH 3 0 tun0 IPX: Destination Gateway Flags Netif Expire Internet6: Destination Gateway Flags Netif Expire localhost localhost UH lo0 fe80::%dc0 link#1 UC dc0 fe80::220:78ff:fe0 0:20:78:8:5e:76 UHL lo0 fe80::%xl0 link#2 UC xl0 fe80::204:76ff:feb 0:4:76:b8:26:7c UHL lo0 fe80::%lo0 fe80::1%lo0 Uc lo0 fe80::1%lo0 link#3 UHL lo0 fe80::%tun0 fe80::220:78ff:fe0 Uc tun0 fe80::220:78ff:fe0 link#5 UHL lo0 ff01:: localhost U lo0 ff02::%dc0 link#1 UC dc0 ff02::%xl0 link#2 UC xl0 ff02::%lo0 localhost UC lo0 ff02::%tun0 fe80::220:78ff:fe0 UC PING: PING 216.170.184.1 (216.170.184.1): 56 data bytes ping sendto: No route to host ping sendto: No route to host ping sendto: No route to host: --- 216.170.184.1 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 5:35: 4 2002 Delivered-To: freebsd-net@freebsd.org Received: from artemis.drwilco.net (artemis.drwilco.net [209.167.6.62]) by hub.freebsd.org (Postfix) with ESMTP id DBCBB37B41A for ; Sun, 20 Jan 2002 05:34:58 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g0KDYuR27036 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Sun, 20 Jan 2002 08:34:58 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020120143638.01b68dc0@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 20 Jan 2002 14:44:19 +0100 To: , From: "Rogier R. Mulhuijzen" Subject: Re: pppoe gateway routing issues In-Reply-To: <3374.216.170.184.146.1011524337.squirrel@www.soho.berbee.c om> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 04:58 20-1-2002 -0600, rob@the-rob.com wrote: >First off if this shows up as html, I apologize, I'm temporarily using a >web based client. This email contains my configuration files so is kind of >long but I hope this will give as much information as possible. MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Think it came out just fine =) >I just got DSL after riding myself of my cable modem. The DSL I have is >using pppoe. I was able to get this up and running on my laptop. I am now >working on my gateway machine to get my LAN back up and running. > >I have used the how-to's listed in the freebsd diary ( >http://www.freebsddiary.org/pppoe.php ) I also tried >http://www.daemonnews.org/200101/pppoe.html These worked fine on my laptop >and I was able to surf the web no problem. I then went to configure my >gateway box. I added the appropriate options to the kernel and >recompiled. I added the neccesary "ppp" lines to my rc.conf. I also >created my ppp.conf. When I boot the machine I get the IP addresses but >when I try to pass any traffic I get "no route to host" messages. I make >sure my default gateway is setup correctly (which it appears to be as >such). I delete the the default route and add it myself but this does not >work either. ---SNIP--- >gateway_enable="YES" good >hostname="PITA.the-rob.com" >network_interfaces="xl0 dc0 lo0" >ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0" >ifconfig_lo0="inet 127.0.0.1" >ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0" still looking good >ipfilter_enable="YES" >ipmon_enable="YES" >ipmon_flags="-Dsvn" >ipnat_enable="YES" Yikes... note you have NAT here..... >#router_flags="-q" >#router="routed" >#router_enable="YES" >ppp_enable="YES" >ppp_mode="ddial" >ppp_profile="tds" >ppp_nat="YES" ...and here. ----more config snipped---- I'm not familiar with ipfilter I'm afraid, but since the rest of your config looks good to me at first glance, try removing the ipfilter/mon/nat settings, try connecting again, and if it works, then add those settings back one by one. DocWilco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 6:42:32 2002 Delivered-To: freebsd-net@freebsd.org Received: from soho1.binc.net (soho1.binc.net [64.73.16.3]) by hub.freebsd.org (Postfix) with SMTP id 859C437B405 for ; Sun, 20 Jan 2002 06:42:28 -0800 (PST) Received: (qmail 9998 invoked from network); 20 Jan 2002 14:42:27 -0000 Received: from localhost (HELO the-rob.com) ([127.0.0.1]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 20 Jan 2002 14:42:27 -0000 Received: from 216.170.184.161 (SquirrelMail authenticated user rob@the-rob.com) by www.soho.berbee.com with HTTP; Sun, 20 Jan 2002 08:42:27 -0600 (CST) Message-ID: <4868.216.170.184.161.1011537747.squirrel@www.soho.berbee.com> Date: Sun, 20 Jan 2002 08:42:27 -0600 (CST) Subject: Re: pppoe gateway routing issues (with updates) From: To: In-Reply-To: <5.1.0.14.0.20020120143638.01b68dc0@mail.drwilco.net> References: <5.1.0.14.0.20020120143638.01b68dc0@mail.drwilco.net> Cc: X-Mailer: SquirrelMail (version 1.2.0 [cvs]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > ---SNIP--- > >>gateway_enable="YES" > > good > >>hostname="PITA.the-rob.com" >>network_interfaces="xl0 dc0 lo0" >>ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0" >>ifconfig_lo0="inet 127.0.0.1" >>ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0" > > still looking good > >>ipfilter_enable="YES" >>ipmon_enable="YES" >>ipmon_flags="-Dsvn" >>ipnat_enable="YES" > > Yikes... note you have NAT here..... > --SNIP--- Thanks for the help, I tried that earlier to no avale. New stuff. I left my laptop plugged into my internal lan and I was able to jump onto the internet fine, so here's the new deal. Configs have NOT changed at all. I can pass traffic from anything behind the gateway to the outside world just fine. But the gateway still cannot reach the internet. it cannot even ping the local IP address assigned to it (216.170.184.161) Also people are not able to ping my IP or reach any of my services. Disabling either of the ipnat or ppp_nat in the rc.conf makes no difference same results, I can get on the net, no one can ping/ftp/ssh to me. Any other suggestions? Anyone? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 10:40:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 65AC637B405 for ; Sun, 20 Jan 2002 10:40:12 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020120184012.CXRQ10199.rwcrmhc53.attbi.com@InterJet.elischer.org>; Sun, 20 Jan 2002 18:40:12 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA06952; Sun, 20 Jan 2002 10:35:23 -0800 (PST) Date: Sun, 20 Jan 2002 10:35:23 -0800 (PST) From: Julian Elischer To: rob@the-rob.com Cc: drwilco@drwilco.net, net@freebsd.org Subject: Re: pppoe gateway routing issues (with updates) In-Reply-To: <4868.216.170.184.161.1011537747.squirrel@www.soho.berbee.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org sometimes the modem will refuse to talk to a second MAC address, once one has been used.. you need to turn such modems off and on again when changng machines.. (It could be talking to your laptop only) On Sun, 20 Jan 2002 rob@the-rob.com wrote: > > > ---SNIP--- > > > >>gateway_enable="YES" > > > > good > > > >>hostname="PITA.the-rob.com" > >>network_interfaces="xl0 dc0 lo0" > >>ifconfig_dc0="inet 192.168.1.1 netmask 255.255.255.0" > >>ifconfig_lo0="inet 127.0.0.1" > >>ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0" > > > > still looking good > > > >>ipfilter_enable="YES" > >>ipmon_enable="YES" > >>ipmon_flags="-Dsvn" > >>ipnat_enable="YES" > > > > Yikes... note you have NAT here..... > > > > > --SNIP--- > > Thanks for the help, I tried that earlier to no avale. > > New stuff. I left my laptop plugged into my internal lan and I was able to > jump onto the internet fine, so here's the new deal. > > Configs have NOT changed at all. I can pass traffic from anything behind > the gateway to the outside world just fine. But the gateway still cannot > reach the internet. it cannot even ping the local IP address assigned to > it (216.170.184.161) Also people are not able to ping my IP or reach any > of my services. > > Disabling either of the ipnat or ppp_nat in the rc.conf makes no difference > same results, I can get on the net, no one can ping/ftp/ssh to me. > > Any other suggestions? Anyone? > > > > 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 Sun Jan 20 11:45:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 7AA6D37B429 for ; Sun, 20 Jan 2002 11:45:10 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id LAA82042; Sun, 20 Jan 2002 11:30:03 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g0KJU2H08589; Sun, 20 Jan 2002 11:30:02 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200201201930.g0KJU2H08589@arch20m.dellroad.org> Subject: Re: netgraph: how to setsockopt on ksocket node ? In-Reply-To: <5390000.1011459455@blues.viagenie.qc.ca> "from Florent Parent at Jan 19, 2002 11:57:35 am" To: Florent Parent Date: Sun, 20 Jan 2002 11:30:01 -0800 (PST) Cc: Archie Cobbs , freebsd-net@FreeBSD.ORG, julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Florent Parent writes: > This is what I did to make it work for me. A better fix would probably be > around the struct proc definition. If fact, you had noted "broken" > probably as a memo to fix something here... > > struct proc *p = curproc ? curproc : &proc0; /* XXX broken */ > > > *** ng_ksocket.c.orig Sat Jan 19 11:05:28 2002 > --- ng_ksocket.c Sat Jan 19 11:45:23 2002 > *************** > *** 759,765 **** > sopt.sopt_name = ksopt->name; > sopt.sopt_val = ksopt->value; > sopt.sopt_valsize = valsize; > ! sopt.sopt_p = p; > error = sosetopt(so, &sopt); > break; > } > --- 759,765 ---- > sopt.sopt_name = ksopt->name; > sopt.sopt_val = ksopt->value; > sopt.sopt_valsize = valsize; > ! sopt.sopt_p = 0; > error = sosetopt(so, &sopt); > break; > } Wow, didn't know you could do that :-) My understanding of the use of that parameter is very incomplete. I just copied what was found in the NFS code at the time (since it also makes use of a socket in the kernel). So this 'struct proc' argument can be NULL now? What about when calling other socket functions like socreate(), et. al.? If so, your fix looks like the right onw. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 13:34:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from blues.viagenie.qc.ca (modemcable114.39-130-66.mtl.mc.videotron.ca [66.130.39.114]) by hub.freebsd.org (Postfix) with ESMTP id 89F9C37B404 for ; Sun, 20 Jan 2002 13:34:20 -0800 (PST) Received: from blues.viagenie.qc.ca (blues-local [127.0.0.1]) by blues.viagenie.qc.ca (8.11.6/8.11.3) with ESMTP id g0KLY8f02200; Sun, 20 Jan 2002 16:34:08 -0500 (EST) (envelope-from Florent.Parent@viagenie.qc.ca) Date: Sun, 20 Jan 2002 16:34:05 -0500 From: Florent Parent To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG, julian@elischer.org Subject: Re: netgraph: how to setsockopt on ksocket node ? Message-ID: <135740000.1011562445@blues.viagenie.qc.ca> X-Mailer: Mulberry/2.1.2 (Linux/x86) X-PGP-Fingerprint: B718 4543 977C BE73 2BCC 23D5 3E20 4FC9 2A90 872C MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --On 2002-01-20 11:30:01 -0800 archie@dellroad.org wrote: > > So this 'struct proc' argument can be NULL now? > What about when calling other socket functions like socreate(), et. al.? 'struct proc' member in the struct sockopt can be NULL. As per the comment=20 in that structure, NULL means that the calling entity is the kernel, not a=20 user process (my interpretation): struct sockopt { enum sopt_dir sopt_dir; /* is this a get or a set? */ int sopt_level; /* second arg of [gs]etsockopt */ int sopt_name; /* third arg of [gs]etsockopt */ void *sopt_val; /* fourth arg of [gs]etsockopt */ size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */ struct proc *sopt_p; /* calling process or null if kernel */ }; This doesn't apply to socreate() since it isn't passed a 'struct sockopt'=20 as argument. From a quick glance, the socket functions that are concerned=20 are sosetopt() and sogetopt(). > If so, your fix looks like the right onw. I will test the NGM_KSOCKET_GETOPT code path as I suspect that a similar=20 fix will be required. Florent. -- Florent Parent Viag=E9nie http://www.viagenie.qc.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 15:15:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 29A9B37B41D for ; Sun, 20 Jan 2002 15:15:05 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id PAA83308; Sun, 20 Jan 2002 15:08:57 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g0KN8uc09321; Sun, 20 Jan 2002 15:08:56 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200201202308.g0KN8uc09321@arch20m.dellroad.org> Subject: Re: netgraph: how to setsockopt on ksocket node ? In-Reply-To: <135740000.1011562445@blues.viagenie.qc.ca> "from Florent Parent at Jan 20, 2002 04:34:05 pm" To: Florent Parent Date: Sun, 20 Jan 2002 15:08:56 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG, julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Florent Parent writes: > 'struct proc' member in the struct sockopt can be NULL. As per the comment > in that structure, NULL means that the calling entity is the kernel, not a > user process (my interpretation): > > struct sockopt { > enum sopt_dir sopt_dir; /* is this a get or a set? */ > int sopt_level; /* second arg of [gs]etsockopt */ > int sopt_name; /* third arg of [gs]etsockopt */ > void *sopt_val; /* fourth arg of [gs]etsockopt */ > size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */ > struct proc *sopt_p; /* calling process or null if kernel */ > }; > > This doesn't apply to socreate() since it isn't passed a 'struct sockopt' > as argument. From a quick glance, the socket functions that are concerned > are sosetopt() and sogetopt(). But socreate() does take a struct proc directly... perhaps it can be NULL too..? [ looks at code ... ] Nope, it doesn't appear that it can... > int > socreate(dom, aso, type, proto, p) > int dom; > struct socket **aso; > register int type; > int proto; > struct proc *p; > { > register struct protosw *prp; > register struct socket *so; > register int error; > > if (proto) > prp = pffindproto(dom, proto, type); > else > prp = pffindtype(dom, type); > > if (prp == 0 || prp->pr_usrreqs->pru_attach == 0) > return (EPROTONOSUPPORT); > > if (p->p_prison && jail_socket_unixiproute_only && > prp->pr_domain->dom_family != PF_LOCAL && > prp->pr_domain->dom_family != PF_INET && > prp->pr_domain->dom_family != PF_ROUTE) { > return (EPROTONOSUPPORT); > } > > if (prp->pr_type != type) > return (EPROTOTYPE); > so = soalloc(p != 0); > if (so == 0) > return (ENOBUFS); > > TAILQ_INIT(&so->so_incomp); > TAILQ_INIT(&so->so_comp); > so->so_type = type; > so->so_cred = p->p_ucred; > crhold(so->so_cred); > so->so_proto = prp; > error = (*prp->pr_usrreqs->pru_attach)(so, proto, p); > if (error) { > so->so_state |= SS_NOFDREF; > sofree(so); > return (error); > } > *aso = so; > return (0); > } But it's interesting the soalloc() is called with 'p != 0' as an argument. p is never 0 or else you would have already panic'd... you'd panic later on, too, referencing 'p->p_ucred'. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 15:29:31 2002 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 511D737B404 for ; Sun, 20 Jan 2002 15:29:28 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id g0KNTLO33136; Sun, 20 Jan 2002 18:29:21 -0500 (EST) (envelope-from wollman) Date: Sun, 20 Jan 2002 18:29:21 -0500 (EST) From: Garrett Wollman Message-Id: <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu> To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: Re: netgraph: how to setsockopt on ksocket node ? In-Reply-To: <200201202308.g0KN8uc09321@arch20m.dellroad.org> References: <135740000.1011562445@blues.viagenie.qc.ca> <200201202308.g0KN8uc09321@arch20m.dellroad.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org < said: > But it's interesting the soalloc() is called with 'p != 0' > as an argument. p is never 0 or else you would have already > panic'd... you'd panic later on, too, referencing 'p->p_ucred'. All of the credential frobbing stuff was added much later. At the time I wrote that `p != 0', it was definitely possible for socreate() to be called from interrupt context, and thus without any idea of a `current process'. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Jan 20 17: 0:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id D05EA37B41D for ; Sun, 20 Jan 2002 17:00:12 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA83918; Sun, 20 Jan 2002 16:45:33 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g0L0jWL09716; Sun, 20 Jan 2002 16:45:32 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200201210045.g0L0jWL09716@arch20m.dellroad.org> Subject: Re: netgraph: how to setsockopt on ksocket node ? In-Reply-To: <135740000.1011562445@blues.viagenie.qc.ca> "from Florent Parent at Jan 20, 2002 04:34:05 pm" To: Florent Parent Date: Sun, 20 Jan 2002 16:45:32 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG, julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Florent Parent writes: > 'struct proc' member in the struct sockopt can be NULL. As per the comment > in that structure, NULL means that the calling entity is the kernel, not a > user process (my interpretation): > > struct sockopt { > enum sopt_dir sopt_dir; /* is this a get or a set? */ > int sopt_level; /* second arg of [gs]etsockopt */ > int sopt_name; /* third arg of [gs]etsockopt */ > void *sopt_val; /* fourth arg of [gs]etsockopt */ > size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */ > struct proc *sopt_p; /* calling process or null if kernel */ > }; Ah.. it's Julian's fault :-) Your fix (setting sopt.sopt_p to NULL) is already implemented in -current by Julian in revision 1.20, but he never MFC'd it. Julian: any reason 1.20 was not MFC'd? Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jan 21 3: 8:37 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by hub.freebsd.org (Postfix) with SMTP id C638937B41A for ; Mon, 21 Jan 2002 03:08:30 -0800 (PST) Received: (qmail 32530 invoked from network); 21 Jan 2002 11:07:28 -0000 Received: from unknown (HELO pipeline.ch) ([62.48.21.44]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 21 Jan 2002 11:07:28 -0000 Message-ID: <3C4BF671.B6C0ECDD@pipeline.ch> Date: Mon, 21 Jan 2002 12:07:29 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: E3 PCI cards Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Does anybody know of an E3 PCI card with FreeBSD drivers? -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jan 21 5:15: 7 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.byteaction.de (port-213-20-224-76.reverse.qdsl-home.de [213.20.224.76]) by hub.freebsd.org (Postfix) with SMTP id D73EF37B400 for ; Mon, 21 Jan 2002 05:15:00 -0800 (PST) Received: (qmail 30449 invoked by uid 64014); 21 Jan 2002 13:14:59 -0000 Received: from unknown (HELO nbtt) (192.168.0.139) by mail.byteaction.de with SMTP; 21 Jan 2002 13:14:58 -0000 From: "Thomas Trede" To: Subject: AW: E3 PCI cards Date: Mon, 21 Jan 2002 14:15:38 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 In-Reply-To: <3C4BF671.B6C0ECDD@pipeline.ch> Importance: Normal X-Virus-Scanned: by AMaViS Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Andre, you might want to check out http://www.sbei.net They have E3-cards, too (you have to ask, though!). Regards, Thomas -----Ursprungliche Nachricht----- Von: owner-freebsd-net@FreeBSD.ORG [mailto:owner-freebsd-net@FreeBSD.ORG]Im Auftrag von Andre Oppermann Gesendet: Montag, 21. Januar 2002 12:07 An: freebsd-net@freebsd.org Betreff: E3 PCI cards Hello Does anybody know of an E3 PCI card with FreeBSD drivers? -- Andre 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 Jan 21 6:36:40 2002 Delivered-To: freebsd-net@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 8CCEE37B404 for ; Mon, 21 Jan 2002 06:36:36 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 Jan 2002 14:36:35 +0000 (GMT) To: freebsd-net@freebsd.org Subject: `options INET6' allows duplicate IPv4 binding Date: Mon, 21 Jan 2002 14:36:35 +0000 From: Ian Dowse Message-ID: <200201211436.aa82109@salmon.maths.tcd.ie> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I was just trying to track down a weird behaviour I had observed involving VNC and sshd. When a user logs in via sshd, their $DISPLAY would often end up being the same as that of an existing Xvnc session: > sockstat | grep 6013 |grep '\*' root sshd 25710 7 tcp4 *:6013 *:* userX Xvnc 51102 0 tcp4 *:6013 *:* root sshd 25710 6 tcp46 *:6013 *:* As you can see, sshd has successfully bound its tcp4 socket to the same wildcard address as Xvnc was already using, but sshd does not set any of the SO_REUSE* options. It seems that this is caused by the following code in in_pcb.c: t = in_pcblookup_local(pcbinfo, sin->sin_addr, lport, prison ? 0 : wild); if (t && (reuseport & t->inp_socket->so_options) == 0) { #if defined(INET6) if (ntohl(sin->sin_addr.s_addr) != INADDR_ANY || ntohl(t->inp_laddr.s_addr) != INADDR_ANY || INP_SOCKAF(so) == INP_SOCKAF(t->inp_socket)) #endif /* defined(INET6) */ return (EADDRINUSE); } Here is a nasty perl script that demonstrates the problem (tested on RELENG_4 and CURRENT). We are able to bind 2 IPv4 sockets to a single wildcard port. ------------------------------------- #!/usr/bin/perl use Socket; $PF_INET6 = 28; $port = pack("n", 12345); socket(S4, PF_INET, SOCK_STREAM, 0) || die "S4: socket: $!\n"; $sin4 = "\x10\x02$port\0\0\0\0\0\0\0\0\0\0\0\0"; bind(S4, $sin4) || die "S4: bind: $!\n"; socket(S6, $PF_INET6, SOCK_STREAM, 0) || die "S6: socket: $!\n"; $sin6 = "\x1c\x1c$port\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; bind(S6, $sin6) || die "S6: bind: $!\n"; socket(S4B, PF_INET, SOCK_STREAM, 0) || die "S4B: socket: $!\n"; bind(S4B, $sin4) || die "S4B: bind: $! [expected]\n"; die "second V4 bind succeeded! [not expected]\n"; ------------------------------------- Setting net.inet6.ip6.v6only to 1 restores the expected behaviour, and the second IPv4 bind returns EADDRINUSE. I guess that the code is attempting to allow simultaneous tcp46 and tcp4 bindings, but it ends up allowing two tcp4 sockets to bind to the same address if a tcp46 bind comes in between. Any ideas on how to fix this? Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Jan 21 10:20:46 2002 Delivered-To: freebsd-net@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 9799F37B416 for ; Mon, 21 Jan 2002 10:20:43 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g0LIKe243883; Mon, 21 Jan 2002 10:20:40 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id g0LIKeZ93986; Mon, 21 Jan 2002 10:20:40 -0800 (PST) (envelope-from jdp) Date: Mon, 21 Jan 2002 10:20:40 -0800 (PST) Message-Id: <200201211820.g0LIKeZ93986@vashon.polstra.com> To: net@freebsd.org From: John Polstra Cc: wollman@khavrinen.lcs.mit.edu Subject: Re: netgraph: how to setsockopt on ksocket node ? In-Reply-To: <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu> References: <135740000.1011562445@blues.viagenie.qc.ca> <200201202308.g0KN8uc09321@arch20m.dellroad.org> <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article <200201202329.g0KNTLO33136@khavrinen.lcs.mit.edu>, Garrett Wollman wrote: > < said: > > > But it's interesting the soalloc() is called with 'p != 0' > > as an argument. p is never 0 or else you would have already > > panic'd... you'd panic later on, too, referencing 'p->p_ucred'. > > All of the credential frobbing stuff was added much later. I agree with you -- the credential code broke it. > At the time I wrote that `p != 0', it was definitely possible for > socreate() to be called from interrupt context, and thus without any > idea of a `current process'. I have also used this in a project where I lifted the whole TCP/IP stack from FreeBSD and used it in an embedded environment. It's a very handy thing to be able to do, and I wouldn't like to see it remain broken. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 3:56:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by hub.freebsd.org (Postfix) with ESMTP id 28CCF37B41A for ; Tue, 22 Jan 2002 03:56:28 -0800 (PST) Received: from list1.xs4all.nl (list1.xs4all.nl [194.109.6.52]) by smtpzilla3.xs4all.nl (8.12.0/8.12.0) with ESMTP id g0MBuQ4a045363 for ; Tue, 22 Jan 2002 12:56:27 +0100 (CET) Received: (from root@localhost) by list1.xs4all.nl (8.9.3/8.9.3) id MAA25218; Tue, 22 Jan 2002 12:56:25 +0100 (CET) From: "links" To: freebsd-net@freebsd.org X-Via: imploder /usr/local/lib/mail/news2mail/news2mail at list1.xs4all.nl Subject: natd doesn't redirect from external ip to internal ip! Date: Tue, 22 Jan 2002 12:56:02 +0100 Organization: XS4ALL Internet BV Message-ID: Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org i have natd set to -deny_packet yes so FreeBSD is acting in "Stealth" mode in all ways. the problem is that i have apache running on the same machine which is logically Stealth from outside ( via -deny_packet yes ) so i have to use -redirect_port tcp internal.ip:80 80 to redirect all requests to it , but it doesn't work!!! is the above syntax correct for redirecting to port 80 on the same machine? do i miss somethnig here? -redirect_port tcp another.machine.inside.LAN:80 80 is working great! only if i want to redirect the port to the same machine , it seems that it doesn't understand ;) i was wondering if i have the same problem with other daemons too , imagine i have port 25 also open and i want to redirect to it , what is the best soloution while natd -d is on? please refresh my mind! thanx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 8:20:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from c7.campus.utcluj.ro (c7.campus.utcluj.ro [193.226.6.226]) by hub.freebsd.org (Postfix) with SMTP id 305CF37B402 for ; Tue, 22 Jan 2002 08:20:54 -0800 (PST) Received: (qmail 9046 invoked by uid 1008); 22 Jan 2002 16:20:42 -0000 Date: Tue, 22 Jan 2002 18:20:41 +0200 From: veedee@c7.campus.utcluj.ro To: Dominic Blais Cc: freebsd-net@freebsd.org Subject: Re: IPNAT -- Can't send file thru it with any instant messengers..... Message-ID: <20020122182041.A9033@c7.campus.utcluj.ro> References: <3C477BD4.50001@interplex.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C477BD4.50001@interplex.ca>; from db@interplex.ca on Thu, Jan 17, 2002 at 08:35:16PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Jan 17, 2002 at 08:35:16PM -0500, Dominic Blais wrote: > Hi! > I'm using IPNAT in order to split many local IPs over 5 external IPs. I > can receive ICQ or MSN file transfers but I can't send any of those thru > the NAT.... I have a friend which uses natd and he can send/receive > files without any problems.... So.. I'm just wondering what's the big > difference between natd and ipnat and can I send files with ICQ or MSN > thru a NAT that uses IPNAT ??? I second to that. I was using NATD until recently and AudioGalaxy (which uses FTP transfers) worked. After switching to IPNAT it doesn't anymore.. veedee. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 9:22:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from web10003.mail.yahoo.com (web10003.mail.yahoo.com [216.136.130.39]) by hub.freebsd.org (Postfix) with SMTP id 9A4D937B400 for ; Tue, 22 Jan 2002 09:22:14 -0800 (PST) Message-ID: <20020122172212.14879.qmail@web10003.mail.yahoo.com> Received: from [206.181.208.240] by web10003.mail.yahoo.com via HTTP; Tue, 22 Jan 2002 09:22:12 PST Date: Tue, 22 Jan 2002 09:22:12 -0800 (PST) From: Kenneth Stailey Subject: ARP API documentation? To: freebsd-net@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I search and search but cannot find any documentation on the user-space level API for ARP. I know of only two code examples in the tree (usr.sbin/arp/arp.c and usr.sbin/ppp/arp.c) and I do not wish to play guessing games about the protocol. It's clear that you open a PF_ROUTE raw socket and write a message to it to manipulate the ARP tables. Is the format of the message documented anywhere? Thanks, Ken __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 9:29:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 2A88F37B417 for ; Tue, 22 Jan 2002 09:29:07 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0MHSpm60781; Tue, 22 Jan 2002 19:28:51 +0200 (EET) (envelope-from ru) Date: Tue, 22 Jan 2002 19:28:51 +0200 From: Ruslan Ermilov To: Kenneth Stailey Cc: freebsd-net@FreeBSD.ORG Subject: Re: ARP API documentation? Message-ID: <20020122192851.D58453@sunbay.com> References: <20020122172212.14879.qmail@web10003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020122172212.14879.qmail@web10003.mail.yahoo.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jan 22, 2002 at 09:22:12AM -0800, Kenneth Stailey wrote: > Hi, > > I search and search but cannot find any documentation on the user-space level > API for ARP. I know of only two code examples in the tree (usr.sbin/arp/arp.c > and usr.sbin/ppp/arp.c) and I do not wish to play guessing games about the > protocol. > > It's clear that you open a PF_ROUTE raw socket and write a message to it to > manipulate the ARP tables. Is the format of the message documented anywhere? > route(4). Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 10:27:29 2002 Delivered-To: freebsd-net@freebsd.org Received: from crufty.research.bell-labs.com (crufty.research.bell-labs.com [204.178.16.49]) by hub.freebsd.org (Postfix) with SMTP id D980C37B404 for ; Tue, 22 Jan 2002 10:27:19 -0800 (PST) Received: from scummy.research.bell-labs.com ([135.104.2.10]) by crufty; Tue Jan 22 13:21:08 EST 2002 Received: from aura.research.bell-labs.com (aura.research.bell-labs.com [135.104.46.10]) by scummy.research.bell-labs.com (8.11.6/8.11.6) with ESMTP id g0MIQLL66216 for ; Tue, 22 Jan 2002 13:26:21 -0500 (EST) Received: (from sandeepj@localhost) by aura.research.bell-labs.com (8.9.1/8.9.1) id NAA15250 for freebsd-net@freebsd.org; Tue, 22 Jan 2002 13:26:21 -0500 (EST) Date: Tue, 22 Jan 2002 13:26:21 -0500 (EST) Message-Id: <200201221826.NAA15250@aura.research.bell-labs.com> From: sandeepj@research.bell-labs.com (Sandeep Joshi) To: freebsd-net@freebsd.org Subject: soreceive error handling question Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am seeing some unexplained behaviour while calling TCP "soreceive" directly within some kernel code. Can someone (or someone else..) tell me if this is a bug/feature. (This is seen on 4.3REL & 4.4 REL) The (abbreviated) code does as follows: ---------------------------- (Fig 1) do { /* SS_NBIO is not set, rcv_timeo is non-zero */ err = soreceive(so, 0, &uio, 0, 0, MSG_WAITALL); ..process uio data appropriate.. } while (err == 0); ---------------------------- This works fine... until the thing at the other end of the socket goes down and sends us a FIN. At this point, the above code fragment hangs in an infinite loop, since soreceive keeps returning a zero error code but no data. so->so_state has changed to 0x34, which is SS_CANTRCVMORE and SS_ISCONNECTED. This is due to tcp_input() calling socantrcvmore() on TH_FIN. And there is no read data pending (so_rcv.sb_mb) in the socket. I suspect that soreceive() enters the code path below and returns from "release:" without having the error set. ----------------------------(Fig 2) > if (so->so_state & SS_CANTRCVMORE) { > if (m) > goto dontblock; > else > goto release; > } ---------------------------- The code calling soreceive (Fig 1) was enhanced to break if (so_state & SS_CANTRCVMORE). This prevented the infinite loop. Is this extra check required OR is there a problem in soreceive ? I am unable to determine why read(socket_fd) (i.e. soo_read) does not exhibit similar error behaviour. Any clarifications welcome.. Thanks -Sandeep To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 12:26: 6 2002 Delivered-To: freebsd-net@freebsd.org Received: from web10005.mail.yahoo.com (web10005.mail.yahoo.com [216.136.130.41]) by hub.freebsd.org (Postfix) with SMTP id 9CC5C37B405 for ; Tue, 22 Jan 2002 12:25:56 -0800 (PST) Message-ID: <20020122202554.77694.qmail@web10005.mail.yahoo.com> Received: from [206.181.208.240] by web10005.mail.yahoo.com via HTTP; Tue, 22 Jan 2002 12:25:54 PST Date: Tue, 22 Jan 2002 12:25:54 -0800 (PST) From: Kenneth Stailey Subject: Re: ARP API documentation? To: freebsd-net@FreeBSD.ORG In-Reply-To: <20020122192851.D58453@sunbay.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --- Ruslan Ermilov wrote: > On Tue, Jan 22, 2002 at 09:22:12AM -0800, Kenneth Stailey wrote: > > Hi, > > > > I search and search but cannot find any documentation on the user-space > level > > API for ARP. I know of only two code examples in the tree > (usr.sbin/arp/arp.c > > and usr.sbin/ppp/arp.c) and I do not wish to play guessing games about the > > protocol. > > > > It's clear that you open a PF_ROUTE raw socket and write a message to it to > > manipulate the ARP tables. Is the format of the message documented > anywhere? > > > route(4). How is ARP documented without using the word "ARP"? $ man 4 route | grep -i arp | wc -l 0 Seems the old ioctl(2) interface to ARP had better documentation than that. > Cheers, > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 12:43:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from web10001.mail.yahoo.com (web10001.mail.yahoo.com [216.136.130.37]) by hub.freebsd.org (Postfix) with SMTP id 6E37537B442 for ; Tue, 22 Jan 2002 12:42:03 -0800 (PST) Message-ID: <20020122204203.11832.qmail@web10001.mail.yahoo.com> Received: from [206.181.208.240] by web10001.mail.yahoo.com via HTTP; Tue, 22 Jan 2002 12:42:03 PST Date: Tue, 22 Jan 2002 12:42:03 -0800 (PST) From: Kenneth Stailey Subject: Re: ARP API documentation? To: Kenneth Stailey , freebsd-net@FreeBSD.ORG In-Reply-To: <20020122202554.77694.qmail@web10005.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --- Kenneth Stailey wrote: > > --- Ruslan Ermilov wrote: > > On Tue, Jan 22, 2002 at 09:22:12AM -0800, Kenneth Stailey wrote: > > > Hi, > > > > > > I search and search but cannot find any documentation on the user-space > > level > > > API for ARP. I know of only two code examples in the tree > > (usr.sbin/arp/arp.c > > > and usr.sbin/ppp/arp.c) and I do not wish to play guessing games about > the > > > protocol. > > > > > > It's clear that you open a PF_ROUTE raw socket and write a message to it > to > > > manipulate the ARP tables. Is the format of the message documented > > anywhere? > > > > > route(4). > > How is ARP documented without using the word "ARP"? > > $ man 4 route | grep -i arp | wc -l > 0 > > Seems the old ioctl(2) interface to ARP had better documentation than that. Where's stuff like this, only for new API? % man 4 arp ARP(4P) UNIX Programmer's Manual ARP(4P) NAME arp - Address Resolution Protocol SYNOPSIS /sys/conf/SYSTEM: NETHER 1 # ether pseudo-device DESCRIPTION ARP is a protocol used to dynamically map between DARPA Internet and 10Mb/s Ethernet addresses. It is used by all the 10Mb/s Ethernet interface drivers. It is not specific to Internet protocols or to 10Mb/s Ethernet, but this imple- mentation currently supports only that combination. ARP caches Internet-Ethernet address mappings. When an interface requests a mapping for an address not in the cache, ARP queues the message which requires the mapping and broadcasts a message on the associated network requesting the address mapping. If a response is provided, the new mapping is cached and any pending message is transmitted. ARP will queue at most one packet while waiting for a map- ping request to be responded to; only the most recently ``transmitted'' packet is kept. To facilitate communications with systems which do not use ARP, ioctls are provided to enter and delete entries in the Internet-to-Ethernet tables. Usage: #include #include #include struct arpreq arpreq; ioctl(s, SIOCSARP, (caddr_t)&arpreq); ioctl(s, SIOCGARP, (caddr_t)&arpreq); ioctl(s, SIOCDARP, (caddr_t)&arpreq); Each ioctl takes the same structure as an argument. SIOCSARP sets an ARP entry, SIOCGARP gets an ARP entry, and SIOCDARP deletes an ARP entry. These ioctls may be applied to any socket descriptor s, but only by the super-user. The arpreq structure contains: /* * ARP ioctl request */ struct arpreq { struct sockaddr arp_pa; /* protocol address */ struct sockaddr arp_ha; /* hardware address */ int arp_flags;/* flags */ }; /* arp_flags field values */ #define ATF_COM 0x02/* completed entry (arp_ha valid) */ Printed 1/8/98 August 1, 1987 1 ARP(4P) UNIX Programmer's Manual ARP(4P) #define ATF_PERM 0x04 /* permanent entry */ #define ATF_PUBL 0x08 /* publish (respond for other host) */ #define ATF_USETRAILERS 0x10 /* send trailer packets to host */ The address family for the arp_pa sockaddr must be AF_INET; for the arp_ha sockaddr it must be AF_UNSPEC. The only flag bits which may be written are ATF_PERM, ATF_PUBL and ATF_USETRAILERS. ATF_PERM causes the entry to be permanent if the ioctl call succeeds. The peculiar nature of the ARP tables may cause the ioctl to fail if more than 8 (per- manent) Internet host addresses hash to the same slot. ATF_PUBL specifies that the ARP code should respond to ARP requests for the indicated host coming from other machines. This allows a host to act as an ``ARP server,'' which may be useful in convincing an ARP-only machine to talk to a non- ARP machine. ARP is also used to negotiate the use of trailer IP encapsu- lations; trailers are an alternate encapsulation used to allow efficient packet alignment for large packets despite variable-sized headers. Hosts which wish to receive trailer encapsulations so indicate by sending gratuitous ARP trans- lation replies along with replies to IP requests; they are also sent in reply to IP translation replies. The negotia- tion is thus fully symmetrical, in that either or both hosts may request trailers. The ATF_USETRAILERS flag is used to record the receipt of such a reply, and enables the transmission of trailer packets to that host. ARP watches passively for hosts impersonating the local host (i.e. a host which responds to an ARP mapping request for the local host's address). DIAGNOSTICS duplicate IP address!! sent from ethernet address: %x:%x:%x:%x:%x:%x. ARP has discovered another host on the local network which responds to mapping requests for its own Internet address. SEE ALSO ec(4), de(4), il(4), inet(4F), arp(8C), ifconfig(8C) ``An Ethernet Address Resolution Protocol,'' RFC826, Dave Plummer, Network Information Center, SRI. ``Trailer Encapsulations,'' RFC893, S.J. Leffler and M.J. Karels, Network Information Center, SRI. BUGS ARP packets on the Ethernet use only 42 bytes of data; how- ever, the smallest legal Ethernet packet is 60 bytes (not including CRC). Some systems may not enforce the minimum packet size, others will. Printed 1/8/98 August 1, 1987 2 % uname -a BSD pdp11.xxxx.com 2.11 2.11 BSD UNIX #11: Fri Jan 4 14:59:26 EST 2002 kstailey@pdp11.xxxx.com:/usr/src/sys/HIPPON pdp11 > > Cheers, > > -- > > Ruslan Ermilov Oracle Developer/DBA, > > ru@sunbay.com Sunbay Software AG, > > ru@FreeBSD.org FreeBSD committer, > > +380.652.512.251 Simferopol, Ukraine > > > > http://www.FreeBSD.org The Power To Serve > > http://www.oracle.com Enabling The Information Age > > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 13:44:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from web10005.mail.yahoo.com (web10005.mail.yahoo.com [216.136.130.41]) by hub.freebsd.org (Postfix) with SMTP id 56FAD37B41B for ; Tue, 22 Jan 2002 13:43:23 -0800 (PST) Message-ID: <20020122214322.95295.qmail@web10005.mail.yahoo.com> Received: from [206.181.208.240] by web10005.mail.yahoo.com via HTTP; Tue, 22 Jan 2002 13:43:22 PST Date: Tue, 22 Jan 2002 13:43:22 -0800 (PST) From: Kenneth Stailey Subject: Re: ARP API documentation? To: freebsd-net@FreeBSD.ORG In-Reply-To: <20020122204203.11832.qmail@web10001.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm thinking that there should be some library routines for ARP to do get, set and delete operations as simply as they used to be. Opinions? The new interface is driving people to write code like this: klh10-2.0a/src/osdnet.c [...] #elif CENV_SYS_XBSD /* The new BSD systems completely did away with the ARP ioctls and instead substituted a far more complicated PF_ROUTE socket hack. Rather than attempt to duplicate the arp(8) utility code here, let's try simply invoking it! arp -S pub */ FILE *f; int err; char arpbuff[128]; char resbuff[200]; sprintf(arpbuff, "/usr/sbin/arp -S %s %s %s", ip_adrsprint(ipbuf, ipa), eth_adrsprint(eabuf, eap), (pubf ? "pub" : "")); if (DP_DBGFLG) dbprintln("invoking \"%s\"", arpbuff); if ((f = popen(arpbuff, "r")) == NULL) { syserr(errno, "cannot popen: %s", arpbuff); [...] Sad, isn't it? --- Kenneth Stailey wrote: > > --- Kenneth Stailey wrote: > > > > --- Ruslan Ermilov wrote: > > > On Tue, Jan 22, 2002 at 09:22:12AM -0800, Kenneth Stailey wrote: > > > > Hi, > > > > > > > > I search and search but cannot find any documentation on the user-space > > > level > > > > API for ARP. I know of only two code examples in the tree > > > (usr.sbin/arp/arp.c > > > > and usr.sbin/ppp/arp.c) and I do not wish to play guessing games about > > the > > > > protocol. > > > > > > > > It's clear that you open a PF_ROUTE raw socket and write a message to > it > > to > > > > manipulate the ARP tables. Is the format of the message documented > > > anywhere? > > > > > > > route(4). > > > > How is ARP documented without using the word "ARP"? > > > > $ man 4 route | grep -i arp | wc -l > > 0 > > > > Seems the old ioctl(2) interface to ARP had better documentation than that. > > Where's stuff like this, only for new API? > > % man 4 arp > > ARP(4P) UNIX Programmer's Manual ARP(4P) > > NAME > arp - Address Resolution Protocol > > SYNOPSIS > /sys/conf/SYSTEM: > NETHER 1 # ether pseudo-device > > DESCRIPTION > ARP is a protocol used to dynamically map between DARPA > Internet and 10Mb/s Ethernet addresses. It is used by all > the 10Mb/s Ethernet interface drivers. It is not specific > to Internet protocols or to 10Mb/s Ethernet, but this imple- > mentation currently supports only that combination. > > ARP caches Internet-Ethernet address mappings. When an > interface requests a mapping for an address not in the > cache, ARP queues the message which requires the mapping and > broadcasts a message on the associated network requesting > the address mapping. If a response is provided, the new > mapping is cached and any pending message is transmitted. > ARP will queue at most one packet while waiting for a map- > ping request to be responded to; only the most recently > ``transmitted'' packet is kept. > > To facilitate communications with systems which do not use > ARP, ioctls are provided to enter and delete entries in the > Internet-to-Ethernet tables. Usage: > > #include > #include > #include > struct arpreq arpreq; > > ioctl(s, SIOCSARP, (caddr_t)&arpreq); > ioctl(s, SIOCGARP, (caddr_t)&arpreq); > ioctl(s, SIOCDARP, (caddr_t)&arpreq); > Each ioctl takes the same structure as an argument. > SIOCSARP sets an ARP entry, SIOCGARP gets an ARP entry, and > SIOCDARP deletes an ARP entry. These ioctls may be applied > to any socket descriptor s, but only by the super-user. The > arpreq structure contains: > > /* > * ARP ioctl request > */ > struct arpreq { > struct sockaddr arp_pa; /* protocol address */ > struct sockaddr arp_ha; /* hardware address */ > int arp_flags;/* flags */ > }; > /* arp_flags field values */ > #define ATF_COM 0x02/* completed entry (arp_ha valid) */ > > Printed 1/8/98 August 1, 1987 1 > > ARP(4P) UNIX Programmer's Manual ARP(4P) > > #define ATF_PERM 0x04 /* permanent entry */ > #define ATF_PUBL 0x08 /* publish (respond for other host) > */ > #define ATF_USETRAILERS 0x10 /* send trailer packets to host */ > > The address family for the arp_pa sockaddr must be AF_INET; > for the arp_ha sockaddr it must be AF_UNSPEC. The only flag > bits which may be written are ATF_PERM, ATF_PUBL and > ATF_USETRAILERS. ATF_PERM causes the entry to be permanent > if the ioctl call succeeds. The peculiar nature of the ARP > tables may cause the ioctl to fail if more than 8 (per- > manent) Internet host addresses hash to the same slot. > ATF_PUBL specifies that the ARP code should respond to ARP > requests for the indicated host coming from other machines. > This allows a host to act as an ``ARP server,'' which may be > useful in convincing an ARP-only machine to talk to a non- > ARP machine. > > ARP is also used to negotiate the use of trailer IP encapsu- > lations; trailers are an alternate encapsulation used to > allow efficient packet alignment for large packets despite > variable-sized headers. Hosts which wish to receive trailer > encapsulations so indicate by sending gratuitous ARP trans- > lation replies along with replies to IP requests; they are > also sent in reply to IP translation replies. The negotia- > tion is thus fully symmetrical, in that either or both hosts > may request trailers. The ATF_USETRAILERS flag is used to > record the receipt of such a reply, and enables the > transmission of trailer packets to that host. > > ARP watches passively for hosts impersonating the local host > (i.e. a host which responds to an ARP mapping request for > the local host's address). > > DIAGNOSTICS > duplicate IP address!! sent from ethernet address: > %x:%x:%x:%x:%x:%x. ARP has discovered another host on the > local network which responds to mapping requests for its own > Internet address. > > SEE ALSO > ec(4), de(4), il(4), inet(4F), arp(8C), ifconfig(8C) > ``An Ethernet Address Resolution Protocol,'' RFC826, Dave > Plummer, Network Information Center, SRI. > ``Trailer Encapsulations,'' RFC893, S.J. Leffler and M.J. > Karels, Network Information Center, SRI. > > BUGS > ARP packets on the Ethernet use only 42 bytes of data; how- > ever, the smallest legal Ethernet packet is 60 bytes (not > including CRC). Some systems may not enforce the minimum > packet size, others will. > > Printed 1/8/98 August 1, 1987 2 > > % uname -a > BSD pdp11.xxxx.com 2.11 2.11 BSD UNIX #11: Fri Jan 4 14:59:26 EST 2002 > kstailey@pdp11.xxxx.com:/usr/src/sys/HIPPON pdp11 > > > > > Cheers, > > > -- > > > Ruslan Ermilov Oracle Developer/DBA, > > > ru@sunbay.com Sunbay Software AG, > > > ru@FreeBSD.org FreeBSD committer, > > > +380.652.512.251 Simferopol, Ukraine > > > > > > http://www.FreeBSD.org The Power To Serve > > > http://www.oracle.com Enabling The Information Age > > > > > > __________________________________________________ > > Do You Yahoo!? > > Send FREE video emails in Yahoo! Mail! > > http://promo.yahoo.com/videomail/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-net" in the body of the message > > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 14:31:56 2002 Delivered-To: freebsd-net@freebsd.org Received: from osi-east2.nersc.gov (osi-east2.nersc.gov [128.55.6.20]) by hub.freebsd.org (Postfix) with ESMTP id 6FF6137B404 for ; Tue, 22 Jan 2002 14:31:44 -0800 (PST) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by osi-east2.nersc.gov (8.9.2/8.9.2) with ESMTP id OAA01614 for ; Tue, 22 Jan 2002 14:31:43 -0800 (PST) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 6FE233B1A3 for ; Tue, 22 Jan 2002 14:31:43 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-net@freebsd.org Subject: IP multicast time and dhcp Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-2024915211P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 22 Jan 2002 14:31:43 -0800 From: Eli Dart Message-Id: <20020122223143.6FE233B1A3@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_-2024915211P Content-Type: text/plain; charset=us-ascii Hi all, I have a laptop (FreeBSD-4.2-R) that spends a lot of it's time disconnected from the network. When I do want to connect it, I kick off dhclient -- works fine. I recently set up ntpd as a multicast client and discovered that, when the interface (fxp0 in this case) is brought up by dhclient, the machine does not respond to IGMP queries, even though ntpd is listening on 224.0.1.1. ntpd is started at boot time (in the standard rc script way), and therefore fires up well before there is any IP connectivity. It seems to me that the machine should respond to IGMP queries, even though the interface receiving the queries was not up when the socket was opened to listen for multicast traffic..... Any notion of why I might be seeing this? Thanks! --eli --==_Exmh_-2024915211P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE8TehPLTFEeF+CsrMRArfEAKDmGdEItTzM1B//FArlfQVSPsv+dgCg6z5U 3ZK12Sl+EPPCaBmPR4jfvrA= =d6sc -----END PGP SIGNATURE----- --==_Exmh_-2024915211P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 17:10:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id B414E37B402 for ; Tue, 22 Jan 2002 17:10:35 -0800 (PST) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 818B95D0A; Tue, 22 Jan 2002 17:10:35 -0800 (PST) To: Eli Dart Cc: freebsd-net@freebsd.org Subject: Re: IP multicast time and dhcp In-reply-to: Your message of "Tue, 22 Jan 2002 14:31:43 PST." <20020122223143.6FE233B1A3@gemini.nersc.gov> Date: Tue, 22 Jan 2002 17:10:35 -0800 From: "Kevin Oberman" Message-Id: <20020123011035.818B95D0A@ptavv.es.net> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Date: Tue, 22 Jan 2002 14:31:43 -0800 > From: Eli Dart > Sender: owner-freebsd-net@FreeBSD.ORG > > I have a laptop (FreeBSD-4.2-R) that spends a lot of it's time > disconnected from the network. When I do want to connect it, I kick > off dhclient -- works fine. 4.2? Come on, Eli. 4.5 should be out in a week and pccard support is one area that has seen vast improvement since 4.2 came out. (Most were in 4.4, although a few things have been done since then.) > > I recently set up ntpd as a multicast client and discovered that, > when the interface (fxp0 in this case) is brought up by dhclient, the > machine does not respond to IGMP queries, even though ntpd is > listening on 224.0.1.1. > > ntpd is started at boot time (in the standard rc script way), and > therefore fires up well before there is any IP connectivity. It > seems to me that the machine should respond to IGMP queries, even > though the interface receiving the queries was not up when the socket > was opened to listen for multicast traffic..... > > Any notion of why I might be seeing this? Thanks! Just a guess, but I suspect that the receive address hashes are not getting properly set up for multicast when the card is connected to a running system. To receive traffic for MAC addresses other than the native one, most cards use a hashed table of addresses to recognize and I suspect that it is only initialized at the initial multicast setup. If the card can't be set at this time, maybe it never is. Just to clarify, when you connect, are you inserting the card or simply connecting a cable to a card that is already present? Have you tried cycling the card with either a remove and insert or by use of "pccardc power"? And I may be completely off base in my analysis of this. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 17:37:12 2002 Delivered-To: freebsd-net@freebsd.org Received: from osi-east2.nersc.gov (osi-east2.nersc.gov [128.55.6.20]) by hub.freebsd.org (Postfix) with ESMTP id A27D237B400 for ; Tue, 22 Jan 2002 17:37:08 -0800 (PST) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by osi-east2.nersc.gov (8.9.2/8.9.2) with ESMTP id RAA04212; Tue, 22 Jan 2002 17:37:07 -0800 (PST) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 3A2773B1A3; Tue, 22 Jan 2002 17:37:07 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Kevin Oberman" Cc: freebsd-net@freebsd.org Subject: Re: IP multicast time and dhcp In-Reply-To: Message from "Kevin Oberman" of "Tue, 22 Jan 2002 17:10:35 PST." <20020123011035.818B95D0A@ptavv.es.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_189477153P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 22 Jan 2002 17:37:07 -0800 From: Eli Dart Message-Id: <20020123013707.3A2773B1A3@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_189477153P Content-Type: text/plain; charset=us-ascii In reply to "Kevin Oberman" : > > Date: Tue, 22 Jan 2002 14:31:43 -0800 > > From: Eli Dart > > Sender: owner-freebsd-net@FreeBSD.ORG > > > > I have a laptop (FreeBSD-4.2-R) that spends a lot of it's time > > disconnected from the network. When I do want to connect it, I kick > > off dhclient -- works fine. > > 4.2? Come on, Eli. 4.5 should be out in a week and pccard support > is one area that has seen vast improvement since 4.2 came out. (Most > were in 4.4, although a few things have been done since then.) No pccard stuff here. This is on the built-in fxp interface. It behaves like any other hard-wired ethernet interface, and does not seem to suffer from the recent problems with newer fxp chipsets. > Just a guess, but I suspect that the receive address hashes are not > getting properly set up for multicast when the card is connected to a > running system. > > To receive traffic for MAC addresses other than the native one, most > cards use a hashed table of addresses to recognize and I suspect that > it is only initialized at the initial multicast setup. If the card can't be > set at this time, maybe it never is. Hmmm.....some more info: Here are the syslog messages when ntpd kicks off..... note the failure of the setsockopt() call. Jan 22 17:24:43 lart ntpd[116]: ntpd 4.1.0 Fri Jan 11 13:10:27 PST 2002 (1) Jan 22 17:24:43 lart ntpd[116]: kernel time discipline status 2040 Jan 22 17:24:43 lart ntpd[116]: frequency initialized -141.220 from /etc/ntp.drift Jan 22 17:24:43 lart ntpd[116]: setsockopt IP_ADD_MEMBERSHIP fails: Can't assign requested address for 10100e0 / 0 (224.0.1.1) However, if I do a tcpdump on the now-configured interface, I see igmp queries from the router. The laptop just doesn't send a report, even though it's interested in multicast traffic (see netstat below): dart@laptop ~ >> netstat -naf inet Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 *.514 *.* LISTEN tcp4 0 0 *.21 *.* LISTEN udp4 0 0 *.68 *.* udp4 0 0 *.* *.* udp4 0 0 *.69 *.* udp4 0 0 224.0.1.1.123 *.* udp4 0 0 127.0.0.1.123 *.* udp4 0 0 *.123 *.* dart@laptop ~ >> Note that the igmp queries are sent to the multicast address 224.0.0.1, so the laptop is seeing multicast traffic. The kernel just seems to think that it doesn't have any multicast groups that it cares about. As for OS versions, I'm waiting for 4.5 :) If this should wait till then, I'm happy to table it for a bit..... --eli --==_Exmh_189477153P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE8ThPDLTFEeF+CsrMRArpaAKDOYjsJEkTfmCJR5Ci2g1wswUsMRQCeJZAx T5ZOBn/pz7l6lhMOVmfuRPA= =l+00 -----END PGP SIGNATURE----- --==_Exmh_189477153P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Jan 22 19:39:36 2002 Delivered-To: freebsd-net@freebsd.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by hub.freebsd.org (Postfix) with SMTP id 3BA5537B402 for ; Tue, 22 Jan 2002 19:39:35 -0800 (PST) Received: from unknown (HELO kshitij1) (203.124.128.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 23 Jan 2002 03:39:33 -0000 From: "Kshitij Gunjikar" To: Subject: User Space Date: Wed, 23 Jan 2002 09:19:39 +0530 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.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi All, I'm trying to understand the IP layer coding. Does anybody have the operating system independent code with just the IP layer code? I want to step through the kernel code for IP. Can somebody tell me how the freebsd kernels can be compiled for it? Regards Kshitij _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 3:21:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 84A1937B400 for ; Wed, 23 Jan 2002 03:21:08 -0800 (PST) Received: from dialup-209.245.141.241.dial1.sanjose1.level3.net ([209.245.141.241] helo=blossom.cjclark.org) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16TLSP-00015e-00; Wed, 23 Jan 2002 03:20:50 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g0NBIsx85429; Wed, 23 Jan 2002 03:18:54 -0800 (PST) (envelope-from cjc) Date: Wed, 23 Jan 2002 03:18:54 -0800 From: "Crist J . Clark" To: Eli Dart Cc: Kevin Oberman , freebsd-net@FreeBSD.ORG Subject: Re: IP multicast time and dhcp Message-ID: <20020123031854.F83184@blossom.cjclark.org> References: <20020123013707.3A2773B1A3@gemini.nersc.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020123013707.3A2773B1A3@gemini.nersc.gov>; from dart@nersc.gov on Tue, Jan 22, 2002 at 05:37:07PM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jan 22, 2002 at 05:37:07PM -0800, Eli Dart wrote: [snip] > Note that the igmp queries are sent to the multicast address > 224.0.0.1, so the laptop is seeing multicast traffic. The kernel > just seems to think that it doesn't have any multicast groups that it > cares about. Running mrouted(8)? -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 4:51: 8 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id E121837B402; Wed, 23 Jan 2002 04:50:48 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0NCo3S80188; Wed, 23 Jan 2002 14:50:03 +0200 (EET) (envelope-from ru) Date: Wed, 23 Jan 2002 14:50:03 +0200 From: Ruslan Ermilov To: Harti Brandt Cc: net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020123145003.C66702@sunbay.com> References: <20020123105315.Q86919-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020123105315.Q86919-100000@beagle.fokus.gmd.de> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [Redirected to -net with -hackers Bcc:ed] On Wed, Jan 23, 2002 at 10:59:00AM +0100, Harti Brandt wrote: > > Hi, > > is there any way to get at the if_multiaddrs list from user space (except > for digging through the kernel with kvm). > I'm affraid not. > If not, where would one add it? > sysctl net.link.??? perhaps? Or SIOCIFGETMULTI? > I think the right way would be to add this to net/rtsock.c:sysctl_iflist() to be accessible through the NET_RT_IFLIST sysctl. BTW, I've just fixed the sysctl(3) manpage to document the sixth level of this sysctl. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 4:59:36 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 8406137B417; Wed, 23 Jan 2002 04:59:30 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g0NCxRR05440; Wed, 23 Jan 2002 13:59:27 +0100 (MET) Date: Wed, 23 Jan 2002 13:59:27 +0100 (CET) From: Harti Brandt To: Ruslan Ermilov Cc: net@FreeBSD.org Subject: Re: interface multicast address list In-Reply-To: <20020123145003.C66702@sunbay.com> Message-ID: <20020123135549.E86919-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 23 Jan 2002, Ruslan Ermilov wrote: RE>[Redirected to -net with -hackers Bcc:ed] RE> RE>On Wed, Jan 23, 2002 at 10:59:00AM +0100, Harti Brandt wrote: RE>> RE>> Hi, RE>> RE>> is there any way to get at the if_multiaddrs list from user space (except RE>> for digging through the kernel with kvm). RE>> RE>I'm affraid not. RE> RE>> If not, where would one add it? RE>> sysctl net.link.??? perhaps? Or SIOCIFGETMULTI? RE>> RE>I think the right way would be to add this to net/rtsock.c:sysctl_iflist() RE>to be accessible through the NET_RT_IFLIST sysctl. BTW, I've just fixed RE>the sysctl(3) manpage to document the sixth level of this sysctl. I think so too and have just implemented it. There are also a couple of other places to fix with this change, where parsing of the list returned by NET_RT_IFLIST is, ehm, broken (ifconfig comes in mind). If I send you the patch would you look at it and, if it is ok, commit it? harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 5:10:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id EE22637B404 for ; Wed, 23 Jan 2002 05:10:23 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0NDA4l82896; Wed, 23 Jan 2002 15:10:04 +0200 (EET) (envelope-from ru) Date: Wed, 23 Jan 2002 15:10:04 +0200 From: Ruslan Ermilov To: Harti Brandt Cc: net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020123151004.F66702@sunbay.com> References: <20020123145003.C66702@sunbay.com> <20020123135549.E86919-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020123135549.E86919-100000@beagle.fokus.gmd.de> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 23, 2002 at 01:59:27PM +0100, Harti Brandt wrote: > On Wed, 23 Jan 2002, Ruslan Ermilov wrote: > > RE>[Redirected to -net with -hackers Bcc:ed] > RE> > RE>On Wed, Jan 23, 2002 at 10:59:00AM +0100, Harti Brandt wrote: > RE>> > RE>> Hi, > RE>> > RE>> is there any way to get at the if_multiaddrs list from user space (except > RE>> for digging through the kernel with kvm). > RE>> > RE>I'm affraid not. > RE> > RE>> If not, where would one add it? > RE>> sysctl net.link.??? perhaps? Or SIOCIFGETMULTI? > RE>> > RE>I think the right way would be to add this to net/rtsock.c:sysctl_iflist() > RE>to be accessible through the NET_RT_IFLIST sysctl. BTW, I've just fixed > RE>the sysctl(3) manpage to document the sixth level of this sysctl. > > I think so too and have just implemented it. There are also a couple of > other places to fix with this change, where parsing of the list returned > by NET_RT_IFLIST is, ehm, broken (ifconfig comes in mind). If I send you > the patch would you look at it and, if it is ok, commit it? > Hmm, are you sure ifconfig(8) would break if we add RTM_NEWMADDR's after RTM_NEWADDR's? In any case, changing the format of NET_RT_IFLIST _may_ break utilities, and we should be very careful to not break them. I think that the good alternative would be to implement new NET_RT_IFMALIST, similar to NET_RT_IFLIST, but with RTM_NEWMADDR's instead of RTM_NEWADDR's, but let me look at your patch first. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 10:29:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from osi-east2.nersc.gov (osi-east2.nersc.gov [128.55.6.20]) by hub.freebsd.org (Postfix) with ESMTP id 1558537B405; Wed, 23 Jan 2002 10:29:19 -0800 (PST) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by osi-east2.nersc.gov (8.9.2/8.9.2) with ESMTP id KAA14679; Wed, 23 Jan 2002 10:29:18 -0800 (PST) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 0AE023B1A3; Wed, 23 Jan 2002 10:29:18 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Crist J . Clark" Cc: Kevin Oberman , freebsd-net@FreeBSD.ORG Subject: Re: IP multicast time and dhcp In-Reply-To: Message from "Crist J . Clark" of "Wed, 23 Jan 2002 03:18:54 PST." <20020123031854.F83184@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1207805873P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 23 Jan 2002 10:29:18 -0800 From: Eli Dart Message-Id: <20020123182918.0AE023B1A3@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_-1207805873P Content-Type: text/plain; charset=us-ascii In reply to "Crist J . Clark" : > On Tue, Jan 22, 2002 at 05:37:07PM -0800, Eli Dart wrote: > [snip] > > Note that the igmp queries are sent to the multicast address > > 224.0.0.1, so the laptop is seeing multicast traffic. The kernel > > just seems to think that it doesn't have any multicast groups that it > > cares about. > > Running mrouted(8)? Nope. The environment is all PIM-SM. If I restart ntpd after the interface is up, everything works. It's not (as far as I can tell) a problem with the multicast infrastructure -- it's local to the laptop. --eli > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org --==_Exmh_-1207805873P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE8TwD9LTFEeF+CsrMRAuCZAJ9vGdbBzGbm4hYJ63ttFWUaNgusyQCg4a6/ OwPi/RoQs6f5xkGfT4Q5ugA= =2Nxo -----END PGP SIGNATURE----- --==_Exmh_-1207805873P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 11:19: 4 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 64CFF37B400; Wed, 23 Jan 2002 11:18:59 -0800 (PST) Received: from bmah.dyndns.org ([12.233.149.189]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020123191859.CEVQ10199.rwcrmhc53.attbi.com@bmah.dyndns.org>; Wed, 23 Jan 2002 19:18:59 +0000 Received: (from bmah@localhost) by bmah.dyndns.org (8.11.6/8.11.6) id g0NJIwu86714; Wed, 23 Jan 2002 11:18:58 -0800 (PST) (envelope-from bmah) Message-Id: <200201231918.g0NJIwu86714@bmah.dyndns.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Eli Dart Cc: "Crist J . Clark" , Kevin Oberman , freebsd-net@FreeBSD.ORG Subject: Re: IP multicast time and dhcp In-reply-to: <20020123182918.0AE023B1A3@gemini.nersc.gov> References: <20020123182918.0AE023B1A3@gemini.nersc.gov> Comments: In-reply-to Eli Dart message dated "Wed, 23 Jan 2002 10:29:18 -0800." From: "Bruce A. Mah" Reply-To: bmah@FreeBSD.ORG X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Jan 2002 11:18:58 -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org If memory serves me right, Eli Dart wrote: > In reply to "Crist J . Clark" : > > > On Tue, Jan 22, 2002 at 05:37:07PM -0800, Eli Dart wrote: > > [snip] > > > Note that the igmp queries are sent to the multicast address > > > 224.0.0.1, so the laptop is seeing multicast traffic. The kernel > > > just seems to think that it doesn't have any multicast groups that it > > > cares about. > > > > Running mrouted(8)? > > Nope. The environment is all PIM-SM. If I restart ntpd after the > interface is up, everything works. It's not (as far as I can tell) a > problem with the multicast infrastructure -- it's local to the laptop. Right, you shouldn't need mrouted(8) or any other multicast routing daemon for IGMP to do the right thing. Hmmm. How about a routing table? Do you have default unicast/ multicast routes? (Did I ask you this before?) Bruce. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 12:15: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from osi-east2.nersc.gov (osi-east2.nersc.gov [128.55.6.20]) by hub.freebsd.org (Postfix) with ESMTP id 9AF2E37B405; Wed, 23 Jan 2002 12:14:57 -0800 (PST) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by osi-east2.nersc.gov (8.9.2/8.9.2) with ESMTP id MAA17943; Wed, 23 Jan 2002 12:14:57 -0800 (PST) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 8FEF63B1A3; Wed, 23 Jan 2002 12:14:56 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: bmah@FreeBSD.ORG Cc: "Crist J . Clark" , Kevin Oberman , freebsd-net@FreeBSD.ORG Subject: Re: IP multicast time and dhcp In-Reply-To: Message from "Bruce A. Mah" of "Wed, 23 Jan 2002 11:18:58 PST." <200201231918.g0NJIwu86714@bmah.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_135363216P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 23 Jan 2002 12:14:56 -0800 From: Eli Dart Message-Id: <20020123201456.8FEF63B1A3@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_135363216P Content-Type: text/plain; charset=us-ascii In reply to "Bruce A. Mah" : > If memory serves me right, Eli Dart wrote: > > > In reply to "Crist J . Clark" : > > > > > On Tue, Jan 22, 2002 at 05:37:07PM -0800, Eli Dart wrote: > > > [snip] > > > > Note that the igmp queries are sent to the multicast address > > > > 224.0.0.1, so the laptop is seeing multicast traffic. The kernel > > > > just seems to think that it doesn't have any multicast groups that it > > > > cares about. > > > > > > Running mrouted(8)? > > > > Nope. The environment is all PIM-SM. If I restart ntpd after the > > interface is up, everything works. It's not (as far as I can tell) a > > problem with the multicast infrastructure -- it's local to the laptop. > > Right, you shouldn't need mrouted(8) or any other multicast routing > daemon for IGMP to do the right thing. > > Hmmm. How about a routing table? Do you have default unicast/ > multicast routes? (Did I ask you this before?) There are no default routes when the box comes up. It comes up with only a loopback interface configured. After dhclient kicks off, a default route is added, but before then there is no route that points anywhere non-local. --eli > > Bruce. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --==_Exmh_135363216P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE8TxnALTFEeF+CsrMRAqZyAKDT/K5QBY2LkvKYpbBQkQLc37kDnQCeM2J+ 26oB1tT9d06GyrWnGsZcfPQ= =zLnz -----END PGP SIGNATURE----- --==_Exmh_135363216P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 15:28:50 2002 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 92D4037B405; Wed, 23 Jan 2002 15:28:47 -0800 (PST) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id g0NNSlO74758; Wed, 23 Jan 2002 18:28:47 -0500 (EST) (envelope-from wollman) Date: Wed, 23 Jan 2002 18:28:47 -0500 (EST) From: Garrett Wollman Message-Id: <200201232328.g0NNSlO74758@khavrinen.lcs.mit.edu> To: Ruslan Ermilov Cc: net@FreeBSD.ORG Subject: Re: interface multicast address list In-Reply-To: <20020123145003.C66702@sunbay.com> References: <20020123105315.Q86919-100000@beagle.fokus.gmd.de> <20020123145003.C66702@sunbay.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >> is there any way to get at the if_multiaddrs list from user space (except >> for digging through the kernel with kvm). >> > I'm affraid not. There should be. > I think the right way would be to add this to net/rtsock.c:sysctl_iflist() > to be accessible through the NET_RT_IFLIST sysctl. BTW, I've just fixed > the sysctl(3) manpage to document the sixth level of this sysctl. I agree. I'd suggest it would be simpler for most applications to create a new option, NET_RT_IFMLIST. The RTM_NEWMADDR message type already exists, IIRC. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 16:29:43 2002 Delivered-To: freebsd-net@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 0901E37B404; Wed, 23 Jan 2002 16:29:39 -0800 (PST) Received: from pool0159.cvx40-bradley.dialup.earthlink.net ([216.244.42.159] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16TXlp-0000jW-00; Wed, 23 Jan 2002 16:29:38 -0800 Message-ID: <3C4F556E.3A2FC850@mindspring.com> Date: Wed, 23 Jan 2002 16:29:34 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Ruslan Ermilov Cc: Harti Brandt , net@FreeBSD.org Subject: Re: interface multicast address list References: <20020123105315.Q86919-100000@beagle.fokus.gmd.de> <20020123145003.C66702@sunbay.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ruslan Ermilov wrote: > [Redirected to -net with -hackers Bcc:ed] > > is there any way to get at the if_multiaddrs list from user space (except > > for digging through the kernel with kvm). > > I'm affraid not. Actually, the easiest way is to remember the things when you set them in the first place. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 17:35:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from aol.com (ACBDA889.ipt.aol.com [172.189.168.137]) by hub.freebsd.org (Postfix) with SMTP id 7754837B405 for ; Wed, 23 Jan 2002 17:34:29 -0800 (PST) From: "kriss rolo" To: Subject: SOME ITEMS THAT YOU MAY BE INTERESTED IN OR BE ABLE TO ADVISE ME ON Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 24 Jan 2002 01:21:38 -0000 Reply-To: "kriss rolo" X-Priority: 1 (Highest) Content-Transfer-Encoding: 8bit Message-Id: <20020124013429.7754837B405@hub.freebsd.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org These are the items that iam interested in selling.. Could you help me with some details on the goods, history, origin etc. are these worth anything and if so who would i contact with regards to selling them? and the best way to sell them ie auction etc APOLOGISE IF YOU HAVE ALREADY RECEIVED THIS E-MAIL JPEGS ARE AVAILABLE AT YOUR REQUEST MANY THANX kriss rolo tel: 0044 182760393 office (uk) 0044 1216864211 home (uk) 0044 7814294018 mobile (uk) return e-mail address krissrolo@aol.com UK ONLY VEHICLE REGISTRATION NUMBER N64 CON NINTENDO 64 CONSOLE item 1 hand carved round table with metal chain link in the middle item 2 magnum laurent perrier vintage 1988 champagne item 3 miniture football on stand from euro96 signed by pele and bobby charlton item 4 is a bit more interesting. its a protana minifon attache, as u will see ive enclosed notes from a web site regarding this and you will see back in the 50's it cost $340.00 so i could imagine this to be worth a bit. it also has an original tape inside i do not know what is on this tape, but judging by who made it and the cost of the machine, the tape could have some important information on it. heres the note..... The Minifon, developed in the early 1950s by Monske GMBH of Hanover(or by Protona GMBH- I'm not certain), was an ultra-miniaturized, battery operated magnetic recording device. It could not (initially at least) record the full range of sounds and was thus limited to voice recording, but it did offer easy portability in a very small package. The idea of offering a pocket dictating machine was novel, since dictation had previously been done in the office. However, it was thought that people like salesmen could take the machine "on the road" with them. Once on the market, the Minifon's promoters discovered that many people took advantage of the recorder's small size to make secret recordings to be used as evidence, as in court.

The "legitimate" use of the Minifon, as a dictating machine, was somewhat problematical. Recordings made on regular dictating equipment were usually letters, and thus were normally sent almost immediately to a typist. The Minifon offered no obvious advantages over standard dictation equipment for office use, but its developers hoped to cultivate new uses for dictation equipment, such as stock taking in warehouses, or the use of the machine as a substitute for note-taking by reporters, insurance adjusters, salesmen, and others. In its original form, the Minifon was a wire recorder, using a type of wire medium developed by the Armour Research Foundation of Chicago and employed in many similar devices since the late 1940s. The machine at its introduction in 1952 had a recording time of one hour, which was remarkably long, and weighed only about 3 pounds at a time when a typical office dictating machine weighed upwards of 10 pounds. It accomplished this small size and light weight in part through the use of miniature tubes and clever mechanical design. The basic machine cost $289.50-- a price that sounds high today but was very much in line with competing office dictating machines. The parent company attempted to set up distribution, sales and service networks in the United States. It established a business office called the Minifon Export Corp in New York, and an existing company, Harvey Radio in New York City became the main distributor. Although smaller tape recorders appeared at about the same time, the main competition in the voice recording field was from an American company, Mohawk, which made a small, battery-operated cartridge tape recorder called the Migetape. Both products sold less than 10,000 units per year in the U.S.
After a few years, the Minifon was modified to use transistors and magnetic tape, further lowering its weight and cost. By 1962 the basic machine weighed in at only 1.5 pounds. Competition by this time had helped bring the cost down to $249.50. The Minifon after about 1962 was distributed by the international conglomerate ITT through its subsidiary in the U.S., Federal Electric Corp. A little later, distribution was taken over by the ITT Distributor Products Division in Lodi, New Jersey. (I don't know whether these were the same company with different names) By the time ITT became associated with this product, it had taken on the name of Minifon "Attache," and a new line of models and options appeared. These included a hi-fi model, the 978H, which sold for $330.50.Usinga two-track, 1/4 inch tape cartridge operating at 1 7/8 inches per second, the machine claimed a frequency response of up to 12,000 Hz, plus or minus 3db. The coming of magnetic tape did not completely displace wire. The Model 240 series of recorders introduced in the early 1960s were probably the last wire recorders in regular production. The 240L, at a price of $269.50 used a special long-playing wire cartridge that held 4 hours of wire. Otherwise it looked like both the tape model and the 240S, which used a 2-hour wire cartridge and sold for $249.50. Another innovation was the introduction of more conventional recorders. After years of offering only "half" of a complete dictation system, Minifon finally developed a restyled, non-portable "office" machine, mainly for use by a transcriber, with pedal controls. By the mid-1960s, Minifon was trying to market its machines as multi-purpose devices suitable for nearly any recording need. In addition to the hi-fi and long-playing machines, the company offered an astounding variety of optional equipment such as foot controls, microphones, external amplifiers and loudspeakers, headsets, external power supplies, telephone recording attachments, conference recording adapters. One of the most interesting options were the miniature microphones intended to allow users to make "spy" recordings. In addition to a small tie-clip microphone, the Minifon could be equipped with a microphone disguised as a wrist- watch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 20:14:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f227.pav1.hotmail.com [64.4.31.227]) by hub.freebsd.org (Postfix) with ESMTP id 8787F37B400 for ; Wed, 23 Jan 2002 20:14:21 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 23 Jan 2002 20:14:21 -0800 Received: from 66.32.8.96 by pv1fd.pav1.hotmail.msn.com with HTTP; Thu, 24 Jan 2002 04:14:21 GMT X-Originating-IP: [66.32.8.96] From: "Tony Williams" To: freebsd-net@freebsd.org Subject: Question on PPPoE Date: Thu, 24 Jan 2002 04:14:21 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Jan 2002 04:14:21.0256 (UTC) FILETIME=[994F9C80:01C1A48D] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have a question regarding PPPoE protocol and code. I recently changed from dial up to a PPPoE service through a DSL provider and was successful in setting the FreeBSD 4.2 box up! Out of curiousity, I went through some of the code in netgraph and the rfc specification, but unable to follow the necessity for the Session ID. the protocol says the peer mac address and the session id determines a unique session. From one peer, one can have only one internet connection and mac addresses are unique. Why then the session id also included in the protocol. What is the advantage of having session id, it is not there in normal dial up PPP and who uses it? In my case, the ISP did not mention anything about the session id and I have only one session from the PC, i assume Thanks -Tony _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 21: 0:43 2002 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 6747F37B445 for ; Wed, 23 Jan 2002 21:00:37 -0800 (PST) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.6/8.11.6) with ESMTP id g0O50ZE96971; Thu, 24 Jan 2002 00:00:35 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200201240500.g0O50ZE96971@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Tony Williams" Cc: freebsd-net@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: Question on PPPoE References: In-reply-to: Your message of "Thu, 24 Jan 2002 04:14:21 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 24 Jan 2002 00:00:35 -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org We put the session ID in the protocol so that you could support multiple simultanous PPP sessions from the same host over a single Ethernet (bridged ethernet over DSL in most cases) to the session concentrator platform. Imagine one PPP session for Internet access; perhaps another for some corporate telework sort of thing. I don't know of anyone that actually has deployed services which have taken advantage of this, but we didn't want to preclude that sort of use. Louis Mamakos > Hi, > > I have a question regarding PPPoE protocol and code. I recently > changed from dial up to a PPPoE service through a DSL provider > and was successful in setting the FreeBSD 4.2 box up! > > Out of curiousity, I went through some of the code in netgraph and > the rfc specification, but unable to follow the necessity for the > Session ID. the protocol says the peer mac address and the session > id determines a unique session. From one peer, one can have only one > internet connection and mac addresses are unique. Why then the session > id also included in the protocol. What is the advantage of having > session id, it is not there in normal dial up PPP and who uses it? > > In my case, the ISP did not mention anything about the session id > and I have only one session from the PC, i assume > > Thanks > -Tony > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 21: 5:21 2002 Delivered-To: freebsd-net@freebsd.org Received: from spider.pilosoft.com (p66-24.acedsl.com [66.114.66.24]) by hub.freebsd.org (Postfix) with ESMTP id 0930A37B400 for ; Wed, 23 Jan 2002 21:05:14 -0800 (PST) Received: from localhost (alexmail@localhost) by spider.pilosoft.com (8.9.3/8.9.3) with ESMTP id AAA11036; Thu, 24 Jan 2002 00:13:11 -0500 (EST) Date: Thu, 24 Jan 2002 00:13:11 -0500 (EST) From: Alex Pilosov To: Tony Williams Cc: freebsd-net@FreeBSD.ORG Subject: Re: Question on PPPoE In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Multiple reasons: a) MAC addresses can be spoofed. (and are only 48 bit long). Session ID is 64 bit. b) A real reason is that you can have multiple PPPoE sessions to different ISPs from same MAC addr.m -alex On Thu, 24 Jan 2002, Tony Williams wrote: > > Hi, > > I have a question regarding PPPoE protocol and code. I recently > changed from dial up to a PPPoE service through a DSL provider > and was successful in setting the FreeBSD 4.2 box up! > > Out of curiousity, I went through some of the code in netgraph and > the rfc specification, but unable to follow the necessity for the > Session ID. the protocol says the peer mac address and the session > id determines a unique session. From one peer, one can have only one > internet connection and mac addresses are unique. Why then the session > id also included in the protocol. What is the advantage of having > session id, it is not there in normal dial up PPP and who uses it? > > In my case, the ISP did not mention anything about the session id > and I have only one session from the PC, i assume > > Thanks > -Tony > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Jan 23 21:20:19 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 3BD6437B416 for ; Wed, 23 Jan 2002 21:20:11 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020124052010.EOFX26243.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 24 Jan 2002 05:20:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id VAA25443; Wed, 23 Jan 2002 21:18:29 -0800 (PST) Date: Wed, 23 Jan 2002 21:18:28 -0800 (PST) From: Julian Elischer To: Tony Williams Cc: freebsd-net@freebsd.org Subject: Re: Question on PPPoE In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You can have several PPPOE sessions active to the same end router, each being forwarded o a different ISP. (similar to VPNs) On Thu, 24 Jan 2002, Tony Williams wrote: > > Hi, > > I have a question regarding PPPoE protocol and code. I recently > changed from dial up to a PPPoE service through a DSL provider > and was successful in setting the FreeBSD 4.2 box up! > > Out of curiousity, I went through some of the code in netgraph and > the rfc specification, but unable to follow the necessity for the > Session ID. the protocol says the peer mac address and the session > id determines a unique session. From one peer, one can have only one > internet connection and mac addresses are unique. Why then the session > id also included in the protocol. What is the advantage of having > session id, it is not there in normal dial up PPP and who uses it? > > In my case, the ISP did not mention anything about the session id > and I have only one session from the PC, i assume > > Thanks > -Tony > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 0:54: 8 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 43FFC37B405; Thu, 24 Jan 2002 00:54:05 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g0O8s2R24640; Thu, 24 Jan 2002 09:54:02 +0100 (MET) Date: Thu, 24 Jan 2002 09:54:02 +0100 (CET) From: Harti Brandt To: Terry Lambert Cc: Ruslan Ermilov , Subject: Re: interface multicast address list In-Reply-To: <3C4F556E.3A2FC850@mindspring.com> Message-ID: <20020124095326.M24779-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 23 Jan 2002, Terry Lambert wrote: TL>Ruslan Ermilov wrote: TL>> [Redirected to -net with -hackers Bcc:ed] TL>> > is there any way to get at the if_multiaddrs list from user space (except TL>> > for digging through the kernel with kvm). TL>> TL>> I'm affraid not. TL> TL>Actually, the easiest way is to remember the things when you TL>set them in the first place. That's not an option for a daemon needing this information. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 1: 8:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 6BE6037B404; Thu, 24 Jan 2002 01:08:14 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 364E110DDF8; Thu, 24 Jan 2002 01:08:14 -0800 (PST) Date: Thu, 24 Jan 2002 01:08:14 -0800 From: Alfred Perlstein To: Harti Brandt Cc: Terry Lambert , Ruslan Ermilov , net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020124010814.U13686@elvis.mu.org> References: <3C4F556E.3A2FC850@mindspring.com> <20020124095326.M24779-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020124095326.M24779-100000@beagle.fokus.gmd.de>; from brandt@fokus.gmd.de on Thu, Jan 24, 2002 at 09:54:02AM +0100 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Harti Brandt [020124 00:54] wrote: > On Wed, 23 Jan 2002, Terry Lambert wrote: > > TL>Ruslan Ermilov wrote: > TL>> [Redirected to -net with -hackers Bcc:ed] > TL>> > is there any way to get at the if_multiaddrs list from user space (except > TL>> > for digging through the kernel with kvm). > TL>> > TL>> I'm affraid not. > TL> > TL>Actually, the easiest way is to remember the things when you > TL>set them in the first place. > > That's not an option for a daemon needing this information. I would export the info via sysctl. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 1:10:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 65E6037B41F; Thu, 24 Jan 2002 01:10:10 -0800 (PST) Received: from pool0373.cvx22-bradley.dialup.earthlink.net ([209.179.199.118] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16TftX-0001O6-00; Thu, 24 Jan 2002 01:10:07 -0800 Message-ID: <3C4FCF6B.51A6242@mindspring.com> Date: Thu, 24 Jan 2002 01:10:03 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Harti Brandt Cc: Ruslan Ermilov , net@FreeBSD.org Subject: Re: interface multicast address list References: <20020124095326.M24779-100000@beagle.fokus.gmd.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Harti Brandt wrote: > TL>> > is there any way to get at the if_multiaddrs list from user space (except > TL>> > for digging through the kernel with kvm). > TL>> > TL>> I'm affraid not. > TL> > TL>Actually, the easiest way is to remember the things when you > TL>set them in the first place. > > That's not an option for a daemon needing this information. Why not? Who set them up? Wasn't it the Daemon that bound the sockets and the multicast addresses? This is like the Java-thing where people were too lazy to keep track of their memory allocations, so they invented dynamic scoping and garbage collection, or the Linux thing, where people were too lazy to remember the name of the file they called open(2) on in order to get a descriptor, and so wanted a function call to get the path to the file, totally ignoring the effects of directory permissions, hard links, and exclusion groups. Like the X Server: if you put the thing into the mode, it's your job to remember it so that you can take it out, later. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 1:15:15 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id D726237B405; Thu, 24 Jan 2002 01:15:12 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g0O9EmR26522; Thu, 24 Jan 2002 10:14:48 +0100 (MET) Date: Thu, 24 Jan 2002 10:14:48 +0100 (CET) From: Harti Brandt To: Terry Lambert Cc: Ruslan Ermilov , Subject: Re: interface multicast address list In-Reply-To: <3C4FCF6B.51A6242@mindspring.com> Message-ID: <20020124101219.J24779-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 24 Jan 2002, Terry Lambert wrote: TL>Harti Brandt wrote: TL>> TL>> > is there any way to get at the if_multiaddrs list from user space (except TL>> TL>> > for digging through the kernel with kvm). TL>> TL>> TL>> TL>> I'm affraid not. TL>> TL> TL>> TL>Actually, the easiest way is to remember the things when you TL>> TL>set them in the first place. TL>> TL>> That's not an option for a daemon needing this information. TL> TL>Why not? Who set them up? Wasn't it the Daemon that bound the TL>sockets and the multicast addresses? Suppose I have an SNMP daemon where I want to export this information for what ever reason (say, to implement ifRcvAddressTable). The daemon isn't going to set up the addresses, is it? harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 1:55:45 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 436E937B404 for ; Thu, 24 Jan 2002 01:55:34 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0O9s0020927; Thu, 24 Jan 2002 11:54:00 +0200 (EET) (envelope-from ru) Date: Thu, 24 Jan 2002 11:53:59 +0200 From: Ruslan Ermilov To: Alfred Perlstein Cc: Harti Brandt , Terry Lambert , net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020124115359.C16972@sunbay.com> References: <3C4F556E.3A2FC850@mindspring.com> <20020124095326.M24779-100000@beagle.fokus.gmd.de> <20020124010814.U13686@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020124010814.U13686@elvis.mu.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Jan 24, 2002 at 01:08:14AM -0800, Alfred Perlstein wrote: > * Harti Brandt [020124 00:54] wrote: > > On Wed, 23 Jan 2002, Terry Lambert wrote: > > > > TL>Ruslan Ermilov wrote: > > TL>> [Redirected to -net with -hackers Bcc:ed] > > TL>> > is there any way to get at the if_multiaddrs list from user space (except > > TL>> > for digging through the kernel with kvm). > > TL>> > > TL>> I'm affraid not. > > TL> > > TL>Actually, the easiest way is to remember the things when you > > TL>set them in the first place. > > > > That's not an option for a daemon needing this information. > > I would export the info via sysctl. > That's exactly what we're working on right now. :-) Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 4:13:17 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id A4D4037B41A; Thu, 24 Jan 2002 04:13:01 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0OCCqs40554; Thu, 24 Jan 2002 14:12:52 +0200 (EET) (envelope-from ru) Date: Thu, 24 Jan 2002 14:12:52 +0200 From: Ruslan Ermilov To: "Crist J. Clark" Cc: net@FreeBSD.org Subject: Re: sysctl(3) errnos wrong? Message-ID: <20020124141252.A38822@sunbay.com> References: <20020123025135.E83184@blossom.cjclark.org> <20020124115209.B16972@sunbay.com> <20020124022742.F87663@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020124022742.F87663@blossom.cjclark.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [Redirected to -net] On Thu, Jan 24, 2002 at 02:27:42AM -0800, Crist J. Clark wrote: > On Thu, Jan 24, 2002 at 11:52:09AM +0200, Ruslan Ermilov wrote: > > Sounds like that, but changing it now would be too backwards incompatible. > > Then shouldn't we fix the documentation to reflect reality? > Hmm, I've looked at the OpenBSD and NetBSD code but didn't look at the BSD/OS code before. BSD/OS has fixed the issue exactly as you suggest. I withdraw my objection. Please commit this patch: Index: rtsock.c =================================================================== RCS file: /home/ncvs/src/sys/net/rtsock.c,v retrieving revision 1.64 diff -u -p -r1.64 rtsock.c --- rtsock.c 2002/01/18 14:33:03 1.64 +++ rtsock.c 2002/01/24 12:11:30 @@ -1008,7 +1008,7 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) if (req->newptr) return (EPERM); if (namelen != 3) - return (EINVAL); + return ((namelen < 3) ? EISDIR : ENOTDIR); af = name[0]; Bzero(&w, sizeof(w)); w.w_op = name[1]; > > On Wed, Jan 23, 2002 at 02:51:35AM -0800, Crist J . Clark wrote: > > > Here is a quick, broken, program, > > > > > > #include > > > #include > > > #include > > > #include > > > #include > > > #include > > > > > > #include > > > > > > /* #define MIB_LEN 6 */ > > > #define MIB_LEN 5 > > > > > > int main(int argc, char *argv[]) > > > { > > > int mib[MIB_LEN]; > > > size_t rttsize; > > > > > > mib[0] = CTL_NET; > > > mib[1] = PF_ROUTE; > > > mib[2] = 0; > > > mib[3] = AF_INET; > > > mib[4] = NET_RT_DUMP; > > > /* mib[5] = 0; */ > > > > > > if (sysctl(mib, MIB_LEN, NULL, &rttsize, NULL, 0) != 0) > > > err(EX_OSERR, "sysctl(3) for table size failed"); > > > > > > return 0; > > > } > > > > > > This broken version will return, > > > > > > $ ./sysctlerr > > > sysctlerr: sysctl(3) for table size failed: Invalid argument > > > > > > However, if we look at the errno descriptions in the sysctl(3) > > > manpage, an EINVAL is returned when, > > > > > > [EINVAL] The name array is less than two or greater than > > > CTL_MAXNAME. > > > > > > [EINVAL] A non-null newp is given and its specified length in > > > newlen is too large or too small. > > > > > > Neither of which is the case here. I think it should be returning one > > > of these, > > > > > > [ENOTDIR] The name array specifies an intermediate rather than > > > terminal name. > > > > > > [EISDIR] The name array specifies a terminal name, but the > > > actual name is not terminal. > > > > > > But "terminal" or "intermediate" names are not defined anywhere else > > > in the manpage. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 5: 4:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 280DE37B402 for ; Thu, 24 Jan 2002 05:04:34 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0OD4Tm30383; Thu, 24 Jan 2002 13:04:29 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0OD4Pl49029; Thu, 24 Jan 2002 13:04:26 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200201241304.g0OD4Pl49029@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Julian Elischer Cc: Bjoern Fischer , freebsd-net@FreeBSD.ORG, Brian Somers Subject: Re: Brian: pppoe question. In-Reply-To: Message from Julian Elischer of "Tue, 15 Jan 2002 15:04:29 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Jan 2002 13:04:25 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Brian, would it be possible to specify to ppp, an arbitrary node/hook o= n > which to attach the pppoe node? Just to see if I understand, do you mean to connect to ``something = else'' besides [NIC]:orphan ? - so that another node can be put in = the chain ? The netgraph code on the cvs NETGRAPH branch should be able to do = this although I haven't tested it for some time. The idea is that = you can configure a chain of nodes, sending them ascii messages if = required. The nodes are arbitrary... -- = Brian http://www.freebsd-services.com/ 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 Thu Jan 24 5:10:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id B7BA337B402; Thu, 24 Jan 2002 05:10:29 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0ODASm35415; Thu, 24 Jan 2002 13:10:28 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0ODAOl49131; Thu, 24 Jan 2002 13:10:24 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200201241310.g0ODAOl49131@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: zaks@prioris.mini.pw.edu.pl Cc: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: PPP callback and SecurID In-Reply-To: Message from Slawek Zak of "Sat, 19 Jan 2002 13:35:12 +0100." <87ofjqo6wv.fsf@pf39.warszawa.sdi.tpnet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 24 Jan 2002 13:10:24 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You could probably ``set cd off'' to get the desired effect. Alternatively, configure your machine to be able to receive incoming connections and let the initial ppp session drop when the peer hangs up. > I've a problem with my callback. I'd like to automate it somehow, but there is a > problem with LCP. > > The hard way is to do something like: > > # ppp ras > ppp ON pf39> term > deflink: Entering terminal mode on /dev/cuaa1 > Type `~?' for help > atdt > CONNECT 57600 > > > User Access Verification > > Username: > Enter PASSCODE: > > Callback initiated - line is disconnected > > NO CARRIER > > RING > > RING > > ATA > ...... (the connection) > > I tried to do something like this: > > [ppp.conf] > ... > callback: > disable pap > disable chap > set speed 57600 > set phone > set cd off > set device /dev/cuaa1 > allow users * > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 10 \"\" ATZ OK ATDT\\T TIMEOUT 40 CONNECT" > set login "TIMEOUT 15 sername: szak PASSCODE: \"!/usr/X11R6/bin/ssh-askpass\" Callback ATA" > > But it bails out, because the connection is apparently considered open by ppp > after the disconnection, so I can't make the modem accept connections with ATA > command in this state. > > Does anyone have other ideas how to make it work without typing the sequence > everytime with term? > > Thanks, /S -- Brian http://www.freebsd-services.com/ 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 Thu Jan 24 6:29:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.netmodule.com (mail.netmodule.com [195.49.111.194]) by hub.freebsd.org (Postfix) with ESMTP id 88C5937B402 for ; Thu, 24 Jan 2002 06:29:29 -0800 (PST) Received: from tigris.pacific (tigris.pacific [172.16.1.30]) by mail.netmodule.com (8.9.3/8.9.3) with ESMTP id PAA25016; Thu, 24 Jan 2002 15:29:26 +0100 Received: by tigris.pacific with Internet Mail Service (5.5.2653.19) id ; Thu, 24 Jan 2002 15:29:26 +0100 Message-ID: From: "Reto Trachsel (NetModule)" To: "'cjclark@alum.mit.edu'" , "'net@freebsd.org'" Subject: ICMP Redirect - does it not belong to the RFCs??? Date: Thu, 24 Jan 2002 15:29:25 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Crist and net-list > I am not sure of the reason redirects are not sent for the default > route. In your Stevens reference, he doesn't explain any reasoning for > it? As you say, the comment I quoted goes wa-ay back to before the > initial FreeBSD CVS import back to 4.4BSD or earlier. You might ask on > freebsd-net@freebsd.org as to the reasoning behind this behavior. It is described, that 4.4BSD Based Systems don't send ICMP-redirects if the next Hop is the Routers default route. In my opinion, there's no reason for this. Described into the RFC1812, a router must not send a redirect until the three conditions are met. In this case, they are. RFC1812 [Page82]: Routers MUST NOT generate a Redirect Message unless all the following conditions are met: o The packet is being forwarded out the same physical interface that it was received from, --> Met, theres only one interface in the Company Network o The IP source address in the packet is on the same Logical IP (sub)network as the next-hop IP address, and --> Met, 172.16.1.1 and 172.16.244.24 are both in the 172.16.0.0/16 Network o The packet does not contain an IP source route option. --> Met, sourcerouting is switches off on every host. Is this a part in ICMP that no belong to the RFC-Standarts, or du you know an exacter RFC? Regards Reto Trachsel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 10:20:36 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 18D0837B41C for ; Thu, 24 Jan 2002 10:20:19 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020124182018.MVYC3578.rwcrmhc52.attbi.com@InterJet.elischer.org>; Thu, 24 Jan 2002 18:20:18 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA28076; Thu, 24 Jan 2002 10:04:22 -0800 (PST) Date: Thu, 24 Jan 2002 10:04:21 -0800 (PST) From: Julian Elischer To: Brian Somers Cc: Bjoern Fischer , freebsd-net@FreeBSD.ORG Subject: Re: Brian: pppoe question. In-Reply-To: <200201241304.g0OD4Pl49029@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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org yep I may want to put a 'pseudo' interface down three instead of a real one, and tunnel it to somewhere else.. :-) On Thu, 24 Jan 2002, Brian Somers wrote: > > Brian, would it be possible to specify to ppp, an arbitrary node/hook on > > which to attach the pppoe node? > > Just to see if I understand, do you mean to connect to ``something > else'' besides [NIC]:orphan ? - so that another node can be put in > the chain ? > > The netgraph code on the cvs NETGRAPH branch should be able to do > this although I haven't tested it for some time. The idea is that > you can configure a chain of nodes, sending them ascii messages if > required. The nodes are arbitrary... > -- > Brian > http://www.freebsd-services.com/ > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 12: 5:58 2002 Delivered-To: freebsd-net@freebsd.org Received: from sofia.digsys.bg (sofia.digsys.bg [193.68.3.250]) by hub.freebsd.org (Postfix) with ESMTP id A0E0137B402 for ; Thu, 24 Jan 2002 12:05:51 -0800 (PST) Received: from comm.uni-svishtov.bg (ns.uni-svishtov.bg [193.68.172.1]) by sofia.digsys.bg (8.9.0/8.9.0) with ESMTP id WAA09653 for ; Thu, 24 Jan 2002 22:05:44 +0200 (EET) Received: from grinch.uni-svishtov.bg (grinch.uni-svishtov.bg [193.68.172.9]) by comm.uni-svishtov.bg (8.9.3/8.9.3) with ESMTP id WAA14550 for ; Thu, 24 Jan 2002 22:05:43 +0200 (EET) Received: from deckland (deckland.uni-svishtov.bg [193.68.173.82]) by grinch.uni-svishtov.bg (8.12.1/8.12.1) with SMTP id g0OK5hOA019943 for ; Thu, 24 Jan 2002 22:05:43 +0200 (EET) Message-ID: <000a01c1a512$862af0c0$52ad44c1@deckland> From: "Radoslav Vasilev" To: Subject: subscribe Date: Thu, 24 Jan 2002 22:05:52 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1A523.49A2F7E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1A523.49A2F7E0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable subscribe freebsd-net@freebsd.org ------=_NextPart_000_0007_01C1A523.49A2F7E0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
subscribe=20 freebsd-net@freebsd.org
------=_NextPart_000_0007_01C1A523.49A2F7E0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Jan 24 14:20:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from blade.elitsat.net (blade.elitsat.net [209.239.78.129]) by hub.freebsd.org (Postfix) with ESMTP id E201437B400; Thu, 24 Jan 2002 14:19:54 -0800 (PST) Received: from localhost (amour@localhost) by blade.elitsat.net (8.11.6/8.11.6) with ESMTP id g0OLwM794068; Thu, 24 Jan 2002 23:58:22 +0200 (EET) (envelope-from amour@blade.elitsat.net) Date: Thu, 24 Jan 2002 23:58:21 +0200 (EET) From: Alexander To: , Subject: IPXIP Message-ID: <20020124231006.T93791-100000@blade.elitsat.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a serious question to ask. I have 2 gamehalls. Both of them are on masq. networks. And I need to make them to play games over IPX. for linux there are a lot of demons for ipx routing, but I don't know what are for freebsd. So here is what I did: 1. on both routers I compiled: options IPTUNNEL IPXIP and IPX 2. added the following lines in /etc/rc.conf: ifconfig_rl0_ipx="ipx 0x00000000" # Sample IPX address family entry. ipxgateway_enable="YES" # Set to YES to enable IPX routing. ipxrouted_enable="YES" # Set to YES to run the IPX routing daemon. ipxrouted_flags="" # Flags for IPX routing daemon. 3. did a tunnel over the both routers. on router1: nos-tun -t /dev/tun0 -s 172.100.100.1 -d 172.100.100.2 209.1.1.2 on router2: nos-tun -t /dev/tun0 -s 172.100.100.2 -d 172.100.100.1 209.1.1.1 4. did: on router1: ifconfig rl0 ipx 0x0 ipdst 172.100.100.1 on router2: ifconfig rl0 ipx 0x0 ipdst 172.100.100.2 and the results: on both sides I had interface: ipxip0: flags=11 mtu 1536 ipx 0.XXXXXXXXXX --> 0 but when a user on the one gamehall creates a game (using Starcraft (LAN)) the other gamehall couldn't join. So this means that my configurations didn't work. I tried to change ipdst on both sides to point not to source but dest but this didn't help. If you know how can I make this, please tell me. I've tried to find some documentations about IPXIP or IPXrouted but I found nothing. P.S. I know that there are gameservers for starcraft but I gave it just for example. thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 1:42:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from hale.inty.net (hale.inty.net [195.92.21.144]) by hub.freebsd.org (Postfix) with ESMTP id 3BD0537B404 for ; Fri, 25 Jan 2002 01:42:36 -0800 (PST) Received: from inty.hq.inty.net (inty.hq.inty.net [213.38.150.150]) by hale.inty.net (8.11.3/8.11.3) with ESMTP id g0P9gPH37695 for ; Fri, 25 Jan 2002 09:42:25 GMT Received: from tariq ([10.0.1.156]) by inty.hq.inty.net (8.12.1/8.12.1) with SMTP id g0P9gNcU012598 for ; Fri, 25 Jan 2002 09:42:23 GMT From: "Tariq Rashid" To: Subject: ADSL internal cards for FreeBSD 4.4 / 4.5? Date: Fri, 25 Jan 2002 09:43:36 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Sender-IP: 10.0.1.156 X-suppress-rcpt-virus-notify: yes X-Skip-Virus-Check: yes X-Virus-Checked: 7816 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org quick one: can anyone recommend any ADSL _internal_ cards that work well with FreeBSD 4.4 or will with 4.5? tariq intY has automatically scanned this email with Sophos Anti-Virus (www.inty.net) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 2:30: 7 2002 Delivered-To: freebsd-net@freebsd.org Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by hub.freebsd.org (Postfix) with ESMTP id DD29737B428; Fri, 25 Jan 2002 02:29:57 -0800 (PST) Received: from sunchorus.France.Sun.COM ([129.157.173.1]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA08710; Fri, 25 Jan 2002 03:29:56 -0700 (MST) Received: from dvorak (dvorak [129.157.196.32]) by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.1) with SMTP id LAA01766; Fri, 25 Jan 2002 11:29:55 +0100 (MET) Message-Id: <200201251029.LAA01766@sunchorus.France.Sun.COM> Date: Fri, 25 Jan 2002 11:29:55 +0100 (MET) From: Stephane Carrez Reply-To: Stephane Carrez Subject: Re: ADSL internal cards for FreeBSD 4.4 / 4.5? To: freebsd-net@FreeBSD.ORG, owner-freebsd-net@FreeBSD.ORG MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: TB/a089PL3jhSmbm1DmUcQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! > > quick one: can anyone recommend any ADSL _internal_ cards that work well >with FreeBSD 4.4 or will with 4.5? > > tariq > BeWan has a PCI ADSL card. There is a Linux driver for 2.4 kernel. (see http://www.bewan.com/intl/ADSL.html) Anybody knows whether a FreeBSD driver exists for this card ? Stephane - - - - - - - - - - Stephane |Sun Microsystems | Carrez |Network Service Provider Division | http://www.sun.com |6 avenue Gustave Eiffel | |F-78182, St-Quentin-en-Yvelines-Cedex | email: Stephane.Carrez@France.Sun.COM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 8:28:58 2002 Delivered-To: freebsd-net@freebsd.org Received: from sbserv0.intra.selectbourse.net (ATuileries-103-2-1-140.abo.wanadoo.fr [193.252.55.140]) by hub.freebsd.org (Postfix) with ESMTP id D806E37B402 for ; Fri, 25 Jan 2002 08:28:53 -0800 (PST) Received: from pc201019 (unknown [172.16.5.1]) by sbserv0.intra.selectbourse.net (Postfix) with SMTP id B6A18BA53 for ; Fri, 25 Jan 2002 17:28:49 +0100 (CET) Message-ID: <009301c1a5bd$616efc30$13c92c0a@intra.selectbourse.net> From: "Sebastien Petit" To: Subject: Timeouts on dynamic ipfw rules Date: Fri, 25 Jan 2002 17:28:38 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0090_01C1A5C5.B9E7EF90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0090_01C1A5C5.B9E7EF90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Is there a way to set per keep-state rule timeout ? I want to have a little ack timeout for connection to mysql database = tcp 3306 but a long ack timeout for other rules. if not perhaps this syntax can be implemented on ipfw code, for example: ipfw add ... keepstate setup timeout-ack 3600 or ipfw add ... keepstate setup timeout-syn 50 Perhaps I can do this stuff if there are no objections ? Sebastien. --=20 spe@bsdfr.org ------=_NextPart_000_0090_01C1A5C5.B9E7EF90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
Is there a way to set per keep-state = rule timeout=20 ?
I want to have a little ack timeout for = connection=20 to mysql  database tcp 3306 but a long ack timeout for other=20 rules.
if not perhaps this syntax can be = implemented on=20 ipfw code, for example:
ipfw add ... keepstate setup = timeout-ack=20 3600
or
ipfw add ... keepstate setup = timeout-syn=20 50
 
Perhaps I can do this stuff if there are no objections ?
 
Sebastien.
--
spe@bsdfr.org
 
------=_NextPart_000_0090_01C1A5C5.B9E7EF90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 9: 4:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from web20104.mail.yahoo.com (web20104.mail.yahoo.com [216.136.226.41]) by hub.freebsd.org (Postfix) with SMTP id 8D69037B400 for ; Fri, 25 Jan 2002 09:04:49 -0800 (PST) Message-ID: <20020125170448.44965.qmail@web20104.mail.yahoo.com> Received: from [212.83.170.116] by web20104.mail.yahoo.com via HTTP; Fri, 25 Jan 2002 09:04:48 PST Date: Fri, 25 Jan 2002 09:04:48 -0800 (PST) From: ome ome Subject: Netgraph To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I'm trying to create a tty node with netgraph under FreeDSB 3.5. with mkpeer, i've got the following error : "Operation not supported" I think that there no tty with a NETGRAPH line discipline So, I would like to know how to set a line discipline or if there is another way to do that Thanks, Olivier __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 11:18:11 2002 Delivered-To: freebsd-net@freebsd.org Received: from sofia.digsys.bg (sofia.digsys.bg [193.68.3.250]) by hub.freebsd.org (Postfix) with ESMTP id 34AC737B41F for ; Fri, 25 Jan 2002 11:17:58 -0800 (PST) Received: from comm.uni-svishtov.bg (ns.uni-svishtov.bg [193.68.172.1]) by sofia.digsys.bg (8.9.0/8.9.0) with ESMTP id VAA15696 for ; Fri, 25 Jan 2002 21:17:48 +0200 (EET) Received: from grinch.uni-svishtov.bg (grinch.uni-svishtov.bg [193.68.172.9]) by comm.uni-svishtov.bg (8.9.3/8.9.3) with ESMTP id VAA25561 for ; Fri, 25 Jan 2002 21:17:46 +0200 (EET) Received: from deckland (deckland.uni-svishtov.bg [193.68.173.82]) by grinch.uni-svishtov.bg (8.12.1/8.12.1) with SMTP id g0PJHkOA028799 for ; Fri, 25 Jan 2002 21:17:46 +0200 (EET) Message-ID: <003301c1a5d4$fe2c4b10$52ad44c1@deckland> From: "Radoslav Vasilev" To: Subject: Re Netgraph Date: Fri, 25 Jan 2002 21:17:55 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01C1A5E5.C19FBE50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C1A5E5.C19FBE50 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable rtfm# more ngdisc.c=20 #include #include #include #include #include int main(void) { int d; int ldisc; ldisc =3D NETGRAPHDISC; =20 if ((d =3D open("/dev/ttyd1", O_NONBLOCK)) =3D=3D -1) { perror("open"); } else { printf("descripto # %d\n", d);=20 if ((ioctl(d, TIOCSETD, &ldisc)) =3D=3D -1) { perror("ioctl"); } } printf("Netgraph TTY node initialized successfully\nPress any = key to destroy it"); getc(stdin); close(d); exit; } rtfm#=20 ------=_NextPart_000_0030_01C1A5E5.C19FBE50 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
rtfm# more ngdisc.c
#include=20 <sys/ioctl.h>
#include <stdio.h>
#include=20 <stdlib.h>
#include <fcntl.h>
#include=20 <unistd.h>
 
int=20 main(void)
{
        int=20 d;
        int=20 ldisc;
        ldisc =3D=20 NETGRAPHDISC;
       =20
        if ((d =3D = open("/dev/ttyd1",=20 O_NONBLOCK)) =3D=3D -1)=20 {
           &n= bsp;   =20 perror("open");
        } else=20 {
           =20 printf("descripto # %d\n", d);=20
            = if=20 ((ioctl(d, TIOCSETD, &ldisc)) =3D=3D -1)=20 {
           &n= bsp;   =20 perror("ioctl");
         = ;  =20 }
       =20 }
        printf("Netgraph TTY = node=20 initialized successfully\nPress any key to destroy=20 it");
       =20 getc(stdin);
       =20 close(d);
        = exit;
}
rtfm#=20
------=_NextPart_000_0030_01C1A5E5.C19FBE50-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 11:39:40 2002 Delivered-To: freebsd-net@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 3D82F37B41C for ; Fri, 25 Jan 2002 11:39:33 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.3/8.11.3) id g0PJdTT81186; Fri, 25 Jan 2002 11:39:29 -0800 (PST) (envelope-from rizzo) Date: Fri, 25 Jan 2002 11:39:29 -0800 From: Luigi Rizzo To: Sebastien Petit Cc: net@FreeBSD.ORG Subject: Re: Timeouts on dynamic ipfw rules Message-ID: <20020125113929.B80956@iguana.icir.org> References: <009301c1a5bd$616efc30$13c92c0a@intra.selectbourse.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <009301c1a5bd$616efc30$13c92c0a@intra.selectbourse.net> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org there were patches floating around for something similar. cheers luigi On Fri, Jan 25, 2002 at 05:28:38PM +0100, Sebastien Petit wrote: > Hi, > > Is there a way to set per keep-state rule timeout ? > I want to have a little ack timeout for connection to mysql database tcp 3306 but a long ack timeout for other rules. > if not perhaps this syntax can be implemented on ipfw code, for example: > ipfw add ... keepstate setup timeout-ack 3600 > or > ipfw add ... keepstate setup timeout-syn 50 > > Perhaps I can do this stuff if there are no objections ? > > Sebastien. > -- > spe@bsdfr.org > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 12: 0:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 2ECEA37B404 for ; Fri, 25 Jan 2002 12:00:19 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020125200018.DYGN26243.rwcrmhc51.attbi.com@InterJet.elischer.org>; Fri, 25 Jan 2002 20:00:18 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA33000; Fri, 25 Jan 2002 11:57:29 -0800 (PST) Date: Fri, 25 Jan 2002 11:57:28 -0800 (PST) From: Julian Elischer To: ome ome Cc: freebsd-net@freebsd.org Subject: Re: Netgraph In-Reply-To: <20020125170448.44965.qmail@web20104.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org you need to attach the tty node to a tty using the regular terminal "line disciplin" methods. (similar to the way the ppp protocol handler is attached to a tty for kernel ppp) Archie has some sample code in Mpd that I'm sure he could send to you. On Fri, 25 Jan 2002, ome ome wrote: > Hello, > > I'm trying to create a tty node with netgraph under > FreeDSB 3.5. > > with mkpeer, i've got the following error : > > "Operation not supported" > > I think that there no tty with a NETGRAPH line > discipline > > So, I would like to know how to set a line discipline > or if > there is another way to do that you need to set teh line disciplin on a particular terminal Usually that requires C code. > > Thanks, > Olivier > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > 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 Jan 25 12:16:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from medusa.oit.pdx.edu (medusa.oit.pdx.edu [131.252.120.41]) by hub.freebsd.org (Postfix) with ESMTP id 0519E37B400; Fri, 25 Jan 2002 12:16:34 -0800 (PST) Received: from freke.odin.pdx.edu (freke.odin.pdx.edu [131.252.120.43]) by medusa.oit.pdx.edu (8.11.6/8.11.6) with ESMTP id g0PKGUF21234; Fri, 25 Jan 2002 12:16:30 -0800 (PST) Received: from localhost (singh@localhost) by freke.odin.pdx.edu (8.11.6/8.11.6) with ESMTP id g0PKGUX18786; Fri, 25 Jan 2002 12:16:30 -0800 (PST) X-Authentication-Warning: freke.odin.pdx.edu: singh owned process doing -bs Date: Fri, 25 Jan 2002 12:16:29 -0800 (PST) From: Harkirat Singh X-X-Sender: To: Cc: Subject: TCP Zero Copy Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello! Does FreeBSD 4.3/4.4 supports TCP Zero copy? If there is some patch available then also please let me know. Regards, Harkirat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 15:45: 3 2002 Delivered-To: freebsd-net@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id 90F0037B404 for ; Fri, 25 Jan 2002 15:44:59 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g0PNipD49870 for ; Sat, 26 Jan 2002 12:44:52 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200201252344.g0PNipD49870@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: freebsd-net@freebsd.org Date: Fri, 25 Jan 2002 18:44:48 -0500 MIME-Version: 1.0 Subject: (Fwd) ip_output() does not checksum outer header Reply-To: dan@langille.org X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am forwarding this on behalf of Bruce (his DNS is borked and thus he cannot send to the lists). Please don't CC me in the replies, only Bruce. Thanks. ------- Forwarded message follows ------- Date sent: Fri, 25 Jan 2002 23:35:38 +0000 From: Bruce M Simpson To: dan@langille.org Subject: ip_output() does not checksum outer header Dan, if you could forward this on to freebsd-net I would be most grateful. I have completed most of the code to implement GRE as a regular interface driver under 4.4-STABLE using the cloner interface. This has all worked fine in local tests. Tonight, whilst testing with a remote site, we noticed that the encapsulating IP datagram header around the GRE header does not have any header checksum. I have checked, checked and re-checked the m->m_len, m->m_pkthdr.len, m_pullup() results et al and can find nothing out of the ordinary. This is driving me mad right now, can anybody shed any light on the problem? Regards, Bruce. ------- End of forwarded message ------- -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Jan 25 17:53:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 6172B37B404 for ; Fri, 25 Jan 2002 17:53:46 -0800 (PST) Received: from dialup-209.245.128.125.dial1.sanjose1.level3.net ([209.245.128.125] helo=blossom.cjclark.org) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16UI2L-0003Sp-00; Fri, 25 Jan 2002 17:53:45 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g0Q1reh14885; Fri, 25 Jan 2002 17:53:40 -0800 (PST) (envelope-from cjc) Date: Fri, 25 Jan 2002 17:53:40 -0800 From: "Crist J. Clark" To: Luigi Rizzo Cc: Sebastien Petit , net@FreeBSD.ORG Subject: Re: Timeouts on dynamic ipfw rules Message-ID: <20020125175340.C14394@blossom.cjclark.org> References: <009301c1a5bd$616efc30$13c92c0a@intra.selectbourse.net> <20020125113929.B80956@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020125113929.B80956@iguana.icir.org>; from rizzo@icir.org on Fri, Jan 25, 2002 at 11:39:29AM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jan 25, 2002 at 11:39:29AM -0800, Luigi Rizzo wrote: > there were patches floating around for something similar. > > cheers > luigi > > On Fri, Jan 25, 2002 at 05:28:38PM +0100, Sebastien Petit wrote: > > Hi, > > > > Is there a way to set per keep-state rule timeout ? > > I want to have a little ack timeout for connection to mysql database tcp 3306 but a long ack timeout for other rules. > > if not perhaps this syntax can be implemented on ipfw code, for example: > > ipfw add ... keepstate setup timeout-ack 3600 > > or > > ipfw add ... keepstate setup timeout-syn 50 > > > > Perhaps I can do this stuff if there are no objections ? I've got CURRENT patches to do this at the site in the .sig. My STABLE ones bitrotted (the CURRENT ones might be pass the sell-by date too). But I could redo them if there is interest. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jan 26 3:29: 1 2002 Delivered-To: freebsd-net@freebsd.org Received: from vega.bsdshell.net (APlessis-Bouchard-103-1-2-158.abo.wanadoo.fr [80.13.172.158]) by hub.freebsd.org (Postfix) with ESMTP id D73FF37B402; Sat, 26 Jan 2002 03:28:54 -0800 (PST) Received: from crypton.intra.bsdshell.net (win.bsdshell.net [172.16.1.2]) by vega.bsdshell.net (Postfix) with ESMTP id 290A26AB2; Sat, 26 Jan 2002 12:35:59 +0100 (CET) Date: Sat, 26 Jan 2002 12:28:55 +0100 From: spe To: "Crist J. Clark" Cc: net@freebsd.org Subject: Re: Timeouts on dynamic ipfw rules Message-ID: <20020126122855.A227@crypton.intra.bsdshell.net> References: <009301c1a5bd$616efc30$13c92c0a@intra.selectbourse.net> <20020125113929.B80956@iguana.icir.org> <20020125175340.C14394@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <20020125175340.C14394@blossom.cjclark.org>; from cjc@FreeBSD.ORG on Sat, Jan 26, 2002 at 02:53:40 +0100 X-Mailer: Balsa 1.3.0 Lines: 43 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I found your patches for 5.0-CURRENT, I will update it for 4.4 and 4.5, thank you Crist. Will this patch be commited in 5.0-RELEASE or perhaps 4.6 ? I think this is a good functionnality imho. -- Sebastien Petit spe@bsdfr.org The HUT Project http://www.bsdshell.net/ On 2002.01.26 02:53 Crist J. Clark wrote: > On Fri, Jan 25, 2002 at 11:39:29AM -0800, Luigi Rizzo wrote: > > there were patches floating around for something similar. > > > > cheers > > luigi > > > > On Fri, Jan 25, 2002 at 05:28:38PM +0100, Sebastien Petit wrote: > > > Hi, > > > > > > Is there a way to set per keep-state rule timeout ? > > > I want to have a little ack timeout for connection to mysql > database tcp 3306 but a long ack timeout for other rules. > > > if not perhaps this syntax can be implemented on ipfw code, for > example: > > > ipfw add ... keepstate setup timeout-ack 3600 > > > or > > > ipfw add ... keepstate setup timeout-syn 50 > > > > > > Perhaps I can do this stuff if there are no objections ? > > I've got CURRENT patches to do this at the site in the .sig. My STABLE > ones bitrotted (the CURRENT ones might be pass the sell-by date > too). But I could redo them if there is interest. > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org > > 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 Sat Jan 26 8:13: 3 2002 Delivered-To: freebsd-net@freebsd.org Received: from pf39.warszawa.sdi.tpnet.pl (pf39.warszawa.sdi.tpnet.pl [213.25.209.39]) by hub.freebsd.org (Postfix) with ESMTP id 41E8937B416; Sat, 26 Jan 2002 08:12:49 -0800 (PST) Received: (from zaks@localhost) by pf39.warszawa.sdi.tpnet.pl (8.11.6/8.11.6) id g0QGCnu18259; Sat, 26 Jan 2002 17:12:49 +0100 (CET) (envelope-from zaks) From: Slawek Zak To: Brian Somers Cc: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: PPP callback and SecurID References: <200201241310.g0ODAOl49131@hak.lan.Awfulhak.org> Content-MD5: ac4f41bd8e61d62aedb2e318bd2744bd Date: Sat, 26 Jan 2002 17:12:49 +0100 In-Reply-To: <200201241310.g0ODAOl49131@hak.lan.Awfulhak.org> (Brian Somers's message of "Thu, 24 Jan 2002 13:10:24 +0000") Message-ID: <874rl93xby.fsf@pf39.warszawa.sdi.tpnet.pl> Lines: 37 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.5 (asparagus, i386-unknown-freebsd4.4) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 24 Jan 2002, Brian Somers uttered the following: > You could probably ``set cd off'' to get the desired effect. > Alternatively, configure your machine to be able to receive incoming > connections and let the initial ppp session drop when the peer hangs > up. Okay. I've found a way to solve this. Below is the relevant section from my ppp.conf. callback: disable pap disable chap set speed 57600 set phone XXXXXXX set server /var/run/ppp-sock-%d ppp 177 set cd off set device /dev/cuaa1 allow users * set dial "ABORT BUSY ABORT NO\\sCARRIER \ TIMEOUT 10 \"\" ATZ OK ATDT\\T \ TIMEOUT 40 CONNECT" set login "TIMEOUT 5 sername: XXXX \ PASSCODE: \"!/usr/X11R6/bin/ssh-askpass\" \ TIMEOUT 15 Callback \"\" NO\\sCARRIER \"\" \ TIMEOUT 60 RING ATA CONNECT" There is an example in ppp.conf.sample which helped me to find the correct login chat string. Crucial parts are the cd off and disconnect in login chat. Running getty is not necessary in this case. Thanks to Joe Barbish, for helping me. /S -- hundred-and-one symptoms of being an internet addict: 4. Your eyeglasses have a web site burned in on them. * Suavek Zak / PGP: finger://zaks@prioris.mini.pw.edu.pl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jan 26 14:46:23 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id 3E9F637B402 for ; Sat, 26 Jan 2002 14:46:19 -0800 (PST) Received: from fwd10.sul.t-online.de by mailout06.sul.t-online.com with smtp id 16UbaT-0003RY-04; Sat, 26 Jan 2002 23:46:17 +0100 Received: from idefix.local (320080844193-0001@[62.225.210.193]) by fmrl10.sul.t-online.com with smtp id 16UbaQ-1LfGaWC; Sat, 26 Jan 2002 23:46:14 +0100 Received: (nullmailer pid 353 invoked by uid 1000); Sat, 26 Jan 2002 22:46:17 -0000 Date: Sat, 26 Jan 2002 23:46:17 +0100 From: Clemens Hermann To: BSD NET-List Subject: natd restart Message-ID: <20020126234617.C267@idefix.local> Mail-Followup-To: Clemens Hermann , BSD NET-List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Mailer: Mutt 1.2.5.1i (FreeBSD 4.4-RELEASE i386) X-Sender: 320080844193-0001@t-dialin.net Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Is there a way to get natd to reload the config-file without terminating? The only way I found is to stop natd and then start it again. As the natd-config changes frequently here (we are changing the used network and we misuse natd to help us) I expect problems when just shuting down natd in a heavily used environment. If I got it right natd does not keep track about state but anyway if I stop and start natd frequently I certainly will lose connections, right? I could not find a way to HUP natd, neither to change its behaviour during runtime. Is there a way to solve the issue or does the problem I see not exist and in reality nobody will notice anything if natd is stopped and restarted? tia /ch -- "Contrary to popular belief, Unix is user friendly. It just happens to be selective about who it makes friends with." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jan 26 15:32: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from artemis.drwilco.net (diana.drwilco.net [66.48.127.79]) by hub.freebsd.org (Postfix) with ESMTP id 0901237B404 for ; Sat, 26 Jan 2002 15:31:58 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g0QNViw44671 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Sat, 26 Jan 2002 18:31:46 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020127002514.01d56978@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 27 Jan 2002 00:41:23 +0100 To: Clemens Hermann , BSD NET-List From: "Rogier R. Mulhuijzen" Subject: Re: natd restart In-Reply-To: <20020126234617.C267@idefix.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 23:46 26-1-2002 +0100, Clemens Hermann wrote: >Hi, > >Is there a way to get natd to reload the config-file without terminating? >The only way I found is to stop natd and then start it again. I am afraid that natd is extremely simple, and does not allow any control after it has been started. >As the natd-config changes frequently here (we are changing the used network >and we misuse natd to help us) I expect problems when just shuting down natd >in a heavily used environment. What sort of changes are you talking about here? Maybe there's a different way of going about it. >If I got it right natd does not keep track about state but anyway if I stop >and start natd frequently I certainly will lose connections, right? natd does keep state (in libalias, which is statically linked into it). Killing natd would thus clean all your state info. >I could not find a way to HUP natd, neither to change its behaviour during >runtime. >Is there a way to solve the issue or does the problem I see not exist and >in reality nobody will notice anything if natd is stopped and restarted? I use natd here at home and all translated connections get the boot when I kill and restart natd. Connections that are only routed survive fine (since they get no translation). Doc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jan 26 22:12: 4 2002 Delivered-To: freebsd-net@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 6915137B402 for ; Sat, 26 Jan 2002 22:12:00 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id g0R6F9g06368; Sun, 27 Jan 2002 00:15:09 -0600 (CST) (envelope-from nick@rogness.net) Date: Sun, 27 Jan 2002 00:15:08 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Clemens Hermann Cc: BSD NET-List Subject: Re: natd restart In-Reply-To: <20020126234617.C267@idefix.local> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 26 Jan 2002, Clemens Hermann wrote: > Hi, > > Is there a way to get natd to reload the config-file without > terminating? There is a natd patch, running around here somewhere, that allows you to send a HUP signal to natd and have it reload the config. You will have to search the mailling list archive to find out who/what/when/where/why etc. > If I got it right natd does not keep track about state but anyway if I > stop and start natd frequently I certainly will lose connections, > right? Yes, and I don't know if the patch will help you in that manner anyway. Nick Rogness - Don't mind me...I'm just sniffing your packets To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Jan 26 23:11:50 2002 Delivered-To: freebsd-net@freebsd.org Received: from tomts17-srv.bellnexxia.net (tomts17.bellnexxia.net [209.226.175.71]) by hub.freebsd.org (Postfix) with ESMTP id BE17537B402 for ; Sat, 26 Jan 2002 23:11:43 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.128.21]) by tomts17-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020127071135.MPQU16289.tomts17-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 27 Jan 2002 02:11:35 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id g0R71XX38663; Sun, 27 Jan 2002 02:01:34 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <003c01c1a701$da5209e0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Nick Rogness" , "Clemens Hermann" Cc: "BSD NET-List" References: Subject: Re: natd restart Date: Sun, 27 Jan 2002 02:11:30 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0038_01C1A6D7.EFE5AA70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0038_01C1A6D7.EFE5AA70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > On Sat, 26 Jan 2002, Clemens Hermann wrote: > > > Hi, > > > > Is there a way to get natd to reload the config-file without > > terminating? > > There is a natd patch, running around here somewhere, that allows > you to send a HUP signal to natd and have it reload the config. > > You will have to search the mailling list archive to find out > who/what/when/where/why etc. Here's the patch that I wrote some time ago. YMMV. -- Matt Emmerton ------=_NextPart_000_0038_01C1A6D7.EFE5AA70 Content-Type: application/octet-stream; name="natd.readcfg.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="natd.readcfg.patch" --- natd.c.orig Wed Aug 29 09:18:23 2001=0A= +++ natd.c Wed Aug 29 18:00:25 2001=0A= @@ -85,7 +85,7 @@=0A= static void SetAliasAddressFromIfName (const char *ifName);=0A= static void InitiateShutdown (int);=0A= static void Shutdown (int);=0A= -static void RefreshAddr (int);=0A= +static void Refresh (int);=0A= static void ParseOption (const char* option, const char* parms);=0A= static void ReadConfigFile (const char* fileName);=0A= static void SetupPortRedirect (const char* parms);=0A= @@ -107,6 +107,7 @@=0A= static int verbose;=0A= static int background;=0A= static int running;=0A= +static char* nameConfigFile;=0A= static int assignAliasAddr;=0A= static char* ifName;=0A= static int ifIndex;=0A= @@ -297,7 +298,7 @@=0A= siginterrupt(SIGTERM, 1);=0A= siginterrupt(SIGHUP, 1);=0A= signal (SIGTERM, InitiateShutdown);=0A= - signal (SIGHUP, RefreshAddr);=0A= + signal (SIGHUP, Refresh);=0A= /*=0A= * Set alias address if it has been given.=0A= */=0A= @@ -825,10 +826,12 @@=0A= warn ("%s", msg);=0A= }=0A= =0A= -static void RefreshAddr (int sig)=0A= +static void Refresh (int sig)=0A= {=0A= if (ifName)=0A= assignAliasAddr =3D 1;=0A= + if (nameConfigFile)=0A= + ReadConfigFile(nameConfigFile);=0A= }=0A= =0A= static void InitiateShutdown (int sig)=0A= @@ -1243,6 +1246,7 @@=0A= =0A= case ConfigFile:=0A= ReadConfigFile (strValue);=0A= + nameConfigFile =3D strdup(strValue);=0A= break;=0A= =0A= case LogDenied:=0A= @@ -1286,6 +1290,8 @@=0A= file =3D fopen (fileName, "r");=0A= if (!file)=0A= err(1, "cannot open config file %s", fileName);=0A= +=0A= + syslog(LOG_INFO, "Using configuration in %s", fileName);=0A= =0A= while ((buf =3D fgetln(file, &len)) !=3D NULL) {=0A= if (buf[len - 1] =3D=3D '\n')=0A= ------=_NextPart_000_0038_01C1A6D7.EFE5AA70-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message