]> The Tcpdump Group git mirrors - tcpdump/commit
TCP: Fix fetching the header payload length
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 21:18:55 +0000 (23:18 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 21:54:27 +0000 (23:54 +0200)
commit925cee250fa8a6c9f1e20ba98417b74f4d4d2ef8
tree91ebe6f6ec3ebe8530eced0617cc8041a13dd746
parent93b412630cd0ebdf013eba1130ec781ea636b93a
TCP: Fix fetching the header payload length

... and a Clang warning.

The warning was:
./print-tcp.c:402:120: warning: address of array
      'ip6->ip6_ctlun.ip6_un1.ip6_un1_plen' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
  ...& 0xf0) >> 4) == 6 && ip6->ip6_ctlun.ip6_un1.ip6_un1_plen) {
                        ~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
print-tcp.c