]> The Tcpdump Group git mirrors - libpcap/commit
Initialize off_outermostlinkhdr and off_prevlinkhdr at start.
authorJesse Gross <[email protected]>
Thu, 12 Feb 2015 19:43:23 +0000 (11:43 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 17 Feb 2015 14:40:00 +0000 (15:40 +0100)
commit8970997d857d93253b431bdcb6f013f16a9bc5ee
tree01783b04660aa4ce4ffc45042a7152991c492469
parent82182165d4d94eb6d139a087bdf54e5468ae1766
Initialize off_outermostlinkhdr and off_prevlinkhdr at start.

Currently off_outermostlinkhdr is always set to zero rather than
the true offsets. It is currently only used in one place where
the correct offset is zero but this is not semantically correct.
It is instead better to initialize the offsets to the initial
values computed for the link type.
gencode.c