Hi guys,
My first attempts at hacking FreeBSD kernel code has not been very fruitful, so
I'm hoping someone with more experience and knowhow might be able to point out
the mistakes that I'm making.
Firstly, let me explain what I'm trying to do. I'm currently working on a
University project tha
Hi Julian,
Thanks for the tip, it looks like netgraph can do what I need to do. I've never
used netgraph before, so I better do some background reading first before
asking any more questions.
I guess once I moved away from the IP layer to the link layer, divert sockets
no longer make that much
Hi Luigi,
Thanks for response, the vmnet/tap stuff sounds like neat stuff. After reading
the description of tap (from the vtun site), the system seems to make a lot of
sense. However, I'm not sure how vmnet comes into play here - what purpose does
it serve, shouldn't I just be able to read from
Hi Luigi,
> It's just a naming issue, vmnetX is the network-device name of /dev/tapX.
> (the ip-equivalent thing, "tun", has the same name for both the network
> device and the device entry in the filesystem. As a matter of fact the
> latter is totally arbitrary so "tun" perhaps should be called
Hi guys,
I finally got it working - apparently, the taps won't work unless I were to
ifconfig the tap device with an ip address (I don't think an ip address is
actually needed, but the ifconfig probably does some ioctl that is needed to
start up the tap device). I'll try to find what exact ioct