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)
Sat, May 4, 11:01 AM
Unknown Object (File)
Fri, Apr 26, 2:12 AM
Unknown Object (File)
Apr 6 2024, 6:33 PM
Unknown Object (File)
Mar 17 2024, 9:43 AM
Unknown Object (File)
Mar 17 2024, 9:43 AM
Unknown Object (File)
Mar 17 2024, 9:43 AM
Unknown Object (File)
Mar 14 2024, 5:01 PM
Unknown Object (File)
Jan 29 2024, 10:14 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