[Click] linuxpatchless

Roman Chertov rchertov at cs.ucsb.edu
Fri Nov 27 12:57:43 EST 2009


This is a great development indeed!  This should make Click much easier
to use as quite a lot of people are intimidated by the fact that the
kernel has to be patched and rebuilt.

Roman

Eddie Kohler wrote:
> Hello all,
> 
> Harald Schiöberg wrote:
>> This is now done.  On current git, if you configure with --enable-fixincludes, 
>> Click will automatically fix Linux's headers for C++ compatibility -- at least 
>> on my 2.6.27 Ubuntu laptop, it succeeds, though I'm sure every now and then a 
>> new version will require an update to the scripts.  I have successfully run 
>> conf/test.click on an unpatched kernel!  Neat.
> 
>> FWIW on linuxpatchless, at least FromDevice, ToDevice, ToHost, and FromHost 
>> will need closer attention.  (Not just From and ToDevice.)
> 
>> Thanks to you and to our most excellent Syclick hosts!
> 
>> Eddie
> 
> 
> 
> For documentation:
> Everthing should be simple almost regular expressions, like the notorious
> - asm ( foo :: bar )
> + asm ( foo : : bar )
> One notable exception:
> the current click patch changes
> - struct foo {}
> + EMPTY_STRUCT_DECL(foo)
> The EMPTY_STRUCT_DECL is one byte long, because empty structs are one
> byte in C++ but zero bytes in C. so this actually changes linux's
> internal structures. The prosed solution it to redefine that into a
> char[0] with is also zero bytes in C++, so we can still interface with
> the now unpatched structures of the kernel.
> 
> On the functional patches:
> We will try to exchange anything in the linuxpatchless directory that
> accesses one of click's hooks into something that uses a similar linux
> hook instead. Probably only the FromDevice and ToDevice Elements will
> have to be updated.
> The theory converged on registering click with dev_add_pack() and then
> overwriting skb->protocol in the received sk_buffs to prevent other's
> from handling the packet as well...
> Whoever feels more practical: post your patches ;-)
> 
> That's all I remember on that part, a BIG THANK YOU again to the
> organizers of syclick who made all that possible in the first place.
> 
>>
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click




More information about the click mailing list