Browse Source

Supply type aliases for the bpf package

tags/v1.0.0
maze 7 months ago
parent
commit
129e59b5fc
1 changed files with 33 additions and 0 deletions
  1. 33
    0
      bpf.go

+ 33
- 0
bpf.go View File

@@ -0,0 +1,33 @@
package bpf

import "golang.org/x/net/bpf"

// Type aliases.
type (
Instruction = bpf.Instruction
RawInstruction = bpf.RawInstruction

// Instruction aliases.
ALUOp = bpf.ALUOp
ALUOpConstant = bpf.ALUOpConstant
ALUOpX = bpf.ALUOpX
Jump = bpf.Jump
JumpIf = bpf.JumpIf
JumpIfX = bpf.JumpIfX
JumpTest = bpf.JumpTest
LoadAbsolute = bpf.LoadAbsolute
LoadConstant = bpf.LoadConstant
LoadExtension = bpf.LoadExtension
LoadIndirect = bpf.LoadIndirect
LoadMemShift = bpf.LoadMemShift
LoadScratch = bpf.LoadScratch
StoreScratch = bpf.StoreScratch
NegateA = bpf.NegateA
TAX = bpf.TAX
TXA = bpf.TXA
RetA = bpf.RetA
RetConstant = bpf.RetConstant

Register = bpf.Register
Extension = bpf.Extension
)

Loading…
Cancel
Save