]> The Tcpdump Group git mirrors - tcpdump/commit
UDP: Fix fetching the header payload length
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 21:23:10 +0000 (23:23 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 21:54:33 +0000 (23:54 +0200)
commita948af27e45066e7a213dfc5f2f3c7cc324aaa5b
tree0f3af9554fd860c09ad23302de3d8239acb05850
parent925cee250fa8a6c9f1e20ba98417b74f4d4d2ef8
UDP: Fix fetching the header payload length

... and a Clang warning.

The warning was:
./print-udp.c:574:104: 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-udp.c