
Net::Libdnet - Perl interface to libdnet

use Net::Libdnet;

All the following functions return undef and print a warning message to the standard error when a problem occurs.
Some of the functions in the original dnet were omited, because we only deal with the string representation of addresses. We also avoid passing handlers to the user, as we open and subsequently close them for each request. Moreover, the XXX_loop() functions are not implemented yet.
Compares network addresses a and b, returning an integer less than, equal to, or greater than zero if a is found, respectively, to be less than, equal to, or greater than b. Both addresses must be of the same address type.
Computes the broadcast address for the specified network.
Computes the network address for the specified network.
Adds a new ARP entry.
Deletes the ARP entry for the specified protocol address.
retrieves the ARP entry for the specified protocol address.
Not implemented yet.
Not implemented yet.
Not implemented yet.
Interfaces are manipulated as hashes with the following structure:
{
len => ... ,
name => ... ,
type => ... ,
flags => ... ,
mtu => ... ,
addr => ... ,
dst_addr => ... ,
link_addr => ... ,
# alias_num => ... ,
# alias_addrs => ... ,
};
Processing interface aliases is not implemented yet.
Retrieves an interface configuration entry, keyed on name.
Retrieves the configuration for the interface with the specified primary address.
Retrieves the configuration for the best interface with which to reach the specified destination address.
Not implemented yet.
Sets the interface configuration entry. Please retrieve first the configuration, and do not build from scratch.
Not implemented yet.
Not implemented yet.
Adds a new route, to the specified destination prefix over the given gateway.
Deletes the routing table entry for the destination prefix.
Retrieves the routing table entry for the destination prefix.

intf_set, hash2intf
