CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/10/31 18:09:42
Modified files:
usr.sbin/tcpdump: print-enc.c
Log message:
cope with the DLT_ENC enchdr being written by the kernel in host endian
the enchdr is supposed to be handled like a network header with a
consistent byte order so parsers can read it consistently on any
arch, but the kernel (currently) writes it in the hosts byte order.
fortunately swapped values dont overlap with unswapped values, so
we can check both orders to cope with them being populated
inconsistently.