]> The Tcpdump Group git mirrors - libpcap/commit
Port numbers are 16-bit in all three supported L4 protocols.
authorDenis Ovsienko <[email protected]>
Fri, 4 Apr 2025 11:14:32 +0000 (12:14 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 7 Apr 2025 08:47:54 +0000 (09:47 +0100)
commit46ccbee2b2279a698b4ca26a8ba52b90de6db5a2
tree1ad55dd7e089489954472e511c1e01597faa2476
parent67ea7ec63360a8de2503037b2e72b8114107bfab
Port numbers are 16-bit in all three supported L4 protocols.

Therefore use uint16_t for a port number value as soon as it has passed
the range check(s).  Make gen_portop6() static while at it.
gencode.c