]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
Include frame header in buffer length (#371)
authoracst1223 <natnstart@gmail.com>
Thu, 26 Sep 2024 07:56:28 +0000 (16:56 +0900)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 07:56:28 +0000 (08:56 +0100)
commit005111278ce60fa290638769d876ec2e6e03e033
treea13fc587cd6c11251173fba01f2f6bf702a0ef40
parent793825f70ed8a9e48e5105bc45255db2757c3cdb
Include frame header in buffer length (#371)

Since we are capturing packets at L2 we should not be using ETH_DATA_LEN
but ETH_FRAME_LEN to include also dst/src MAC and EtherType.

Co-authored-by: Andrzej Ostruszka <amo@semihalf.com>
src/if-linux.c