tcpdump mailing list archives

Re: automating, or validating DLT_ vs LINKTYPE_ values


From: Guy Harris <guy () alum mit edu>
Date: Sun, 24 Jun 2018 12:16:04 -0700

On Jun 24, 2018, at 11:40 AM, Michael Richardson <mcr () sandelman ca> wrote:

Questions:
 1) should we have some test case or something that checks that the _MAX
 values are identical?  Perhaps a compile-time test using #error?

That sounds like a good idea.  I've done that in 3367fed4b1ff7341966428e5e59674475729cc1c.

 2) should we move the LINKTYPE_ defines to another file, and generate that
 file with a script?
 Should we just generate dlt.h and that new file from a third file (YAML
 or JSON or CSV format...)

I like the "third file" idea.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: