From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 16 08:55:10 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1477106564A for ; Wed, 16 Nov 2011 08:55:10 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 35FBF8FC0A for ; Wed, 16 Nov 2011 08:55:09 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id EFC792A28CC9; Wed, 16 Nov 2011 09:55:08 +0100 (CET) Date: Wed, 16 Nov 2011 09:55:08 +0100 From: Ed Schouten To: Maxim Ignatenko Message-ID: <20111116085508.GF36205@hoeg.nl> References: <201111152218.41031.gelraen.ua@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KuLpqunXa7jZSBt+" Content-Disposition: inline In-Reply-To: <201111152218.41031.gelraen.ua@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org Subject: Re: Communication between kernel and userspace via local socket X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 08:55:10 -0000 --KuLpqunXa7jZSBt+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Maxim Ignatenko , 20111115 21:18: > I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch an= d=20 > looking for most convenient way to establish communication between usersp= ace=20 > processes and kernel part. Communication pattern best fits to listening= =20 > PF_LOCAL socket opened from kernel and userspace processes connecting to = it.=20 What's wrong with a character device? --=20 Ed Schouten WWW: http://80386.nl/ --KuLpqunXa7jZSBt+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOw3psAAoJEG5e2P40kaK7uXUQAKTClAkglU7xYH+W1S8nOyic iwEBXDrRyx+AhG2JPGajflcj/Z3gZlUg6IFGLUWcV6CxZPvGK+CdO0hGTcNtzdHy zo07Wa4IsBbsZknHi6XwHlety/YztFZxIkY96nUb11utUg/xlwy6cmIOLMNTpRH0 k4DuGIKqE+jyrPO82HFttD4mt5NcvI1F5WTh+TdyBAOmDFuxSXsqSIjy+4dtG7/0 IY5Dm3TqB33yYyDyMNp7dCoRG4M3k48aDJXRtzxiLa25NqlWTTNKLxT96VDy4Xlo uiZu9kgROuEgKdVIX/jwZ0OfYiOEe0nf/oA08FzoXA6z31/ZqDhOFkf6eGaX0qnV 5h0Sx652pLqEW3kB0gsOX8YA0qfa5RKG5A+e6dAt6hZDf1CG7XEmOcxGHZt6to5B trPoeGHxn15RZuI+R2GDVNKObrBwUfzpmAOWNXN5zzNpcUNhZGz8sxjGu2vSpabN GLg3AvmIzl6yJkpF1r72zenPJsgOleEAWM0bHX+I/ZBPkkvcqU3wJbWHzksGF0wl jHwOwxriJO6k0wruT/El767p0LpJP5V68fpvmkdfR5ynmTwJoLEXwkaJDNY8js7B /vix4UrpFkGEE5LSlRhwcskaKnaHxnA7MfLGpONQoAz5phcQ2Toafy8iO9BYRIpR 1FwAjknU/Fk8S80PegYC =Pt5t -----END PGP SIGNATURE----- --KuLpqunXa7jZSBt+--