class DhcpsApi::DHCP_OPTION_SCOPE_INFO
DHCP_OPTION_SCOPE_INFO
defines information about the options provided for a certain DHCP scope.
Available fields: :scope_type [Fixnum], see DHCP_OPTION_SCOPE_TYPE
:scope_info [DHCP_OPTION_SCOPE_INFO_UNION],
@see msdn.microsoft.com/en-us/library/windows/desktop/aa363361(v=vs.85).aspx
Public Class Methods
build_for_default_scope()
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 467 def self.build_for_default_scope to_return = new to_return[:scope_type] = DHCP_OPTION_SCOPE_TYPE::DhcpDefaultOptions to_return[:scope_info][:default_scope_info] = DHCP_OPTION_ARRAY.new.pointer to_return end
build_for_global_scope()
click to toggle source
TODO
# File lib/dhcpsapi/data_structures.rb, line 475 def self.build_for_global_scope raise "Not implemented yet" end
build_for_multicast_scope(multicast_scope_name)
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 460 def self.build_for_multicast_scope(multicast_scope_name) to_return = new to_return[:scope_type] = DHCP_OPTION_SCOPE_TYPE::DhcpMScopeOptions to_return[:scope_info][:m_scope_info] = FFI::MemoryPointer.from_string(to_return.to_wchar_string(multicast_scope_name)) to_return end
build_for_reserved_scope(reserved_ip_address, subnet_ip_address)
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 452 def self.build_for_reserved_scope(reserved_ip_address, subnet_ip_address) to_return = new to_return[:scope_type] = DHCP_OPTION_SCOPE_TYPE::DhcpReservedOptions to_return[:scope_info][:reserved_scope_info][:reserved_ip_address] = to_return.ip_to_uint32(reserved_ip_address) to_return[:scope_info][:reserved_scope_info][:reserved_ip_subnet_address] = to_return.ip_to_uint32(subnet_ip_address) to_return end
build_for_subnet_scope(subnet_ip_address)
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 445 def self.build_for_subnet_scope(subnet_ip_address) to_return = new to_return[:scope_type] = DHCP_OPTION_SCOPE_TYPE::DhcpSubnetOptions to_return[:scope_info][:subnet_scope_info] = to_return.ip_to_uint32(subnet_ip_address) to_return end