Beethoven.Ipv4 (Beethoven v0.3.7)

Module to handle scanning IPV4 addresses within a network.

Summary

Functions

Retrieves the hosts IP address. Pulls Network and Netmask from the config.

Same as get_host_network_addresses/0 but works off provided network and netmask.

Generates a list of hosts with the network and netmask provided

Gets the number of IPs within a netmask.

Increments IP by one host.

Functions

get_host_network_addresses()

@spec get_host_network_addresses() :: list()

Retrieves the hosts IP address. Pulls Network and Netmask from the config.

get_host_network_addresses(clusterNet, clusterNetMask)

@spec get_host_network_addresses(
  {integer(), integer(), integer(), integer()},
  integer()
) :: list()

Same as get_host_network_addresses/0 but works off provided network and netmask.

get_hosts(address, mask)

@spec get_hosts({integer(), integer(), integer(), integer()}, integer()) :: list()

Generates a list of hosts with the network and netmask provided

get_netmask_hosts(mask)

@spec get_netmask_hosts(binary() | integer()) :: float()

Gets the number of IPs within a netmask.

increment_ip(arg)

@spec increment_ip({integer(), integer(), integer(), integer()}) ::
  {integer(), integer(), integer(), integer()}

Increments IP by one host.