def rarp
import bend-osdev-bpf@0.1.0.0/LAWS.bend as LAWSimport Base
import bend-osdev-bpf@0.1.0.0/insn.bend as I
124# bpf(4), EXAMPLES: accept only Reverse ARP requests, as the manual writes it
125# with BPF_STMT and BPF_JUMP (0x8035, ETHERTYPE_REVARP; 3, REVARP_REQUEST)
126def rarp() -> List<&2, I.BpfRaw>:
127 [I.bpf_stmt(40, 12), I.bpf_jump(21, 32821, 0, 3), I.bpf_stmt(40, 20), I.bpf_jump(21, 3, 0, 1), I.bpf_stmt(6, 42), I.bpf_stmt(6, 0)]