String match patch 2.6.10
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Jochen Paul
Dear Harald,
Hi Jochen!
Please send patches (in diff -u format rather than .tar.gz) to netfilter-devel.
Quoted 4 lines
According to the differences in ipoption between linux and linux-2.6 and the following references :
http://lists.netfilter.org/pipermail/netfilter-devel/
2004-February/014116.html and
Quoted 8 lines
http://lists.netfilter.org/pipermail/netfilter-devel/
2004-February/014066.html I have generated the string module for the 2.6.x Kernel. The Patch File patch-o-string.tgz for extracting in the patch-o-matic-ng-2004.... could be found here:
http://www.physik.uni-hannover.de/string_2.6/patch-o-string.tgz . The code has been tested only on a single processor maschine and with strings less than 20 characters and seems to work. Please test it also on multiprozessor boards and with large strings.
The problem is that it is not as easy as this to read the packet contents anymore in 2.6.x. There is no guarantee that the whole packet is in one contiguous memory segment anymore. Your match will terribly crash as soon as the first nonlinear skb is found.
Please look for references of 'nonlinear skb' or skb_iter on the netfilter lists and netdev.
Because this is not an easy issue, I'm working on a general pattern matching API for nonlinar skb's - but as usual I got distracted by other stuff. Give me some two more weeks.
Quoted 1 line
Please put it in the actual patch-o-matic tree.
Sorry, not in it's current form. You're welcome to fix it wrt. linear skb's (but don't just call skb_linearize, that is considered broken, too), then I'm happy to apply it.
Quoted 2 lines
Best regards
Jochen Paul
Cheers,
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie