Paul Evans > Socket-Netlink-Route > IO::Socket::Netlink::Route

Download:
Socket-Netlink-Route-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

IO::Socket::Netlink::Route - Object interface to NETLINK_ROUTE netlink protocol sockets

DESCRIPTION ^

This subclass of IO::Socket::Netlink implements the NETLINK_ROUTE protocol. This protocol allows communication with the Linux kernel's networking stack, allowing querying or modification of interfaces, addresses, routes, and other networking properties.

This module is currently a work-in-progress, and this documentation is fairly minimal. The reader is expected to be familiar with NETLINK_ROUTE, as it currently only gives a fairly minimal description of the Perl-level wrapping of the kernel level concepts. For more information see the documentation in rtnetlink(7).

MESSAGE CLASSES ^

Each message type falls into one of the following subclasses, chosen by the value of the nlmsg_type field. Each subclass provides access to the field headers of its message body, and netlink attributes.

IfinfoMsg

Relates to a network interface. Used by the following message types

Provides the following header field accessors

Provides the following netlink attributes

IfaddrMsg

Relates to an address present on an interface. Used by the following message types

Provides the following header field accessors

Provides the following netlink attributes

$message->prefix

Sets or returns both the address netlink attribute, and the ifa_prefixlen header value, in the form

 address/ifa_prefixlen

RtMsg

Relates to a routing table entry. Used by the following message types

Provides the following header field accessors

Provides the following netlink attributes

$message->src

Sets or returns the src netlink attribute and the rtm_src_len header value, in the form

 address/prefixlen

if the address is defined, or undef if not.

$message->dst

Sets or returns the dst netlink attribute and the rtm_dst_len header value, in the form given above.

NdMsg

Relates to a neighbour discovery table entry. Used by the following message types

Provides the following header field accessors

Provides the following netlink attributes

SEE ALSO ^

AUTHOR ^

Paul Evans <leonerd@leonerd.org.uk>

syntax highlighting: