From owner-freebsd-hackers Tue Oct 24 22:50:16 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA29233 for hackers-outgoing; Tue, 24 Oct 1995 22:50:16 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id WAA29223 for ; Tue, 24 Oct 1995 22:50:14 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.12) id WAA17927; Tue, 24 Oct 1995 22:49:30 -0700 From: Julian Elischer Message-Id: <199510250549.WAA17927@ref.tfs.com> Subject: Re: AF_UNSPEC/SOCK_RAW and such... To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Tue, 24 Oct 1995 22:49:29 -0700 (PDT) Cc: hackers@freebsd.org In-Reply-To: <199510250423.NAA06939@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Oct 25, 95 01:53:03 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1486 Sender: owner-hackers@freebsd.org Precedence: bulk > > So I'm getting somewhere with the '485 multidrop stuff. My apologies for > being so clueless about the Big Picture 8( > > I'd _really_ like to be able to talk to it at a socket level, as this > will avoid toying around with pcap/bpf and the like. > > What I'm wondering is whether AF_UNSPEC/SOCK_RAW will just hand my > driver the packet as written, or whether it'll break something else. > > Obviously, suck it and see applies here, but some casual advice from those > that have gone before would be muchly appreciated 8) WARNING WARNING WARNING it's been a few years.. what protocol are you wanting to run? will your driver only be handling your packets? do you have your own protocol stack? you can do this but it really depends on you writing it int eh right way for it to work (duh!) coming up: You have to make sure your driver calls the correct protocol with the correct arguments going down: You have to make sure your protocol knows how to decide which interface to send it to.. it does work, but it (in general) requires you to fill in the missing pieces > > -- > ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ > ]] Genesis Software genesis@atrad.adelaide.edu.au [[ > ]] High-speed data acquisition and [[ > ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ > ]] My car has "demand start" -Terry Lambert UNIX: live FreeBSD or die! [[ >