CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2020/09/12 03:27:23

Modified files:
        lib/libpcap    : gencode.c 

Log message:
Fix byte order handling for DLT_LOOP links

Fixing filters on DLT_LOOP revealed that we treat DLT_NULL, DLT_ENC and
DLT_LOOP the same way even though DLT_LOOP stores the AF value in network
not byte order like the rest.

This amends the missing conversion which ought to land with the recent
commit exposing the byte order mismatch:

revision 1.53
date: 2020/07/21 22:44:55;  author: dlg;  state: Exp;  lines: +2 -2;
DLT_LOOP does have a link header, so tell pcap-filter so it can use it.
...
debugged with and ok kn@

Discussed with bluhm who reported src/regress/sys/netinet6/rip6cksum/
failing on i386 after above commit.

The comment in this commit is taken from libpcap upstream as is modulo
additional file-save related byte-order handling which we don't seem to do.

OK bluhm

Reply via email to