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
F87301838: D42467.id129722.diff
Mon, Jul 1, 12:25 PM
Unknown Object (File)
Sat, Jun 29, 12:12 AM
Unknown Object (File)
Sat, Jun 29, 12:09 AM
Unknown Object (File)
Sat, Jun 22, 6:52 AM
Unknown Object (File)
Fri, Jun 21, 6:18 AM
Unknown Object (File)
Mon, Jun 3, 11:03 AM
Unknown Object (File)
May 30 2024, 8:24 PM
Unknown Object (File)
May 4 2024, 11:01 AM

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