Searched refs:enum_or_int (Results 1 – 10 of 10) sorted by relevance
6 from atf_python.sys.netlink.utils import enum_or_int85 nla_type_raw = enum_or_int(nla_type)115 self.u32 = enum_or_int(val)142 self.s32 = enum_or_int(val)169 self.u16 = enum_or_int(val)196 self.u8 = enum_or_int(val)
18 from atf_python.sys.netlink.utils import enum_or_int37 self.nlmsg_type = enum_or_int(nlmsg_type)54 int_flags |= enum_or_int(flag)61 nla_type_raw = enum_or_int(nla_type)77 nlmsg_type_raw = enum_or_int(nlmsg_type)
23 from atf_python.sys.netlink.utils import enum_or_int34 self.base_hdr = GenlMsgHdr(cmd=enum_or_int(cmd))
27 def enum_or_int(val) -> int: function
32 from atf_python.sys.netlink.utils import enum_or_int249 xmap[family_id][enum_or_int(msg_props.msg)] = cls
30 from atf_python.sys.netpfil.ipfw.utils import enum_or_int64 debug_type = enum_or_int(debug_type)69 xmap[debug_type][enum_or_int(msg)] = handler_class
29 def enum_or_int(val) -> int: function
411 obj_type_raw = enum_or_int(obj_type)436 return enum_or_int(msg_type) == self.msg_type
29 from atf_python.sys.netpfil.ipfw.utils import enum_or_int200 insn = IpFwInsn(opcode=self.obj_type, length=length, arg1=enum_or_int(self.arg1))
28 from atf_python.sys.netlink.utils import enum_or_int426 nl_flags |= enum_or_int(d.get("nl", 0))427 f_flags |= enum_or_int(d.get("f", 0))