Page MenuHomeFreeBSD

if_tuntap: trigger the bpf hook on transmitting for the tap interface
ClosedPublic

Authored by tuexen on Nov 4 2023, 4:34 PM.
Tags
None
Referenced Files
F150356381: D42467.id129722.diff
Tue, Mar 31, 12:10 PM
Unknown Object (File)
Sun, Mar 22, 12:45 PM
Unknown Object (File)
Sun, Mar 22, 6:48 AM
Unknown Object (File)
Sun, Mar 22, 12:42 AM
Unknown Object (File)
Sat, Mar 21, 10:23 PM
Unknown Object (File)
Thu, Mar 19, 1:41 PM
Unknown Object (File)
Tue, Mar 10, 12:40 AM
Unknown Object (File)
Feb 28 2026, 8:34 PM

Details

Summary

The tun interface triggers the bpf hook when a packet is transmitted, the tap interface triggers it when the packet is read from the character device. This is inconsistent. So fix the tap device such that is behaves like the tun device. This is needed for adding support for the tap device to packetdrill.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable