[patch] link state notifications for tun(4)

Christian Peron csjp at freebsd.org
Tue Dec 9 09:46:59 PST 2008


I would like to propose a change for tun(4) but before I do, I would like to
read any feedback this list might have.  Basically we have a situation where
we need to manually configure tunnel interfaces when a process opens them.

We would like to hook into devd(8) for this. i.e. when we see tunX "linkup"
call ifconfig as well, add some routes.  The trouble is, tun(4) does not
generate linkup/linkdown events.  We would consider the tun device to be
linked up when a process has it open, and linked down when the process closes
it.

Thoughts?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tun.diff
Type: text/x-diff
Size: 504 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20081209/fc67868a/tun.bin


More information about the freebsd-net mailing list