From owner-freebsd-net Sun Nov 29 03:10:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA15490 for freebsd-net-outgoing; Sun, 29 Nov 1998 03:10:35 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mars.mds.com.sg (mars.mds.com.sg [203.127.216.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA15476 for ; Sun, 29 Nov 1998 03:10:17 -0800 (PST) (envelope-from juriarte@asiansources.com) Received: from zeus.asiansources.com (root@zeusfr [203.172.0.46]) by mars.mds.com.sg (8.8.5/8.8.5) with ESMTP id TAA10136; Sun, 29 Nov 1998 19:17:17 +0800 Received: from ph.asiansources.com (IDENT:mta@ph-2.asiansources.com [203.172.0.3]) by zeus.asiansources.com (8.9.1/8.9.1) with ESMTP id TAA04404; Sun, 29 Nov 1998 19:35:12 +0800 Received: from asiansources.com ([192.168.8.201]) by ph.asiansources.com (post.office MTA v2.0 0906 ID# 50-42442U500) with ESMTP id AAA8093; Sun, 29 Nov 1998 19:11:34 +0800 Message-ID: <36612B34.BCC8FD61@asiansources.com> Date: Sun, 29 Nov 1998 19:08:37 +0800 From: Joubert Uriarte X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Alexandre Kovalenko , freebsd-net@FreeBSD.ORG Subject: Re: Help! Samba on FreeBSD References: <199811281801.NAA00979@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alexandre Kovalenko wrote: > Hi, there > > I can try to help you with your problem, but I would need couple more > pieces of information: > -- what kind of Windows machines you're trying to work with Windows 95 and Windows NT > > -- since you're starting Samba daemons standalone, did you check > that inetd is not trying to start them for you (lines with 'netbios-ns' > and 'netbios-ssn' should be commented out in /etc/inetd.conf). Yes. I have. inetd does not start them for me. I tried that configuration before -- it also didn't work. > > -- what do samba logs say anyway. I haven't checked... how do I check this? > > -- are netmasks the same for Windows and FreeBSD machines (and do you > by any chance use custom broadcast on FreeBSD). Basically, what > ifconfig says on FreeBSD machine and what ipconfig says on Windows. Yes, all the netmasks are the same. Anyway, thank you very much... I upgraded my samba to the ver.2.0 Beta 2. It works fine now, but I would have wanted to know what was wrong before. Thank you. Joubert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sun Nov 29 04:01:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA21646 for freebsd-net-outgoing; Sun, 29 Nov 1998 04:01:42 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from prometheus.smlt.com (prometheus.smlt.com [195.172.80.146]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA21641; Sun, 29 Nov 1998 04:01:39 -0800 (PST) (envelope-from quintin@smlt.com) Received: from orion.smlt.com (orion.smlt.com [195.172.80.149]) by prometheus.smlt.com (8.8.7/8.8.7) with ESMTP id MAA25157; Sun, 29 Nov 1998 12:02:07 GMT Received: from localhost (quintin@localhost) by orion.smlt.com (8.8.7/8.8.7) with SMTP id MAA02708; Sun, 29 Nov 1998 12:33:46 GMT Date: Sun, 29 Nov 1998 12:33:45 +0000 (GMT) From: Quintin Oliver To: freebsd-net@FreeBSD.ORG cc: freebsd-questions@FreeBSD.ORG Subject: Samba caues dialups. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I recently installed Samba 1.9.18.8 on my FreeBSD 2.2.7 system at home, I have two other Win95 workstations that uses FreeBSD for the surfing, etc.. The problem: Whenever a Win95 client connects to Samba it causes UserPPP to dialup and connect to the internet, I did a `tcpdump' and it looking for a domain ie the dialup is caused by domain lookups. I don't understand why Samba is doing this? the services I'm running: * Sendmail 8.8.8 * Named * UserPPP * Samba * Pop3 server At first I thought that when the win95 client was connecting it was trying to preform a lookup for the remotes IP address, well, the name server hosts the forward and reverse for my local domain for example: The FreeBSD machine is called `home.smlt.com' The Win95 clients fall under `ws1.home.smlt.com' and `ws2.home.smlt.com' And comments/suggestions would be great. Thanks, Quintin. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 30 15:27:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA02387 for freebsd-net-outgoing; Mon, 30 Nov 1998 15:27:56 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02378; Mon, 30 Nov 1998 15:27:51 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id PAA08052; Mon, 30 Nov 1998 15:26:30 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma008044; Mon, 30 Nov 98 15:26:07 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id PAA15601; Mon, 30 Nov 1998 15:26:06 -0800 (PST) From: Archie Cobbs Message-Id: <199811302326.PAA15601@bubba.whistle.com> Subject: Re: Deny for spec. MAC-address In-Reply-To: <003a01be19e1$c9f0f3a0$030a0a0a@valeric.sivma.ru> from Sivma at "Nov 27, 98 11:41:42 am" To: info@sivma.ru (Sivma) Date: Mon, 30 Nov 1998 15:26:06 -0800 (PST) Cc: freebsd-security@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sivma writes: > I want to deny access for machine with specifed MAC-address. > How can I do it? I don't know of any easy way to do this. The quickest & dirtiest would be a kernel hack. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Mon Nov 30 15:40:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04489 for freebsd-net-outgoing; Mon, 30 Nov 1998 15:40:11 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA04478 for ; Mon, 30 Nov 1998 15:40:08 -0800 (PST) (envelope-from mestery@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id RAA19471 for ; Mon, 30 Nov 1998 17:39:54 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma019453; Mon, 30 Nov 98 17:39:46 -0600 Received: from localhost (mestery@localhost) by tundra.winternet.com (8.8.7/8.8.4) with ESMTP id RAA06782 for ; Mon, 30 Nov 1998 17:39:45 -0600 (CST) X-Authentication-Warning: tundra.winternet.com: mestery owned process doing -bs Date: Mon, 30 Nov 1998 17:39:45 -0600 (CST) From: Kyle Mestery To: freebsd-net@FreeBSD.ORG Subject: Dummynet in 3.0? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Is there any chance of dummynet being merged into 3.0? I grabbed the patches from Luigi's web site, but they don't compile. I read some mail archives from late October/early Nov. stating the patches don't allow the DUMMYNET option to be recognized. I would really like to use dummynet with my RADSL solution, and it would be even better if I could use it with 3.0! Thanks! -- Kyle Mestery StorageTek's Storage Networking Group To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Tue Dec 1 09:09:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18385 for freebsd-net-outgoing; Tue, 1 Dec 1998 09:09:03 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mail2.adinet.com.uy (mail2.adinet.com.uy [206.99.44.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18342; Tue, 1 Dec 1998 09:08:51 -0800 (PST) (envelope-from ang@adinet.com.uy) Received: from adinet.com.uy (tc2-159.w3.com.uy [207.3.118.159]) by mail2.adinet.com.uy (8.9.0/8.9.0) with ESMTP id OAA13062; Tue, 1 Dec 1998 14:11:37 +0300 (GMT) Message-ID: <36642457.641484D4@adinet.com.uy> Date: Tue, 01 Dec 1998 14:16:07 -0300 From: Angelo Nardone X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: "freebsd-net@FreeBSD.ORG" , "freebsd-questions@FreeBSD.ORG" Subject: ppp problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org When I type "ppp" for start the interctive mode of ppp-dialup software I have the next error: ld.so failed: Can't find shared library "libdes.so.3.0" For what is this library, and why they didn't install when I installed the FreeBSD ? If anybody could help me, I'll realy aprecite that. Thanks in advance Angelo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 03:05:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA06620 for freebsd-net-outgoing; Wed, 2 Dec 1998 03:05:01 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from attach1.rocketmail.com (attach1.rocketmail.com [205.180.57.81]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA06604 for ; Wed, 2 Dec 1998 03:04:59 -0800 (PST) (envelope-from ee123@rocketmail.com) Message-ID: <19981202105927.5246.rocketmail@attach1.rocketmail.com> Received: from [195.6.245.137] by attach1; Wed, 02 Dec 1998 02:59:27 PST Date: Wed, 2 Dec 1998 02:59:27 -0800 (PST) From: EE Reply-To: ee123@rocketmail.com Subject: adding a 3com 905B driver on 2.2.7 To: freebsd-net@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I need to add a 3com 905B ethernet card on a system with Freebsd 2.2.7 ( only supported on 2.2.8 ) Does anybody know how I must do to add driver? (which files, where, how...) Thanks a lot in advance. _________________________________________________________ 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 Dec 2 05:05:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA18603 for freebsd-net-outgoing; Wed, 2 Dec 1998 05:05:00 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from arthur.axion.bt.co.uk (arthur.axion.bt.co.uk [132.146.5.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA18567 for ; Wed, 2 Dec 1998 05:04:54 -0800 (PST) (envelope-from caroline.beauchamps@bt-sys.bt.co.uk) Received: from rambo (actually rambo.futures.bt.co.uk) by arthur (local) with SMTP; Wed, 2 Dec 1998 13:04:01 +0000 Received: from mussel.futures.bt.co.uk (actually mussel) by rambo with SMTP (PP); Wed, 2 Dec 1998 13:07:26 +0000 Received: by mussel.futures.bt.co.uk with Microsoft Exchange (IMC 4.0.837.3) id <01BE1DF3.82D04BE0@mussel.futures.bt.co.uk>; Wed, 2 Dec 1998 12:58:52 -0000 Message-ID: From: Caroline Beauchamps To: "'net@FreeBSD.ORG'" Date: Wed, 2 Dec 1998 13:08:43 -0000 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I have a program made for Linux, and I want to transform it for FreeBSD. The problem is that some of the options don't exist in FreeBSD. What I want to do is to send an ethernet packet, so I open the following socket: sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) But SOCK_PACKET does not exist. Do you have an idea what I could use instead ? Thanks in advance. Caroline Beauchamps >Mobility Research Unit >caroline.beauchamps@bt-sys.bt.co.uk >B55-131B >BT Laboratories >Martlesham Heath tel : +44 1473 649 115 >IPSWICH IP5 3RE (UK) fax : +44 1473 646 885 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 05:47:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA22614 for freebsd-net-outgoing; Wed, 2 Dec 1998 05:47:45 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from arthur.axion.bt.co.uk (arthur.axion.bt.co.uk [132.146.5.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA22606 for ; Wed, 2 Dec 1998 05:47:19 -0800 (PST) (envelope-from graeme.brown@bt-sys.bt.co.uk) Received: from rambo (actually rambo.futures.bt.co.uk) by arthur (local) with SMTP; Wed, 2 Dec 1998 13:46:50 +0000 Received: from maczebedee (actually macsmtp) by rambo with SMTP (PP); Wed, 2 Dec 1998 13:49:56 +0000 Message-ID: Date: 2 Dec 1998 13:46:41 +0100 From: Graeme Brown Subject: FW: How can I write a packet directly to an Ethernet NIC ?layer To: "FreeBSD-Net (FreeBSD.Org) List" X-Mailer: Mail*Link SMTP for Quarterdeck Mail; Version 4.0.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org _______________________________________________________________________________ To: 'net@FreeBSD.ORG' From: Caroline Beauchamps on Wed, Dec 2, 1998 1:11 pm Hello, I have a program made for Linux, and I want to transform it for FreeBSD. The problem is that some of the options don't exist in FreeBSD. What I want to do is to send an ethernet packet, so I open the following socket: sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) But SOCK_PACKET does not exist. Do you have an idea what I could use instead ? Thanks in advance. Caroline Beauchamps >Mobility Research Unit >caroline.beauchamps@bt-sys.bt.co.uk >B55-131B >BT Laboratories >Martlesham Heath tel : +44 1473 649 115 >IPSWICH IP5 3RE (UK) fax : +44 1473 646 885 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 Dec 2 06:05:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24738 for freebsd-net-outgoing; Wed, 2 Dec 1998 06:05:12 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from obie.softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24733 for ; Wed, 2 Dec 1998 06:05:10 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id HAA22211; Wed, 2 Dec 1998 07:08:22 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <366549C1.22F0A27E@softweyr.com> Date: Wed, 02 Dec 1998 07:08:01 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Caroline Beauchamps CC: "'net@FreeBSD.ORG'" Subject: Re: References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Caroline Beauchamps wrote: > > Hello, > > I have a program made for Linux, and I want to transform it for FreeBSD. > The problem is that some of the options don't exist in FreeBSD. > What I want to do is to send an ethernet packet, so I open the following > socket: > > sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) > > But SOCK_PACKET does not exist. > Do you have an idea what I could use instead ? > Thanks in advance. > If you wish to send raw packets on the ethernet, you will have to use the Berkeley Packet Filter (bpf). It's a bit messier than the Linux raw packet interface, but works. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 07:51:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05823 for freebsd-net-outgoing; Wed, 2 Dec 1998 07:51:13 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05818 for ; Wed, 2 Dec 1998 07:51:11 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id KAA20322; Wed, 2 Dec 1998 10:50:53 -0500 (EST) (envelope-from wollman) Date: Wed, 2 Dec 1998 10:50:53 -0500 (EST) From: Garrett Wollman Message-Id: <199812021550.KAA20322@khavrinen.lcs.mit.edu> To: Wes Peters Cc: Caroline Beauchamps , "'net@FreeBSD.ORG'" Subject: Re: In-Reply-To: <366549C1.22F0A27E@softweyr.com> References: <366549C1.22F0A27E@softweyr.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > If you wish to send raw packets on the ethernet, you will have to > use the Berkeley Packet Filter (bpf). It's a bit messier than the > Linux raw packet interface, but works. ...and was actually designed properly. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 07:51:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05896 for freebsd-net-outgoing; Wed, 2 Dec 1998 07:51:36 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from rerun.lucentctc.com (Rerun.Lucentctc.com [199.93.237.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05887 for ; Wed, 2 Dec 1998 07:51:32 -0800 (PST) (envelope-from mcambria@lucent.com) Received: by Rerun.Lucentctc.com with Internet Mail Service (5.5.2232.9) id ; Wed, 2 Dec 1998 10:42:40 -0500 Message-ID: <75ADD7496F0BD211ADC000104B8846CF056ADC@Rerun.Lucentctc.com> From: "Cambria, Mike" To: "FreeBSD-Net (FreeBSD.Org) List" Subject: RE: How can I write a packet directly to an Ethernet NIC ?layer Date: Wed, 2 Dec 1998 10:42:40 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I use BPF to do this. On FreeBSD, BPF makes use of libpcap. You will need to rebuild libpcap to allow you to write. libpcap ships with the socket being open read only. Detailed instructions on what to do can be found at W. Richard Stevens web site, as part of the source code for the 2ed edition of Unix Network Programming Volume 1. See: http://www.kohala.com/~rstevens/unpv12e.html for specifics on the book. On that page, near the bottom, he has an example of how to write raw frames using libpcap. I use it to write SNA frames. MikeC Michael C. Cambria Lucent Technologies SNA Product Development Bell Labs Innovations Voice: (978) 287 - 2807 300 Baker Avenue Fax: (978) 287 - 2810 Concord, Massachusetts 01742 Internet: mcambria@lucent.com -----Original Message----- From: owner-freebsd-net@FreeBSD.ORG [SMTP:owner-freebsd-net@FreeBSD.ORG] Sent: Wednesday, December 02, 1998 7:47 AM To: FreeBSD-Net (FreeBSD.Org) List Subject: FW: How can I write a packet directly to an Ethernet NIC ?layer ____________________________________________________________________________ ___ To: 'net@FreeBSD.ORG' From: Caroline Beauchamps on Wed, Dec 2, 1998 1:11 pm Hello, I have a program made for Linux, and I want to transform it for FreeBSD. The problem is that some of the options don't exist in FreeBSD. What I want to do is to send an ethernet packet, so I open the following socket: sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) But SOCK_PACKET does not exist. Do you have an idea what I could use instead ? Thanks in advance. Caroline Beauchamps >Mobility Research Unit >caroline.beauchamps@bt-sys.bt.co.uk >B55-131B >BT Laboratories >Martlesham Heath tel : +44 1473 649 115 >IPSWICH IP5 3RE (UK) fax : +44 1473 646 885 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 10:40:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21096 for freebsd-net-outgoing; Wed, 2 Dec 1998 10:40:47 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21084; Wed, 2 Dec 1998 10:40:40 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199812021840.KAA21084@hub.freebsd.org> Subject: Re: In-Reply-To: <366549C1.22F0A27E@softweyr.com> from Wes Peters at "Dec 2, 98 07:08:01 am" To: wes@softweyr.com (Wes Peters) Date: Wed, 2 Dec 1998 10:40:40 -0800 (PST) Cc: caroline.beauchamps@bt-sys.bt.co.uk, net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wes Peters wrote: > Caroline Beauchamps wrote: [snip] > > > > sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) [snip] > > If you wish to send raw packets on the ethernet, you will have to > use the Berkeley Packet Filter (bpf). It's a bit messier than the > Linux raw packet interface, but works. you can also use raw sockets...take a look at the file tcpip.c in the nmap port. it has functions for sending tcp, udp, icmp....not suggesting that you adopt the coding style there. jmb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Wed Dec 2 22:56:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA08456 for freebsd-net-outgoing; Wed, 2 Dec 1998 22:56:47 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mgo.iij.ad.jp (mgo.iij.ad.jp [202.232.15.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA08451 for ; Wed, 2 Dec 1998 22:56:45 -0800 (PST) (envelope-from kazu@iijlab.net) Received: from ns.iij.ad.jp (root@ns.iij.ad.jp [192.168.2.8]) by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id PAA13435 for ; Thu, 3 Dec 1998 15:56:30 +0900 (JST) Received: from fs.iij.ad.jp (root@fs.iij.ad.jp [192.168.2.9]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id PAA24860 for ; Thu, 3 Dec 1998 15:56:30 +0900 (JST) Received: from localhost (mine.iij.ad.jp [192.168.4.209]) by fs.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id PAA00734 for ; Thu, 3 Dec 1998 15:56:30 +0900 (JST) To: freebsd-net@FreeBSD.ORG Subject: KAME 19981130 stable release From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) X-Mailer: Mew version 1.94b2 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19981203155624S.kazu@iijlab.net> Date: Thu, 03 Dec 1998 15:56:24 +0900 X-Dispatcher: imput version 981124(IM104) Lines: 68 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org We are happy to inform you the stable release of KAME 19981130 for FreeBSD 2.2.7, BSD/OS 3.0, and NetBSD 1.3.2 . The kits are available from: http://www.kame.net/ Summary of the differences from the previous release is enclosed below. Enjoy! --Kazu, KAME Project ---From Here <> - Introduced loop prevention mechanism for gif input and output. <> - Implemented kernel level multicast forwarding with PIM. - Introduced loop prevention mechanism for gif input and output. - Implemented kernel level prefix renumbering mechanism and its API for the "rrenumd" daemon and the "prefix" command. - Gif tunnel IPv6 support as outer encapsulation. (was not possible) - Gif tunnel extension for multiple destination. (contributed by dwiggins@bbn.com) - Neighbor discovery code was stabilized. - ICMPv6 redirect is now working properly. <> <> - IPv4 IPsec (both transport and tunnel) was stabilized very much. - IPsec tunnel now handles path MTU and TCP MSS properly. - IPv4 options are now properly handled by IPsec code. - Most of the ESP/AH algorithms is now confirmed to be interoperable with other implementations. - The "racoon" IKE daemon was updated for better interoperability. - Statistics is now properly gathered. <> - Implemented "pim6dd", a daemon of PIMv2 dense mode for IPv6, to support IPv6 multicast routing. - IPv6 hostname with AAAA record, or numarical IPv6 address escaped by [ ], is supported as proxy server specification for mozilla. - Implemented the "prefix" command for prefix assignment and renumbering inside a node. - Implemented the "rrenumd" daemon for sending router renumbering messages. - Enhanced the "rtadvd" daemon for receiving router renumbering messages and renumbering pre-assigned prefixes. - Resolver was updated to keep binary compatibility with existing implementations. Namely, struct _res is now kept unchanged from original bind distribution. - EPSV/EPRT support for FAITH TCP translator. - "tcpdump" is now able to chase IPv6 header chain and to analyze IPsec related packets. - IPv6-ready logwtmp() and skeyaccess() is now supplied (FreeBSD only). <> - Copyright notice was changed. We are now using 3-clause BSD copyright. - New ports: "apache13", "gated" ("apache" is renamed to "apache12") - "lynx" security hole fix included into the IPv6-ready ports directory. (this is a problem with the original "lynx", not the IPv6 patch) - KAME on NetBSD-pmax is now confirmed to work. ---To Here To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Thu Dec 3 10:38:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA05973 for freebsd-net-outgoing; Thu, 3 Dec 1998 10:38:05 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from kit.isi.edu (kit.isi.edu [128.9.160.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA05968 for ; Thu, 3 Dec 1998 10:38:03 -0800 (PST) (envelope-from eddy@kit.isi.edu) Received: (from eddy@localhost) by kit.isi.edu (8.8.8/8.8.7) id KAA01646; Thu, 3 Dec 1998 10:37:46 -0800 (PST) (envelope-from eddy) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 3 Dec 1998 10:37:45 -0800 (PST) From: eddy@isi.edu To: Graeme Brown Cc: "FreeBSD-Net (FreeBSD.Org) List" Subject: Re: FW: How can I write a packet directly to an Ethernet NIC ?layer In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13926.55771.693473.242719@kit.isi.edu> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Graeme Brown states: > > _______________________________________________________________________________ > To: 'net@FreeBSD.ORG' > From: Caroline Beauchamps on Wed, Dec 2, 1998 1:11 pm > > Hello, > > I have a program made for Linux, and I want to transform it for FreeBSD. > The problem is that some of the options don't exist in FreeBSD. > What I want to do is to send an ethernet packet, so I open the following > socket: > > sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) > > But SOCK_PACKET does not exist. > Do you have an idea what I could use instead ? > Thanks in advance. you have to use bpf(4), if you wan't read packets as well, with filtering you may consider pcap(3), however, you'll have to overide pcap_open_live() with your own since pcap will open read only. - rusty To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Dec 4 07:21:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA11304 for freebsd-net-outgoing; Fri, 4 Dec 1998 07:21:27 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from tomcat.webber.net.ua (S2-1.GWN-KVC2.ukrpack.net [195.230.151.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA11299 for ; Fri, 4 Dec 1998 07:21:23 -0800 (PST) (envelope-from apl@webber.net.ua) Received: from opera.webber.net.ua (root@opera.webber.net.ua [195.230.145.41]) by tomcat.webber.net.ua (8.9.1/8.9.1) with ESMTP id RAA11649 for ; Fri, 4 Dec 1998 17:21:06 +0200 (EET) Received: from webber.net.ua (apl@opera.webber.net.ua [195.230.145.41]) by opera.webber.net.ua (8.9.1/8.9.1) with ESMTP id RAA09175 for ; Fri, 4 Dec 1998 17:21:08 +0200 (EET) Message-ID: <3667D9D5.27C4FE57@webber.net.ua> Date: Fri, 04 Dec 1998 14:47:17 +0200 From: Andrew Petrenko Organization: Andy, inc. X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: Dummynet in FreeBSD 3.0.0 Release Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I got patchfile. After patching, i got 2 .rej files. what can i do to apply patch correly? -- Andrew Petrenko apl@webber.net.ua --FBSD026630 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Fri Dec 4 10:32:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06160 for freebsd-net-outgoing; Fri, 4 Dec 1998 10:32:32 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA05758 for ; Fri, 4 Dec 1998 10:29:47 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id RAA08859; Fri, 4 Dec 1998 17:19:49 +0100 From: Luigi Rizzo Message-Id: <199812041619.RAA08859@labinfo.iet.unipi.it> Subject: Re: Dummynet in FreeBSD 3.0.0 Release To: apl@webber.net.ua (Andrew Petrenko) Date: Fri, 4 Dec 1998 17:19:49 +0100 (MET) Cc: freebsd-net@FreeBSD.ORG In-Reply-To: <3667D9D5.27C4FE57@webber.net.ua> from "Andrew Petrenko" at Dec 4, 98 02:46:58 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I got patchfile. After patching, i got 2 .rej files. > what can i do to apply patch correly? please search the -net mailing list, i have posted instructions a few times. luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Dec 5 12:49:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA09373 for freebsd-net-outgoing; Sat, 5 Dec 1998 12:49:50 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from poboxer.pobox.com (port95.prairietech.net [208.141.230.95] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA09368 for ; Sat, 5 Dec 1998 12:49:47 -0800 (PST) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.1/8.9.1) id OAA48053; Sat, 5 Dec 1998 14:48:34 -0600 (CST) (envelope-from alk) From: Tony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 5 Dec 1998 14:48:34 -0600 (CST) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: net@FreeBSD.ORG Subject: resolver behaviour X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13929.39477.406338.806610@avalon.east> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org IMO, current resolver behaviour is not appropriate. I would like the resolver to try all the nameservers at once, and return any positive lookup response. This is not the way it works now. If my wish is impractical for some unforseen reason, I would like the resolver to keep trying the nameservers until it runs out of fallback servers, or gets a positive lookup response. Instead, to the best of my current understanding, the resolver presently returns failure if it encounters a responding nameserver which reports a negative lookup response. This hardly seems appropriate for systems with interfaces on distinct, unconnected networks! Alternatively, I may be ignorant of some feature of the software which is excercised by current firewall practice. I would appreciate it if someone could grant me a clue, if this is the case. If it is not the case, I would like the readers to comment on what they deem to be the proper change to make in the current behaviour, so that I may make a generally useful modification to submit as a PR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Dec 5 13:00:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA10375 for freebsd-net-outgoing; Sat, 5 Dec 1998 13:00:10 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from gjp.erols.com (alex-va-n008c079.moon.jic.com [206.156.18.89]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA10296 for ; Sat, 5 Dec 1998 13:00:00 -0800 (PST) (envelope-from gjp@gjp.erols.com) Received: from gjp.erols.com (localhost.erols.com [127.0.0.1]) by gjp.erols.com (8.9.1/8.8.7) with ESMTP id PAA36313; Sat, 5 Dec 1998 15:59:54 -0500 (EST) (envelope-from gjp@gjp.erols.com) X-Mailer: exmh version 2.0.1 12/23/97 To: alk@pobox.com cc: net@FreeBSD.ORG From: "Gary Palmer" Subject: Re: resolver behaviour In-reply-to: Your message of "Sat, 05 Dec 1998 14:48:34 CST." <13929.39477.406338.806610@avalon.east> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 05 Dec 1998 15:59:54 -0500 Message-ID: <36309.912891594@gjp.erols.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Tony Kimball wrote in message ID <13929.39477.406338.806610@avalon.east>: > > IMO, current resolver behaviour is not appropriate. > > I would like the resolver to try all the nameservers at once, and > return any positive lookup response. Can you say `packet storm'? I knew you could ... All our servers here run local nameservers, and only have secondary nameserver entries listed for the rare occasions named core dumps. I don't want to go increasing the ammount of UDP traffic on to my backup nameservers by a factor of 50 (if not more). Even switched fastether can only take so much. Seems your problem is not the resolver, but your nameserver setup. My guess is problems arise from doing lookups on `internal' addresses on `external' nameservers? The correct solution then is to run a nameserver on the firewall, and force it to bind only to 127.0.0.1. You use that in your resolv.conf, and teach it enough about the topology to answer properly. Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Dec 5 13:07:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA11175 for freebsd-net-outgoing; Sat, 5 Dec 1998 13:07:05 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from messenger.cacheflow.com (messenger.cacheflow.com [208.2.250.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA11170 for ; Sat, 5 Dec 1998 13:07:04 -0800 (PST) (envelope-from krowett@verio.com) Received: from rowettpc (208.2.250.25) by messenger.cacheflow.com (Worldmail 1.3.167); 5 Dec 1998 13:05:02 -0800 Message-Id: <4.1.19981205130639.00a06ac0@pop.ncal.verio.com> X-Sender: krowett@pop.ncal.verio.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 05 Dec 1998 13:08:54 -0800 To: alk@pobox.com, net@FreeBSD.ORG From: "Kevin J. Rowett" Subject: Re: resolver behaviour In-Reply-To: <13929.39477.406338.806610@avalon.east> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Instead, to the best of my current understanding, the resolver >presently returns failure if it encounters a responding nameserver >which reports a negative lookup response. This hardly seems If one nameserver responses name invalid, another responses with an address, which would you consider to be the correct answer? KR To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message From owner-freebsd-net Sat Dec 5 15:04:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA21691 for freebsd-net-outgoing; Sat, 5 Dec 1998 15:04:16 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA21685 for ; Sat, 5 Dec 1998 15:04:14 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id PAA11231; Sat, 5 Dec 1998 15:03:18 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma011227; Sat, 5 Dec 98 15:03:11 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id PAA00885; Sat, 5 Dec 1998 15:03:11 -0800 (PST) From: Archie Cobbs Message-Id: <199812052303.PAA00885@bubba.whistle.com> Subject: Re: resolver behaviour In-Reply-To: <36309.912891594@gjp.erols.com> from Gary Palmer at "Dec 5, 98 03:59:54 pm" To: alk@pobox.com Date: Sat, 5 Dec 1998 15:03:11 -0800 (PST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gary Palmer writes: > Tony Kimball wrote in message ID > > IMO, current resolver behaviour is not appropriate. > > > > I would like the resolver to try all the nameservers at once, and > > return any positive lookup response. > > Can you say `packet storm'? I knew you could ... All our servers here run > local nameservers, and only have secondary nameserver entries listed for the > rare occasions named core dumps. I don't want to go increasing the ammount of > UDP traffic on to my backup nameservers by a factor of 50 (if not more). Even > switched fastether can only take so much. > > Seems your problem is not the resolver, but your nameserver setup. My guess i > problems arise from doing lookups on `internal' addresses on `external' > nameservers? The correct solution then is to run a nameserver on the firewall > and force it to bind only to 127.0.0.1. You use that in your resolv.conf, and > teach it enough about the topology to answer properly. For split-DNS stuff and firewalls, where you want to direct queries for different domains to different name servers, you might find this patch useful.. ftp://ftp.whistle.com/pub/archie/misc/forwardzone.html -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message