Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 1998 12:17:27 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Benjamin Gras <ben@nl.euro.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: FS interface to sockets?
Message-ID:  <19980107121727.55819@hydrogen.nike.efn.org>
In-Reply-To: <199801071832.TAA04945@support.euronet.nl>; from Benjamin Gras on Wed, Jan 07, 1998 at 07:32:55PM %2B0100
References:  <199801071832.TAA04945@support.euronet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980107121727.55819>