Conversation
So that we can write enip.revision: 0x203 Ticket: 6645
Ticket: 6647 Allows keywords using integers to use strings in signature parsing based on a rust enumeration with a derive.
Ticket: 6648 Like &0x40=0x40 to test for a specific bit set
Ticket: 6628 Document the generic detection capabilities for integer keywords. and make every integer keyword pointing to this section.
|
ERROR: ERROR: QA failed on TREX_GENERIC_rule_time. Pipeline 17552 |
@ct0br0 would you have a profile for this ? |
|
And other PRs using this one do not show this deviation... |
|
What do you mean by 'profile' ? |
|
fwiw, did another run and the rule load time only took 1 more second instead of 3. (19 vs 20, or previously 22) |
Some |
|
Continuing convo from #10176 (comment) on correct PR the integer-keyword.rst contains the following Upon reading this, I thought that integer supporting keywords (bsize, dsize, urilen, etc) which currently use equality, inequality, greater than, etc would need to be updated/changed to support this new format. My assumption is/was that equality would need to be rewritten from based on comments in #10176 (comment), my thought was incorrect and I was misunderstanding the examples. I would propose that example be rewritten to include more specific examples current bitmaskly supported by byte_test, byte_match, byte_jump (maybe not byte_jump??) does a right shift by the number of trailing 0 (zeros) after the AND operation. Does this bitmask option perform the same behavior? |
You can do You should not do And thanks for bringing this, now I will make the parser failing for |
|
Feedback incorporated in #10197 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6644 and all subtickets
https://redmine.openinfosecfoundation.org/issues/6645
https://redmine.openinfosecfoundation.org/issues/6646
https://redmine.openinfosecfoundation.org/issues/6647
https://redmine.openinfosecfoundation.org/issues/6648
https://redmine.openinfosecfoundation.org/issues/6628
Describe changes:
#10175 with derive enumstring for u16 and u32 as well (as needed by the ENIP rust PR)