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
Net::Interface::NetSymbols(3) User Contributed Perl Documentation Net::Interface::NetSymbols(3)

Net::Interface::NetSymbols - AF_ PF_ IFxxx type symbols

This module is built for this specific architecture during the make process using inst/netsymbols.pl. Do not edit this module, edit inst/netsymbols.pl instead.

This module contains symbols arrays only for use by Net::Interface, in all other respects it is NOT functional. It contains documentation and data arrays for this specific architecture.

NOTE: WARNING !!

     usage is Net::Interface

NOT Net::Interface::NetSymbols

use Net::Interface qw(

        Net::Interface::NetSymbols::NI_ENDVAL();
        Net::Interface::NetSymbols::NI_UNIQUE();
AF_UNSPEC AF_FILE AF_LOCAL AF_UNIX AF_INET AF_ISO AF_BRIDGE AF_DECnet AF_APPLETALK AF_PACKET AF_ROUTE AF_LINK AF_IPX AF_INET6 AF_MAX

PF_UNSPEC PF_LOCAL PF_FILE PF_UNIX PF_INET PF_ISO PF_BRIDGE PF_DECnet PF_APPLETALK PF_ROUTE PF_PACKET PF_LINK PF_IPX PF_INET6 PF_MAX

IFF_BROADCAST IFHWADDRLEN IN6_IFF_DEPRECATED IFNAMSIZ IFDR_REASON_VENDOR IFCAP_VLAN_HWTAGGING IFCAP_NETMAP IFCAP_TXCSUM IFF_RENAMING IFAN_DEPARTURE IN6_IFF_ANYCAST IFCAP_HWRXTSTMP IFF_DRV_OACTIVE IFCAP_RXCSUM_IPV6 IFF_POINTOPOINT IFF_MONITOR IFCAP_VLAN_HWTSO IFCAP_LRO IFCAP_TOE6 IFF_OACTIVE IFCAP_TXTLS6 IFF_LINK0 IFF_UP IFCAP_VXLAN_HWTSO IFCAP_LINKSTATE IFF_PPROMISC IN6_IFF_DETACHED IFSTATMAX IN6_IFAUPDATE_DADDELAY IFF_CANTCONFIG IFDR_MSG_SIZE IFF_ALLMULTI IF_NAMESIZE IFCAP_TSO4 IFF_DRV_RUNNING IFCAP_WOL_UCAST IFDR_REASON_MSG IN6_IFF_TEMPORARY IFCAP_TXTLS4 IFCAP_WOL_MCAST IFF_NOGROUP IFNET_SLOWHZ IFCAP_VLAN_HWFILTER IFF_SIMPLEX IFCAP_TXCSUM_IPV6 IFCAP_TOE4 IFCAP_NETCONS IN6_IFF_DUPLICATED IN6_IFF_AUTOCONF IFCAP_HWSTATS IFCAP_VLAN_MTU IFF_KNOWSEPOCH IFCAP_RXCSUM IN6_IFF_PREFER_SOURCE IFF_DYING IFCAP_TXTLS_RTLMT IFF_DEBUG IFQ_MAXLEN IFF_STATICARP IFF_LINK1 IFF_ALTPHYS IN6_IFF_TENTATIVE IFCAP_VLAN_HWCSUM IFAN_ARRIVAL IFCAP_TSO6 IFCAP_JUMBO_MTU IFCAP_TXRTLMT IN6_IFF_NODAD IFF_LOOPBACK IFF_RUNNING IFCAP_NOMAP IFCAP_POLLING IFF_LINK2 IFCAP_VXLAN_HWCSUM IFCAP_WOL_MAGIC IFF_PROMISC IFF_NOARP IFF_MULTICAST

IFF_ALLMULTI IFF_ALTPHYS IFF_BROADCAST IFF_CANTCONFIG IFF_DEBUG IFF_DYING IFF_KNOWSEPOCH IFF_LINK0 IFF_LINK1 IFF_LINK2 IFF_LOOPBACK IFF_MONITOR IFF_MULTICAST IFF_NOARP IFF_NOGROUP IFF_OACTIVE IFF_POINTOPOINT IFF_PPROMISC IFF_PROMISC IFF_RENAMING IFF_RUNNING IFF_SIMPLEX IFF_STATICARP IFF_UP

IN6_IFF_ANYCAST IN6_IFF_AUTOCONF IN6_IFF_DEPRECATED IN6_IFF_DETACHED IN6_IFF_DUPLICATED IN6_IFF_NODAD IN6_IFF_PREFER_SOURCE IN6_IFF_TEMPORARY IN6_IFF_TENTATIVE populated for BSD flavored systems

:all :afs :pfs :ifs :iffs :iffIN6 :iftype :scope

);

All of the AF_XXX and PF_XXX symbols available in local "sys/socket.h" plus usual aliases for AF_LOCAL i.e. (AF_FILE AF_UNIX PF_LOCAL PF_FILE PF_UNIX)

All of the IFxxxx and IN6_IF symbols in "net/if.h, netinet/in.h, netinet/in_var.h" and their includes.

