BPF reads no packets when using DLT_RAW

Originator:ghazel
Number:rdar://57479566 Date Originated:12/2/19
Status:Open Resolved:
Product:macOS Product Version:10.15.1 (19B88)
Classification: Reproducible:Y
 
When using DLT_RAW with BPF on a device that claims to support DLT_RAW, no packets are read. Using the default mode works fine.

Example C program attached. If you remove the "v = DLT_RAW;" line, you'll see that it works fine.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!