]> The Tcpdump Group git mirrors - tcpdump/commit
Rx: Make UDP ports 16-bit to compile (GH #868).
authorDenis Ovsienko <[email protected]>
Wed, 12 Aug 2020 23:59:44 +0000 (00:59 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 13 Aug 2020 00:02:52 +0000 (01:02 +0100)
commit50a72922c564280a420342cc77e91b16227078bd
treeb0e6cf66d34ff481b92ddcd71d7d0e7b4d2471c1
parent77f2fe1fd6aa3cf349e8dbe49a5710a4f18104fe
Rx: Make UDP ports 16-bit to compile (GH #868).

Gisle Vanem reported that GCC 7.1 for DJGPP sees u_int and uint32_t as
two different types, hence the forward declaration for rx_cache_find()
was different from the actual function. UDP port numbers are 16-bit and
udp_print() appropriately uses uint16_t for them. Use the same type in
the downstream Rx-specific code to make things simpler and consistent.
netdissect.h
print-rx.c