From 9cc9d81e24b7089c5277b989fe0d33aa65cbf4bb Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 5 May 2013 16:44:52 +0200 Subject: Add a TODO for using the definitions from bpf.h, since we're going to have to use this anyway in order to be able to use its IOCTLs --- bpf-assembler.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bpf-assembler.scm b/bpf-assembler.scm index 4cecd88..8741193 100644 --- a/bpf-assembler.scm +++ b/bpf-assembler.scm @@ -34,6 +34,8 @@ '?disasm))) addrmodes))))) + ;; XXX TODO: Use the constants from net/bpf.h? + ;; Ordered by complexity (defaddrmode no-operands #x80 (() => 0) (_ => ())) (defaddrmode packet-length #x80 (('len) => 0) (_ => (len))) @@ -99,6 +101,8 @@ ;;; Assembly ;;; ;;;;;;;;;;;;;;;; +;; XXX TODO: Use the structs from net/bpf.h? bitstring can go, then. + (define-syntax assemble-instruction (ir-macro-transformer (lambda (e i c) -- cgit v1.2.3