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
F107124852: D42467.id129722.diff
Fri, Jan 10, 12:20 PM
F107114927: D42467.diff
Fri, Jan 10, 8:28 AM
Unknown Object (File)
Dec 8 2024, 8:25 AM
Unknown Object (File)
Oct 2 2024, 4:37 AM
Unknown Object (File)
Sep 21 2024, 9:47 PM
Unknown Object (File)
Sep 18 2024, 3:09 AM
Unknown Object (File)
Sep 17 2024, 5:47 PM
Unknown Object (File)
Sep 16 2024, 6:30 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