CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2020/08/02 21:29:58
Modified files: lib/libpcap : bpf_image.c gencode.c gencode.h grammar.y optimize.c pcap-filter.5 scanner.l Log message: add support for handling loads from BPF_RND. this adds "rnd" and "random" as keywords in the grammar, and handles them as an arithmetic operator. the decoder recognises the load, so tcpdump can print it as 'ld #random'. most of the handling is copied from the "len"/"length" keywoard handling that generates and decodes a load of the actual wire length of the packet. ok jmatthew@ tb@ kn@