i'm very new to erlang and was looking for some help putting together a reasonable driver around bpf. using the tuntap driver in jungerl as a starting point, i have a driver through with which i can successfully write to the bpf... but i'm running into troubles attempting to read from the bpf -- i can't get anything read in from the bpf, and calling driver_select() crashes. i've attached what i've put together so far (it's pretty rough and minimal) minus my attempts to read() from the bpf -- any and all advice would be greatly appreciated (i've looked around at a number of example drivers, but am having a hard time distilling the minimum essence of getting input from a driver into erlang). thanks!
<br>