Skip to content
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

Merged
merged 6 commits into from
Jun 19, 2021
Merged

Apply #616 fix to flows.c, fix #665 #666

merged 6 commits into from
Jun 19, 2021

Conversation

dumprop
Copy link

@dumprop dumprop commented May 9, 2021

Ported #637 fix for #665

@@ -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)
Copy link
Author

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

if (datalen < 4)

Comment on lines +26 to +29
#define JUNIPER_FLAG_NO_L2 0x02 /* L2 header */
#define JUNIPER_FLAG_EXT 0x80 /* Juniper extensions present */
#define JUNIPER_PCAP_MAGIC "MGC"

Copy link
Author

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

@fklassen fklassen added this to To do in 4.3.5 May 10, 2021
@fklassen
Copy link
Member

Thanks for the PR. Good find. Will add to 4.3.5 release.

@fklassen fklassen self-assigned this May 10, 2021
@fklassen fklassen added the bug label May 10, 2021
@fklassen fklassen changed the base branch from master to v4.3.5 June 19, 2021 19:58
@fklassen fklassen changed the base branch from v4.3.5 to 4.3.5 June 19, 2021 20:00
@fklassen fklassen merged commit 9f6f3d5 into appneta:4.3.5 Jun 19, 2021
4.3.5 automation moved this from To do to Done Jun 19, 2021
@fklassen
Copy link
Member

Thanks for the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
4.3.5
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants