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)
Thu, May 21, 10:28 AM
Unknown Object (File)
Tue, May 19, 10:01 AM
Unknown Object (File)
Mon, May 18, 6:10 PM
Unknown Object (File)
Fri, May 15, 10:56 PM
Unknown Object (File)
Thu, May 14, 8:42 AM
Unknown Object (File)
Thu, May 14, 7:47 AM
Unknown Object (File)
Wed, May 13, 11:40 PM
Unknown Object (File)
Wed, May 13, 10:49 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