INNER CODE UNIT · Python

_get_ipv6_os

faucetsdn/poseidon · lib/poseidon_cli/poseidon_cli/cli.py:162

    def _get_ipv6_os(endpoint):
        endpoint_ip = GetData._get_ipv6(endpoint)
        ipv6_addresses = endpoint.metadata.get("ipv6_addresses", None)
        if endpoint_ip and ipv6_addresses and endpoint_ip in ipv6_addresses:
            metadata = ipv6_addresses[endpoint_ip]
            if "short_os" in metadata:
                return metadata["short_os"]
        return NO_DATA

    @staticmethod
    def _get_prev_roles(_endpoint):
        # TODO results from ML
        return

    @staticmethod
    def _get_prev_role_confidences(_endpoint):
        # TODO results from ML
        return

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…