CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/05/11 00:41:29

Modified files:
        sys/net        : if_wg.c 

Log message:
move bpf for outgoing packets later in the transmit path.

the convention in openbsd is to have the bpf handling as close to
the "wire" as possible so you can see what ends up being send to
the network. wg was showing outgoing packets to bpf really early,
before the wgaip peer selection was checked and before the packet
was queued for transmission, so it gave a false impression about
what it was doing.

this moves the outgoing bpf stuff after the ifq dequeue. it could
be moved a bit later still (after encryption), but this is an easy
win for now.

based on a discussion with sashan@ and mvs@
ok mvs@ sashan@ sthen@ deraadt@

Reply via email to