Sha256: 35d07d4b9e064a442aebdc823441a24567fa149873c87658cc1564ae5a2c36af
Contents?: true
Size: 1.8 KB
Versions: 14
Compression:
Stored size: 1.8 KB
Contents
/** * @file * Declares the Aix networking fact resolver. */ #pragma once #include "../posix/networking_resolver.hpp" #include <unordered_map> struct kinfo_ndd; namespace facter { namespace facts { namespace aix { /** * Responsible for resolving networking facts. */ struct networking_resolver : posix::networking_resolver { protected: /** * Collects the resolver data. * @param facts The fact collection that is resolving facts. * @return Returns the resolver data. */ virtual data collect_data(collection& facts) override; /** * Determines if the given sock address is a link layer address. * @param addr The socket address to check. * @returns Returns true if the socket address is a link layer address or false if it is not. */ virtual bool is_link_address(sockaddr const* addr) const override; /** * Gets the bytes of the link address. * @param addr The socket address representing the link address. * @return Returns a pointer to the address bytes or nullptr if not a link address. */ virtual uint8_t const* get_link_address_bytes(sockaddr const* addr) const override; /** * Gets the length of the link address. * @param addr The socket address representing the link address. * @return Returns the length of the address or 0 if not a link address. */ virtual uint8_t get_link_address_length(sockaddr const* addr) const override; private: using mtu_map = std::unordered_map<std::string, std::string>; std::string get_primary_interface() const; mtu_map get_mtus() const; std::vector<interface> get_interfaces() const; }; }}} // namespace facter::facts::aix
Version data entries
14 entries across 14 versions & 1 rubygems