]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up protocol ID printing.
authorGuy Harris <[email protected]>
Sat, 3 May 2014 19:36:06 +0000 (12:36 -0700)
committerGuy Harris <[email protected]>
Sat, 3 May 2014 19:36:06 +0000 (12:36 -0700)
commitede1a0d86a4653427e23dd3541557a4a8a595d76
tree880b7c63609b03053e6a0bbc012a27dbcc6ec5ef
parent546ceeeb7914249b22b03d8b2b148e8517cd14e3
Clean up protocol ID printing.

If getprotobynumber() doesn't return a valid protocol name, just print
the protocol number.

Don't bother with setprotoent() and endprotoent() - none of the other
dissectors using getprotobynumber() use them and, if it's a useful
optimization, we should do the optimization in a common routine for all
callers (or do some other optimization, e.g. reading the entire protocol
list and building a table in which we can do a quick lookup).
print-isakmp.c