Symbols may be accessed for their numeric value or their string name.

  i.e.  if ($family == AF_INET)
            do something...

    or  print AF_INET
    will product the string "inet"

The same holds true for:

        printf("family is %s",AF_INET);
    or  sprint("family is %s",AF_INET);

To print the numeric value of the SYMBOL do:

        print (0 + SYMBOL), "\n";

On systems supporting IPV6, these additional symbols are available which may be applied to the address type to determine the address attributes.

    IPV6_ADDR_ANY               unknown
    IPV6_ADDR_UNICAST           unicast
    IPV6_ADDR_MULTICAST         multicast
    IPV6_ADDR_ANYCAST           anycast
    IPV6_ADDR_LOOPBACK          loopback
    IPV6_ADDR_LINKLOCAL         link-local
    IPV6_ADDR_SITELOCAL         site-local
    IPV6_ADDR_COMPATv4          compat-v4
    IPV6_ADDR_SCOPE_MASK        scope-mask
    IPV6_ADDR_MAPPED            mapped
    IPV6_ADDR_RESERVED          reserved
    IPV6_ADDR_ULUA              uniq-lcl-unicast
    IPV6_ADDR_6TO4              6to4
    IPV6_ADDR_6BONE             6bone
    IPV6_ADDR_AGU               global-unicast
    IPV6_ADDR_UNSPECIFIED       unspecified
    IPV6_ADDR_SOLICITED_NODE    solicited-node
    IPV6_ADDR_ISATAP            ISATAP
    IPV6_ADDR_PRODUCTIVE        productive
    IPV6_ADDR_6TO4_MICROSOFT    6to4-ms
    IPV6_ADDR_TEREDO            teredo
    IPV6_ADDR_ORCHID            orchid
    IPV6_ADDR_NON_ROUTE_DOC     non-routeable-doc

    if ($type & IPV6_ADDR_xxxx) {
        print IPV6_ADDR_xxxx,"\n";
    }

These symbols may be equated to the scope of the address.

    RFC2373_GLOBAL              global-scope
    RFC2373_ORGLOCAL            org-local
    RFC2373_SITELOCAL           site-local
    RFC2373_LINKLOCAL           link-local
    RFC2373_NODELOCAL           loopback
    LINUX_COMPATv4              lx-compat-v4

    if ($scope eq RFC2373_xxxx) {
        print RFC2373_xxxx,"\n";
    }
  • :all Import all symbols
  • :afs Import all AF_XXX symbols
  • :pfs Import all PF_XXX symbols
  • :ifs Import all IFxxxx symbols
  • :iffs Import all IFF symbols
  • :iffIN6 Import all IN6_IFF symbols (BSD flavors only)
  • :iftype Import all IPV6 type symbols
  • :scope Import all IPV6 scope symbols

  • Net::Interface::NetSymbols::NI_ENDVAL();

    Reports the highest symbol value +1 of :all symbols above. Used for testing.

  • Net::Interface::NetSymbols::NI_UNIQUE();

    Returns a hash pointer to the AF_ or PF_ symbol values mapped to their character strings as defined for this architecture.

      i.e.
            0       => 'AF_UNSPEC',
            1       => 'AF_UNIX',
            2       => 'AF_INET',
            7       => 'AF_ISO',
            12      => 'AF_DECnet',
            16      => 'AF_APPLETALK',
            17      => 'AF_ROUTE',
            18      => 'AF_LINK',
            23      => 'AF_IPX',
            28      => 'AF_INET6',
            50      => 'IFQ_MAXLEN',
            64      => 'IFF_DRV_RUNNING',
            128     => 'IFF_NOARP',
            256     => 'IFF_PROMISC',
            512     => 'IFF_ALLMULTI',
            800     => 'IFSTATMAX',
            1024    => 'IFF_DRV_OACTIVE',
            2048    => 'IFF_SIMPLEX',
            4096    => 'IFF_LINK0',
            8192    => 'IFF_LINK1',
            16384   => 'IFF_LINK2',
            32768   => 'IFF_MULTICAST',
            65536   => 'IFF_CANTCONFIG',
            131072  => 'IFF_PPROMISC',
            262144  => 'IFF_MONITOR',
            524288  => 'IFF_STATICARP',
            1048576 => 'IFCAP_NETMAP',
            2097152 => 'IFF_DYING',
            4194304 => 'IFF_RENAMING',
            8388608 => 'IFF_NOGROUP',
            16777216        => 'IFCAP_TXRTLMT',
            33554432        => 'IFCAP_HWRXTSTMP',
            67108864        => 'IFCAP_NOMAP',
            134217728       => 'IFCAP_TXTLS4',
            268435456       => 'IFCAP_TXTLS6',
            536870912       => 'IFCAP_VXLAN_HWCSUM',
            1073741824      => 'IFCAP_VXLAN_HWTSO',
            2147483648      => 'IFCAP_TXTLS_RTLMT',
        

Michael Robinton, all rights reserved.

This library is free software. You can distribute it and/or modify it under the same terms as Perl itself.

Hey! The above document had some coding errors, which are explained below:
Around line 439:
You forgot a '=back' before '=head1'
2022-04-09 perl v5.32.1

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.