Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2011 11:47:53 +0200
From:      Maxim Ignatenko <gelraen.ua@gmail.com>
To:        Ed Schouten <ed@80386.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Communication between kernel and userspace via local socket
Message-ID:  <CABWTX-aVkgNWckh-fXGS0uY-sS1_wL6xJmX1nLuNqF_NXgEBLg@mail.gmail.com>
In-Reply-To: <20111116085508.GF36205@hoeg.nl>
References:  <201111152218.41031.gelraen.ua@gmail.com> <20111116085508.GF36205@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 November 2011 10:55, Ed Schouten <ed@80386.nl> wrote:
> * Maxim Ignatenko <gelraen.ua@gmail.com>, 20111115 21:18:
>> I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and
>> looking for most convenient way to establish communication between userspace
>> processes and kernel part. Communication pattern best fits to listening
>> PF_LOCAL socket opened from kernel and userspace processes connecting to it.
>
> What's wrong with a character device?
>

With character device I'll need to manually maintain "per-connection"
buffers, this will bloat the code.



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