MCPcopy Create free account
hub / github.com/qilingframework/qiling / socket_level_mapping

Function socket_level_mapping

qiling/os/posix/const_mapping.py:169–178  ·  view source on GitHub ↗
(value: int, archtype: QL_ARCH)

Source from the content-addressed store, hash-verified

167
168
169def socket_level_mapping(value: int, archtype: QL_ARCH) -> str:
170 socket_level: Type[Enum] = {
171 QL_ARCH.X86: linux_x86_socket_level,
172 QL_ARCH.X8664: linux_x86_socket_level,
173 QL_ARCH.ARM: linux_arm_socket_level,
174 QL_ARCH.ARM64: linux_arm_socket_level,
175 QL_ARCH.MIPS: linux_mips_socket_level
176 }[archtype]
177
178 return socket_level(value).name
179
180
181def socket_ip_option_mapping(value: int, archtype: QL_ARCH, ostype: QL_OS) -> str:

Callers 1

__host_socket_levelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected