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
F87074253: D42467.diff
Sat, Jun 29, 12:12 AM
F87074103: D42467.id129748.diff
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)
Thu, May 30, 8:24 PM
Unknown Object (File)
May 4 2024, 11:01 AM
Unknown Object (File)
Apr 26 2024, 2:12 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