From: Klemens Nanni Subject: Re: convert bpf interface list into a tailq To: David Gwynne Cc: tech@openbsd.org Date: Tue, 19 Nov 2024 17:48:15 +0000 19 нояб. 2024 г. 15:19:52 David Gwynne : > at the moment it's a good old hand rolled list. > > we have clean water^W^Wsys/queue.h now, so let's use it. this diff also > inserts new bpf_ifs at the end of the list instead of the head. this > means that the list of DLTs per interface will change order, eg, what > tcpdump -i iwx0 -L prints will change order. currently attachinig > a bpf descriptor to an interface prefers low numbered DLTs, so this > doesnt change which one is picked if you run somethinig like tcpdump > without specifying a dlt. OK kn