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
F93161643: D42467.id129722.diff
Sat, Sep 7, 6:40 PM
F93149423: D42467.id129748.diff
Sat, Sep 7, 4:19 PM
Unknown Object (File)
Fri, Aug 30, 11:00 PM
Unknown Object (File)
Tue, Aug 20, 5:41 AM
Unknown Object (File)
Aug 6 2024, 4:35 AM
Unknown Object (File)
Jul 19 2024, 6:04 PM
Unknown Object (File)
Jul 4 2024, 6:11 AM
Unknown Object (File)
Jul 4 2024, 4:38 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