[Click] Patch for Mac users

Alexander Afanasyev cawka1 at gmail.com
Thu Nov 13 00:12:15 EST 2008


The patch I'm attaching change hard-coded iptables usage in user-mode  
with "SNIFFER false". Now it can also disable incoming packets with  
ipfw. Also patch disables non-blocking mode using pcap in FromDevice.

I'm experiencing some strange behavior of the click in user-mode under  
Mac OS X 10.5.5.
First thing is that running click with unpatched FromDevice module  
cause high processor (kernel) load.
Second thing is that if I try to use ControlSocket element, then it  
will work only if no FromDevice element is present in configuration. I  
have only found that it is somehow depends on the call to   
add_select() from  (line 199 in controlsocket.cc and line 270 in  
fromdevice.cc). If I comment this call in fromdevice.cc, ControlSocket  
starts working (but of course FromDevice failed).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ipfw-support-MacOS-BSD-for-userlevel-FromDevice-e.patch
Type: application/octet-stream
Size: 3122 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20081112/e7c1a0d8/attachment.obj 


More information about the click mailing list