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

Function socket_ip_option_mapping

qiling/os/posix/const_mapping.py:181–190  ·  view source on GitHub ↗
(value: int, archtype: QL_ARCH, ostype: QL_OS)

Source from the content-addressed store, hash-verified

179
180
181def socket_ip_option_mapping(value: int, archtype: QL_ARCH, ostype: QL_OS) -> str:
182 socket_ip_option: Type[Enum] = {
183 QL_ARCH.X86: linux_socket_ip_options,
184 QL_ARCH.X8664: macos_socket_ip_options if ostype is QL_OS.MACOS else linux_socket_ip_options,
185 QL_ARCH.ARM: linux_socket_ip_options,
186 QL_ARCH.ARM64: macos_socket_ip_options if ostype is QL_OS.MACOS else linux_socket_ip_options,
187 QL_ARCH.MIPS: linux_mips_socket_ip_options
188 }[archtype]
189
190 return socket_ip_option(value).name
191
192
193def socket_option_mapping(value: int, archtype: QL_ARCH) -> str:

Callers 1

__host_socket_optionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected