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)
Mon, Jul 1, 9:05 PM
Unknown Object (File)
Mon, Jul 1, 1:24 PM
Unknown Object (File)
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)
Jun 3 2024, 11:03 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 Skipped
Unit
Tests Skipped