From owner-freebsd-hackers Wed Jan 7 12:18:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA05959 for hackers-outgoing; Wed, 7 Jan 1998 12:18:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from hydrogen.nike.efn.org (d182-89.uoregon.edu [128.223.182.89]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA05922 for ; Wed, 7 Jan 1998 12:17:42 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id MAA01678; Wed, 7 Jan 1998 12:17:27 -0800 (PST) Message-ID: <19980107121727.55819@hydrogen.nike.efn.org> Date: Wed, 7 Jan 1998 12:17:27 -0800 From: John-Mark Gurney To: Benjamin Gras Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FS interface to sockets? References: <199801071832.TAA04945@support.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199801071832.TAA04945@support.euronet.nl>; from Benjamin Gras on Wed, Jan 07, 1998 at 07:32:55PM +0100 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Benjamin Gras scribbled this message on Jan 7: > I'm thinking in terms of providing access to raw sockets, subject to > access restrictions of a node in /dev per protocol (so you'd have /dev/ip_raw, > /dev/ip_icmp, /dev/ip_udp, and so on). The minor device number would be > the direct protocol number. This exists on (God keep us) Solaris. > > Now I've searched around for a similar interface under FreeBSD, but apart > from a few short comments on this list about the naming of nodes with the > new devfs (/dev/net/*), I've found nothing (FAQ, handbook, mailling lists, > LINT config, kernel sources, ..).. The context on this list seemed to be one > of an obsolete system, is this the case? > > Now I've written a kernel module that does what I want (be a device > driver for socket(AF_INET, SOCK_RAW, %d)), and it seems to > work nicely. Should I finish it up, apply for a major device number and > publish it? Or has it already been done? yep... look at mount_portal... I haven't tested it... but this is what should be used to things like this... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking P.O. Box 5693, 97405 Live in Peace, destroy Micro$oft, support free software, run FreeBSD