summaryrefslogtreecommitdiff
path: root/bpf-assembler.scm
AgeCommit message (Collapse)Author
2016-03-04Add another real-world example code. Rename ldx to ldxb for the MSH hack, ↵Peter Bex
to more closely match tcpdump-generated output
2016-03-04Fix a few problems with the jump instructions (forgot to add #x05 to all of ↵Peter Bex
the conditional ones, too), make uint? and label? also recognise zero as valid and fix error expression of disassembler. Implement back-and-forth transcoding of tcpdump's "decimal encoding" output of compiled packet matching instructions (using -ddd). Fixed a few bugs I ran into with bitstring, so depend on the version to be released next (this code triggers error situations in the current version)
2016-03-04Add setup file, copyright and BPF device interfacePeter Bex
Add an initial opaque record type holding a connection to the BPF device. At least this now allows us to open a BPF device onto a network interface and request which network device we're connected to.
2013-05-05Add a TODO for using the definitions from bpf.h, since we're going to have ↵Peter Bex
to use this anyway in order to be able to use its IOCTLs
2013-05-04Initial version of BPF assembler/disassembler with a handful of basic ↵Peter Bex
internal consistency tests