Skip to content

Correctly set address length in arp frames#2327

Merged
netblue30 merged 1 commit intonetblue30:masterfrom
NickMolloy:fix-addr-length
Jan 7, 2019
Merged

Correctly set address length in arp frames#2327
netblue30 merged 1 commit intonetblue30:masterfrom
NickMolloy:fix-addr-length

Conversation

@NickMolloy
Copy link
Copy Markdown
Contributor

@NickMolloy NickMolloy commented Jan 2, 2019

Kernel commit 99137b7 introduced an additional check of the address
length. This exposed a bug in the arp code where the address length was
being set incorrectly.
Now the length is set from the ETH_ALEN constant declared in
linux/if_ether.h.

This fixes #2314

Kernel commit 99137b7 introduced an additional check of the address
length. This exposed a bug in the arp code where the address length was
being set incorrectly.
Now the length is set from the ETH_ALEN constant declared in
linux/if_ether.h

This fixes #2314
@greencopper
Copy link
Copy Markdown

We need to have this merged asap.

@moviuro
Copy link
Copy Markdown

moviuro commented Jan 5, 2019

Tried it on Archlinux with kernel 4.20.0, all good 👍

@netblue30 netblue30 merged commit 7dde6a6 into netblue30:master Jan 7, 2019
@netblue30
Copy link
Copy Markdown
Owner

Thanks for the fix, I'll make sure it goes on all our branches.

@greencopper
Copy link
Copy Markdown

Thanks! Great work!

@@ -78,7 +78,7 @@ void arp_announce(const char *dev, Bridge *br) {
errExit("if_nametoindex");
addr.sll_family = AF_PACKET;
memcpy (addr.sll_addr, ifr.ifr_hwaddr.sa_data, 6);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it fine to keep the hardcoded 6 here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail to open firefox in firejail: Error send: arp.c:182 arp_check: Invalid argument

5 participants