]> The Tcpdump Group git mirrors - libpcap/commit
Handle all protocol qualifiers in gen_host().
authorGuy Harris <[email protected]>
Tue, 16 Oct 2018 22:29:43 +0000 (15:29 -0700)
committerGuy Harris <[email protected]>
Tue, 16 Oct 2018 22:29:43 +0000 (15:29 -0700)
commit7c4e350019656f3bd64604cb97c8c3d605cf93f0
treeec70a46226e82dd81b7373be9543bf8fba49c211
parent0559fdd4bfcdb199ddeb4aba1b798ff4ef16b63b
Handle all protocol qualifiers in gen_host().

Report an error, rather than aborting, for all of them.

This prevents crashes from, for example, "l1 dst 3".

Eliminate some unused Q_ values.

Sort the cases in order by Q_ value.

It's "AppleTalk", not "ATALK".

Credit to OSS-Fuzz for finding the abort issue.
gencode.c
gencode.h