Berkeley Packet Filter (BPF) assembler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
800B

  1. package bpf
  2. import "golang.org/x/net/bpf"
  3. // Type aliases.
  4. type (
  5. Instruction = bpf.Instruction
  6. RawInstruction = bpf.RawInstruction
  7. // Instruction aliases.
  8. ALUOp = bpf.ALUOp
  9. ALUOpConstant = bpf.ALUOpConstant
  10. ALUOpX = bpf.ALUOpX
  11. Jump = bpf.Jump
  12. JumpIf = bpf.JumpIf
  13. JumpIfX = bpf.JumpIfX
  14. JumpTest = bpf.JumpTest
  15. LoadAbsolute = bpf.LoadAbsolute
  16. LoadConstant = bpf.LoadConstant
  17. LoadExtension = bpf.LoadExtension
  18. LoadIndirect = bpf.LoadIndirect
  19. LoadMemShift = bpf.LoadMemShift
  20. LoadScratch = bpf.LoadScratch
  21. StoreScratch = bpf.StoreScratch
  22. NegateA = bpf.NegateA
  23. TAX = bpf.TAX
  24. TXA = bpf.TXA
  25. RetA = bpf.RetA
  26. RetConstant = bpf.RetConstant
  27. Register = bpf.Register
  28. Extension = bpf.Extension
  29. )