@da_667 chapter request: tcp keywords documentation (and prefiltering). I litera...

@reverseics@infosec.exchange

@da_667 chapter request: tcp keywords documentation (and prefiltering).

I literally just read through the source to learn why tcp.flags allows numeric assignments like 1 for ECE and 2 for CWR ( github.com/OISF/suricata/blob/ ).

I guess this was a holdover from legacy snort, but current snort documentation doesn't mention it and neither does suricata documentation, I thought it was pretty funny to figure out 'why'.

Also not very well documented is when/why/how suricata makes the decision to turn fields like this into a prefilter selector (I think it does? If there is no content check anyway that defines a fast_pattern, at least my limited performance testing of rules seems to suggest that this is the case).