-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARP: implement decoder and logger #10570
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10570 +/- ##
========================================
Coverage 82.67% 82.67%
========================================
Files 922 924 +2
Lines 246969 247149 +180
========================================
+ Hits 204179 204332 +153
- Misses 42790 42817 +27
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -0,0 +1,256 @@ | |||
/* Copyright (C) 2021 Open Information Security Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: year
return "pure_ip"; | ||
case 36: | ||
return "hw_exp1"; | ||
case 37: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml
38 has a value as do 256 and 257.
|
||
static bool JsonArpLogCondition(ThreadVars *tv, void *thread_data, const Packet *p) | ||
{ | ||
if (!PKT_IS_ARP(p)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: suggest return PKT_IS_ARP(p)
@@ -0,0 +1,28 @@ | |||
/* Copyright (C) 2021 Open Information Security Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: year
Replaced with #10572 |
Make sure these boxes are signed before submitting your Pull Request -- thank you.
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6827
Describe changes:
JSONFormatAndAddMACAddr
publicSV_BRANCH=OISF/suricata-verify#1681