]> The Tcpdump Group git mirrors - libpcap/commit
Compute variable link header if we are computing the link payload.
authorJesse Gross <[email protected]>
Fri, 13 Feb 2015 00:33:36 +0000 (16:33 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 17 Feb 2015 14:40:00 +0000 (15:40 +0100)
commit39bda6eb8272c213eed96261363f6379526dcefb
treea7be3107ebddf58fd468093617378fa8941ff337
parent0f740c78ff4523165a177d3258da8e8872096301
Compute variable link header if we are computing the link payload.

The link payload is an absolute offset from the start of the packet,
meaning that it should include any variable link prefix as well.
However, currently if somebody asks for the payload but not the link
header, the latter is not computed and is skipped. This adds a
dependency between the two, so that we always calculate the full value.
gencode.c