Filament::Capture::BpfCompiler
Inherits Reference < Object
High-level compiler converting common filter expressions into cBPF programs
Class methods
compile(expression : String, snap_len : UInt32 = 65535_u32) : BpfProgram
Compiles simple expression syntax into a cBPF bytecode program. Supported patterns:
- "ip", "ipv6", "arp"
- "tcp", "udp", "icmp"
- "port 80", "tcp port 443", "udp port 53"
- "src port 80", "dst port 80"
- "host 192.168.1.1", "src host 10.0.0.1", "dst host 10.0.0.2"