xref: /aosp_15_r20/external/scapy/scapy/arch/bpf/consts.py (revision 7dc08ffc4802948ccbc861daaf1e81c405c2c4bd)
1*7dc08ffcSJunyu Lai# Guillaume Valadon <[email protected]>
2*7dc08ffcSJunyu Lai
3*7dc08ffcSJunyu Lai"""
4*7dc08ffcSJunyu LaiScapy *BSD native support - constants
5*7dc08ffcSJunyu Lai"""
6*7dc08ffcSJunyu Lai
7*7dc08ffcSJunyu Lai
8*7dc08ffcSJunyu Laifrom scapy.data import MTU
9*7dc08ffcSJunyu Lai
10*7dc08ffcSJunyu Lai
11*7dc08ffcSJunyu LaiSIOCGIFFLAGS = 0xc0206911
12*7dc08ffcSJunyu LaiBPF_BUFFER_LENGTH = MTU
13*7dc08ffcSJunyu Lai
14*7dc08ffcSJunyu Lai# From net/bpf.h
15*7dc08ffcSJunyu LaiBIOCIMMEDIATE = 0x80044270
16*7dc08ffcSJunyu LaiBIOCGSTATS = 0x4008426f
17*7dc08ffcSJunyu LaiBIOCPROMISC = 0x20004269
18*7dc08ffcSJunyu LaiBIOCSETIF = 0x8020426c
19*7dc08ffcSJunyu LaiBIOCSBLEN = 0xc0044266
20*7dc08ffcSJunyu LaiBIOCGBLEN = 0x40044266
21*7dc08ffcSJunyu LaiBIOCSETF = 0x80104267
22*7dc08ffcSJunyu LaiBIOCSHDRCMPLT = 0x80044275
23*7dc08ffcSJunyu LaiBIOCGDLT = 0x4004426a
24