GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
IO::Socket::Netlink::Generic(3) User Contributed Perl Documentation IO::Socket::Netlink::Generic(3)

"IO::Socket::Netlink::Generic" - Object interface to "NETLINK_GENERIC" netlink protocol sockets

 use IO::Socket::Netlink::Generic;
 my $genlsock = IO::Socket::Netlink::Generic->new or die "socket: $!";
 printf "TASKSTATS family ID is %d\n",
    $genlsock->get_family_by_name( "TASKSTATS" )->{id};

This subclass of IO::Socket::Netlink implements the "NETLINK_GENERIC" protocol. It is itself intended to serve as a base class for particular generic families to extend.

   $class->register_family_name( $name )

Must be called by a subclass implementing a particular protocol family, to declare its family name. The first time a socket in that class is constructed, this name will be looked up into an ID number.

   $family = $sock->get_family_by_name( $name )

   $family = $sock->get_family_by_id( $id )

Query the kernel for information on the "NETLINK_GENERIC" family specifed by name or ID number, and return information about it. Returns a HASH reference containing the following fields:

Sockets in this class provide the following extra field accessors on their message objects:

  • $message->cmd

    ID number of the command to give to the family

  • $message->version

    Version number of the interface

  • $message->genlmsg

    Accessor for the trailing data buffer; intended for subclasses to use

  • Socket::Netlink::Generic - interface to Linux's "NETLINK_GENERIC" netlink socket protocol
  • IO::Socket::Netlink - Object interface to "AF_NETLINK" domain sockets

Paul Evans <leonerd@leonerd.org.uk>

2025-07-03 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.