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
Unknown Object (File)
Feb 13 2025, 1:53 AM
Unknown Object (File)
Feb 12 2025, 2:55 PM
Unknown Object (File)
Feb 6 2025, 2:07 PM
Unknown Object (File)
Feb 6 2025, 2:07 PM
Unknown Object (File)
Jan 25 2025, 7:27 PM
Unknown Object (File)
Jan 11 2025, 6:32 AM
Unknown Object (File)
Jan 11 2025, 6:08 AM
Unknown Object (File)
Jan 10 2025, 12:51 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