]> The Tcpdump Group git mirrors - tcpdump/commit
fix two issues with PGM length handling
authorDenis Ovsienko <[email protected]>
Thu, 14 Mar 2013 15:58:51 +0000 (19:58 +0400)
committerMichael Richardson <[email protected]>
Sun, 14 Apr 2013 22:20:26 +0000 (18:20 -0400)
commit267910ecc12a555c50b677b89b44d9e60773e1be
tree0fc7ea4f04ff1527fa5ff9fd90f44b57f72e46ee
parent5aed2384cba6126178251c92f5928dbadb3401f4
fix two issues with PGM length handling

1. "TSDU Length" comes in network byte order on wire, add missing macro.

2. The (unused) justification of the number of bytes on wire wasn't
correct because one side of the comparison included header size and
another didn't (note the byte order as well). Besides that, the value of
TSDU Length was already output thus far. Don't justify the number of
bytes on wire and change the final printf() to make a use of it.
print-pgm.c