Instead of inventing something new, why not program to an existing api?

BSD has had for a long time the 'tun' and 'tap' interfaces that allow
raw access to the ip layer and ethernet layer respectively.  Aka a
device /dev/tun0 corresponds to an network device 'tun0' .. and one
program, /usr/sbin/ppp (no I didn't forget the 'd') can open the
tun0 device, and open the serial port, and wallah, we have userland ppp,
which is easier to debug than kernel land pppd+kernel combo.

The point of all of this, is that linux has recently added bpf/tun/tap style
devices.  I'd highly recommend using them, as passing network/ip fragments
to/from userland to/from the kernel is exactly what these types of things
were designed for .. don't re-invent the wheel all the time ;-)
-- 
Todd Fries .. [EMAIL PROTECTED]

Reply via email to