Payload scan#97
Conversation
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Failedexamples/payload_scan/payload_scan.c:205: If an else has a brace on one side, it should have it on both [readability/braces] [5] |
|
@onvm one mo' time |
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Passed |
|
Hey, great job on this, tested speed tester just in case and it actually got better than my average run (coincidence but still nice). I haven't done much with pktgen, but set it up and test early next week - just a few things, but we might want to update examples/Makefile to reflect payload as a new nf, not necessary, just helpful. Also, maybe make a readme for this new NF because all the others have one? |
|
Thanks kevin! Readme is part of the to-do list, i will work on that. I’ll implement your makefile suggestion. |
koolzz
left a comment
There was a problem hiding this comment.
Agree with Kevin about the docs/Makefile, also added some code style comments
|
Pktgen performance (Forwarded packets)
@twood02 Performance using tcp Pktgen generated packets of different lengths. I have a pcap file that I generated from wireshark for 64B packets, but need to create much more of them (using scapy I presume) to make it work.. I will upload the results here once I have them. |
Good stuff just make it clear which pcap files have matches or not |
|
@dennisafa I'm assuming this is ready for merging? How can I test it? What string where you using? |
|
@koolzz yes this is ready. Run pktgen and set the search string to “xyz”, as each pktgen packets’ payload contains that. |
koolzz
left a comment
There was a problem hiding this comment.
Overall I approve, have left some style nits though would merge after you fix those.
I tested with speed_tester instead, using a pcap file. Works as expected. The only concern is search strings that have spaces in them, which as I have discovered is a current bug in the launch scripts as it butchers special character args. I'll submit a bug report for that but its unrelated to this pr.
|
@onvm sanity check |
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Failedexamples/aes_decrypt/aes.h:176: #endif line should be "#endif // AES_H" [build/header_guard] [5] |
|
I'll merge but we gotta fix the few small lint issues before release |
Adding a NF that scans a packets payload for a given string.
Summary:
This NF provides the functionality to search for a string within a given UDP or TCP packet payload. Packet is forwarded to its destination NF on a match, dropped otherwise.
Usage:
Merging notes:
TODO before merging :
Test Plan:
Used pktgen to send UDP packets and TCP packets. Checked that the packet is forwarded on a match and dropped on a mismatch. Also checked if the packet sent is neither UDP or TCP i.e icmp
Review:
TBA