• Home
  • Raw
  • Download

Lines Matching full:imm

19                 ('imm', ct.c_int32)]
22 opcodes = [(0x04, "%dst += %imm"),
24 (0x07, "%dst += %imm"),
27 (0x14, "%dst -= %imm"),
28 (0x15, "if %dst == %imm goto pc%off <%jmp>"),
29 (0x17, "%dst -= %imm"),
34 (0x20, "r0 = *(u32*)skb[%imm]"),
35 (0x24, "%dst *= %imm"),
36 (0x25, "if %dst > %imm goto pc%off <%jmp>"),
37 (0x27, "%dst *= %imm"),
38 (0x28, "r0 = *(u16*)skb[%imm]"),
42 (0x30, "r0 = *(u8*)skb[%imm]"),
43 (0x34, "%dst /= %imm"),
44 (0x35, "if %dst >= %imm goto pc%off <%jmp>"),
45 (0x37, "%dst /= %imm"),
46 (0x38, "r0 = *(u64*)skb[%imm]"),
52 (0x45, "if %dst & %imm goto pc%off <%jmp>"),
60 (0x55, "if %dst != %imm goto pc%off <%jmp>"),
67 (0x62, "*(u32*)(%dst %off) = %imm"),
69 (0x64, "%dst <<= %imm"),
70 (0x65, "if %dst s> %imm goto pc%off <%jmp>"),
71 (0x67, "%dst <<= %imm"),
73 (0x6a, "*(u16*)(%dst %off) = %imm"),
79 (0x72, "*(u8*)(%dst %off) = %imm"),
81 (0x74, "%dst >>= %imm"),
82 (0x75, "if %dst s>= %imm goto pc%off <%jmp>"),
83 (0x77, "%dst >>= %imm"),
85 (0x7a, "*(u64*)(%dst %off) = %imm"),
93 (0x94, "%dst %= %imm"),
95 (0x97, "%dst %= %imm"),
99 (0xa5, "if %dst < %imm goto pc%off <%jmp>"),
104 (0xb4, "%dst = %imm"),
105 (0xb5, "if %dst <= %imm goto pc%off <%jmp>"),
106 (0xb7, "%dst = %imm"),
110 (0xc4, "%dst s>>= %imm"),
111 (0xc5, "if %dst s< %imm goto pc%off <%jmp>"),
112 (0xc7, "%dst s>>= %imm"),
116 (0xd5, "if %dst s<= %imm goto pc%off <%jmp>"),
118 (0xdd, "if %dst s<= %imm goto pc%off <%jmp>"),]
125 imm = random.randint(0, 0xffffffff)
126 return BPFInstr(op, dst, src, offset, imm)
130 uimm = ct.c_uint32(instr.imm).value
133 .replace("%imm", "%d" % (instr.imm))
135 .replace("%sim", "%+d" % (instr.imm))