-
Notifications
You must be signed in to change notification settings - Fork 264
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
Apply #616 fix to flows.c, fix #665 #666
Conversation
@@ -109,9 +109,6 @@ get_l2protocol(const u_char *pktdata, const uint32_t datalen, const int datalink | |||
} | |||
|
|||
if ((pktdata[3] & JUNIPER_FLAG_EXT) == JUNIPER_FLAG_EXT) { | |||
if (datalen < 6) |
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.
I removed that validation because there datalen < 4 already
Line 102 in c785b21
if (datalen < 4) |
#define JUNIPER_FLAG_NO_L2 0x02 /* L2 header */ | ||
#define JUNIPER_FLAG_EXT 0x80 /* Juniper extensions present */ | ||
#define JUNIPER_PCAP_MAGIC "MGC" | ||
|
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.
Removed magic numbers, as already implemented in get.c
Thanks for the PR. Good find. Will add to 4.3.5 release. |
Thanks for the PR |
Ported #637 fix for #665