Socket/Netlink/Route_const.pm

filter: Statementstmt 86.6% 332 / 383 Branchbran 0.0% 0 / 28 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.7% 110 / 124 Podpod 0.0% 0 / 14 totaltotal 80.5% 442 / 549 CC 15 SCAR 7.0
CC
15
Cov
81%
pack_ifinfomsg
6.0
unpack_ifinfomsg
6.0
pack_rtnl_link_stats
6.0
CRAP 2.0
« IO/Socket/Netlink/Route.pm ↑ Summary Socket/Netlink/Route.pm »
1 package Socket::Netlink::Route;
2 # This module was generated automatically by ExtUtils::H2PM from lib/Socket/Netlink/Route_const.pm.PL
3  
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 push @EXPORT, 'NETLINK_ROUTE', 'RTM_NEWLINK', 'RTM_DELLINK', 'RTM_GETLINK', 'RTM_SETLINK', 'pack_ifinfomsg', 'unpack_ifinfomsg', 'IFLA_UNSPEC', 'IFLA_ADDRESS', 'IFLA_BROADCAST', 'IFLA_IFNAME', 'IFLA_MTU', 'IFLA_LINK', 'IFLA_QDISC', 'IFLA_STATS', 'IFLA_COST', 'IFLA_PRIORITY', 'IFLA_MASTER', 'IFLA_WIRELESS', 'IFLA_PROTINFO', 'IFLA_TXQLEN', 'IFLA_MAP', 'IFLA_WEIGHT', 'IFLA_OPERSTATE', 'IFLA_LINKMODE', 'IFLA_LINKINFO', 'IFLA_NET_NS_PID', 'pack_rtnl_link_stats', 'unpack_rtnl_link_stats', 'RTM_NEWADDR', 'RTM_DELADDR', 'RTM_GETADDR', 'pack_ifaddrmsg', 'unpack_ifaddrmsg', 'IFA_UNSPEC', 'IFA_ADDRESS', 'IFA_LOCAL', 'IFA_LABEL', 'IFA_BROADCAST', 'IFA_ANYCAST', 'IFA_CACHEINFO', 'pack_ifa_cacheinfo', 'unpack_ifa_cacheinfo', 'RTM_NEWROUTE', 'RTM_DELROUTE', 'RTM_GETROUTE', 'pack_rtmsg', 'unpack_rtmsg', 'RTN_UNSPEC', 'RTN_UNICAST', 'RTN_LOCAL', 'RTN_BROADCAST', 'RTN_ANYCAST', 'RTN_MULTICAST', 'RTN_BLACKHOLE', 'RTN_UNREACHABLE', 'RTN_PROHIBIT', 'RTN_THROW', 'RTN_NAT', 'RTN_XRESOLVE', 'RTPROT_UNSPEC', 'RTPROT_REDIRECT', 'RTPROT_KERNEL', 'RTPROT_BOOT', 'RTPROT_STATIC', 'RT_SCOPE_UNIVERSE', 'RT_SCOPE_SITE', 'RT_SCOPE_LINK', 'RT_SCOPE_HOST', 'RT_SCOPE_NOWHERE', 'RTM_F_NOTIFY', 'RTM_F_CLONED', 'RTM_F_EQUALIZE', 'RT_TABLE_UNSPEC', 'RT_TABLE_DEFAULT', 'RT_TABLE_MAIN', 'RT_TABLE_LOCAL', 'RTA_UNSPEC', 'RTA_DST', 'RTA_SRC', 'RTA_IIF', 'RTA_OIF', 'RTA_GATEWAY', 'RTA_PRIORITY', 'RTA_PREFSRC', 'RTA_METRICS', 'RTA_MULTIPATH', 'RTA_PROTOINFO', 'RTA_FLOW', 'RTA_CACHEINFO', 'RTM_NEWNEIGH', 'RTM_DELNEIGH', 'RTM_GETNEIGH', 'pack_ndmsg', 'unpack_ndmsg', 'NUD_INCOMPLETE', 'NUD_REACHABLE', 'NUD_STALE', 'NUD_DELAY', 'NUD_PROBE', 'NUD_FAILED', 'NUD_NOARP', 'NUD_PERMANENT', 'NTF_PROXY', 'NTF_ROUTER', 'NDA_UNSPEC', 'NDA_DST', 'NDA_LLADDR', 'NDA_CACHEINFO', 'pack_nda_cacheinfo', 'unpack_nda_cacheinfo', 'RTMGRP_LINK', 'RTMGRP_NOTIFY', 'RTMGRP_NEIGH', 'RTMGRP_TC', 'RTMGRP_IPV4_IFADDR', 'RTMGRP_IPV4_MROUTE', 'RTMGRP_IPV4_ROUTE', 'RTMGRP_IPV4_RULE', 'RTMGRP_IPV6_IFADDR', 'RTMGRP_IPV6_MROUTE', 'RTMGRP_IPV6_ROUTE', 'RTMGRP_IPV6_IFINFO';
6 1 ▶use constant NETLINK_ROUTE => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use constant RTM_NEWLINK => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use constant RTM_DELLINK => 17;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use constant RTM_GETLINK => 18;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use constant RTM_SETLINK => 19;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub pack_ifinfomsg
13 0 ▶{
Subroutine pack_ifinfomsg: not called CC=2 SCAR=17.9
Pod undocumented
14 0 ▶ @_ >= 5 or croak "usage: pack_ifinfomsg(ifi_family, ifi_type, ifi_index, ifi_flags, ifi_change, [tail])";
Branch: 1 branch
BranchTrueFalseTotal
@_ >= 5 or croak("usage: pack_ifinfomsg(ifi_family, ifi_type, ifi_index, ifi_flags, ifi_change, [tail])") 0 0 0
15 0 my @v = @_;
16 0 pack "C xS l L L a*", @v;
17 }
18  
19 sub unpack_ifinfomsg
20 0 ▶{
Subroutine unpack_ifinfomsg: not called CC=2 SCAR=17.9
Pod undocumented
21 0 ▶ length $_[0] >= 16 or croak "unpack_ifinfomsg: expected 16 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] >= 16 or croak('unpack_ifinfomsg: expected 16 bytes, got ' . length($_[0])) 0 0 0
22 0 my @v = unpack "C xS l L L a*", $_[0];
23 0 @v;
24 }
25 1 ▶use constant IFLA_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use constant IFLA_ADDRESS => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 ▶use constant IFLA_BROADCAST => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use constant IFLA_IFNAME => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 ▶use constant IFLA_MTU => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use constant IFLA_LINK => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use constant IFLA_QDISC => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use constant IFLA_STATS => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 1 ▶use constant IFLA_COST => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 1 ▶use constant IFLA_PRIORITY => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
35 1 ▶use constant IFLA_MASTER => 10;
Subroutine BEGIN: called CC=1 SCAR=0.0
36 1 ▶use constant IFLA_WIRELESS => 11;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 1 ▶use constant IFLA_PROTINFO => 12;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶use constant IFLA_TXQLEN => 13;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 ▶use constant IFLA_MAP => 14;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 1 ▶use constant IFLA_WEIGHT => 15;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 1 ▶use constant IFLA_OPERSTATE => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 1 ▶use constant IFLA_LINKMODE => 17;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 1 ▶use constant IFLA_LINKINFO => 18;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 1 ▶use constant IFLA_NET_NS_PID => 19;
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 sub pack_rtnl_link_stats
47 0 ▶{
Subroutine pack_rtnl_link_stats: not called CC=2 SCAR=17.9
Pod undocumented
48 0 ▶ ref($_[0]) eq "HASH" or croak "usage: pack_rtnl_link_stats(\%args)";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq "HASH" or croak("usage: pack_rtnl_link_stats(%args)") 0 0 0
49 0 my @v = @{$_[0]}{'rx_packets', 'tx_packets', 'rx_bytes', 'tx_bytes', 'rx_errors', 'tx_errors', 'rx_dropped', 'tx_dropped', 'multicast', 'collisions', 'rx_length_errors', 'rx_over_errors', 'rx_crc_errors', 'rx_frame_errors', 'rx_fifo_errors', 'rx_missed_errors', 'tx_aborted_errors', 'tx_carrier_errors', 'tx_fifo_errors', 'tx_heartbeat_errors', 'tx_window_errors', 'rx_compressed', 'tx_compressed'};
50 0 pack "L L L L L L L L L L L L L L L L L L L L L L L x4", @v;
51 }
52  
53 sub unpack_rtnl_link_stats
54 0 ▶{
Subroutine unpack_rtnl_link_stats: not called CC=2 SCAR=17.9
Pod undocumented
55 0 ▶ length $_[0] == 96 or croak "unpack_rtnl_link_stats: expected 96 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] == 96 or croak('unpack_rtnl_link_stats: expected 96 bytes, got ' . length($_[0])) 0 0 0
56 0 my @v = unpack "L L L L L L L L L L L L L L L L L L L L L L L x4", $_[0];
57 0 my %ret; @ret{'rx_packets', 'tx_packets', 'rx_bytes', 'tx_bytes', 'rx_errors', 'tx_errors', 'rx_dropped', 'tx_dropped', 'multicast', 'collisions', 'rx_length_errors', 'rx_over_errors', 'rx_crc_errors', 'rx_frame_errors', 'rx_fifo_errors', 'rx_missed_errors', 'tx_aborted_errors', 'tx_carrier_errors', 'tx_fifo_errors', 'tx_heartbeat_errors', 'tx_window_errors', 'rx_compressed', 'tx_compressed'} = @v;
58 0 \%ret;
59 }
60 1 ▶use constant RTM_NEWADDR => 20;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 ▶use constant RTM_DELADDR => 21;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 1 ▶use constant RTM_GETADDR => 22;
Subroutine BEGIN: called CC=1 SCAR=0.0
63  
64 sub pack_ifaddrmsg
65 0 ▶{
Subroutine pack_ifaddrmsg: not called CC=2 SCAR=17.9
Pod undocumented
66 0 ▶ @_ >= 5 or croak "usage: pack_ifaddrmsg(ifa_family, ifa_prefixlen, ifa_flags, ifa_scope, ifa_index, [tail])";
Branch: 1 branch
BranchTrueFalseTotal
@_ >= 5 or croak("usage: pack_ifaddrmsg(ifa_family, ifa_prefixlen, ifa_flags, ifa_scope, ifa_index, [tail])") 0 0 0
67 0 my @v = @_;
68 0 pack "C C C C L a*", @v;
69 }
70  
71 sub unpack_ifaddrmsg
72 0 ▶{
Subroutine unpack_ifaddrmsg: not called CC=2 SCAR=17.9
Pod undocumented
73 0 ▶ length $_[0] >= 8 or croak "unpack_ifaddrmsg: expected 8 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] >= 8 or croak('unpack_ifaddrmsg: expected 8 bytes, got ' . length($_[0])) 0 0 0
74 0 my @v = unpack "C C C C L a*", $_[0];
75 0 @v;
76 }
77 1 ▶use constant IFA_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
78 1 ▶use constant IFA_ADDRESS => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
79 1 ▶use constant IFA_LOCAL => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
80 1 ▶use constant IFA_LABEL => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶use constant IFA_BROADCAST => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 ▶use constant IFA_ANYCAST => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶use constant IFA_CACHEINFO => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
84  
85 sub pack_ifa_cacheinfo
86 0 ▶{
Subroutine pack_ifa_cacheinfo: not called CC=2 SCAR=17.9
Pod undocumented
87 0 ▶ ref($_[0]) eq "HASH" or croak "usage: pack_ifa_cacheinfo(\%args)";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq "HASH" or croak("usage: pack_ifa_cacheinfo(%args)") 0 0 0
88 0 my @v = @{$_[0]}{'ifa_prefered', 'ifa_valid', 'cstamp', 'tstamp'};
89 0 pack "L L L L ", @v;
90 }
91  
92 sub unpack_ifa_cacheinfo
93 0 ▶{
Subroutine unpack_ifa_cacheinfo: not called CC=2 SCAR=17.9
Pod undocumented
94 0 ▶ length $_[0] == 16 or croak "unpack_ifa_cacheinfo: expected 16 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] == 16 or croak('unpack_ifa_cacheinfo: expected 16 bytes, got ' . length($_[0])) 0 0 0
95 0 my @v = unpack "L L L L ", $_[0];
96 0 my %ret; @ret{'ifa_prefered', 'ifa_valid', 'cstamp', 'tstamp'} = @v;
97 0 \%ret;
98 }
99 1 ▶use constant RTM_NEWROUTE => 24;
Subroutine BEGIN: called CC=1 SCAR=0.0
100 1 ▶use constant RTM_DELROUTE => 25;
Subroutine BEGIN: called CC=1 SCAR=0.0
101 1 ▶use constant RTM_GETROUTE => 26;
Subroutine BEGIN: called CC=1 SCAR=0.0
102  
103 sub pack_rtmsg
104 0 ▶{
Subroutine pack_rtmsg: not called CC=2 SCAR=17.9
Pod undocumented
105 0 ▶ @_ >= 9 or croak "usage: pack_rtmsg(rtm_family, rtm_dst_len, rtm_src_len, rtm_tos, rtm_table, rtm_protocol, rtm_scope, rtm_type, rtm_flags, [tail])";
Branch: 1 branch
BranchTrueFalseTotal
@_ >= 9 or croak("usage: pack_rtmsg(rtm_family, rtm_dst_len, rtm_src_len, rtm_tos, rtm_table, rtm_protocol, rtm_scope, rtm_type, rtm_flags, [tail])") 0 0 0
106 0 my @v = @_;
107 0 pack "C C C C C C C C L a*", @v;
108 }
109  
110 sub unpack_rtmsg
111 0 ▶{
Subroutine unpack_rtmsg: not called CC=2 SCAR=17.9
Pod undocumented
112 0 ▶ length $_[0] >= 12 or croak "unpack_rtmsg: expected 12 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] >= 12 or croak('unpack_rtmsg: expected 12 bytes, got ' . length($_[0])) 0 0 0
113 0 my @v = unpack "C C C C C C C C L a*", $_[0];
114 0 @v;
115 }
116 1 ▶use constant RTN_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
117 1 ▶use constant RTN_UNICAST => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
118 1 ▶use constant RTN_LOCAL => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
119 1 ▶use constant RTN_BROADCAST => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
120 1 ▶use constant RTN_ANYCAST => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
121 1 ▶use constant RTN_MULTICAST => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
122 1 ▶use constant RTN_BLACKHOLE => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 1 ▶use constant RTN_UNREACHABLE => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 ▶use constant RTN_PROHIBIT => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 ▶use constant RTN_THROW => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
126 1 ▶use constant RTN_NAT => 10;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 1 ▶use constant RTN_XRESOLVE => 11;
Subroutine BEGIN: called CC=1 SCAR=0.0
128 1 ▶use constant RTPROT_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 1 ▶use constant RTPROT_REDIRECT => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
130 1 ▶use constant RTPROT_KERNEL => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
131 1 ▶use constant RTPROT_BOOT => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
132 1 ▶use constant RTPROT_STATIC => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
133 1 ▶use constant RT_SCOPE_UNIVERSE => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
134 1 ▶use constant RT_SCOPE_SITE => 200;
Subroutine BEGIN: called CC=1 SCAR=0.0
135 1 ▶use constant RT_SCOPE_LINK => 253;
Subroutine BEGIN: called CC=1 SCAR=0.0
136 1 ▶use constant RT_SCOPE_HOST => 254;
Subroutine BEGIN: called CC=1 SCAR=0.0
137 1 ▶use constant RT_SCOPE_NOWHERE => 255;
Subroutine BEGIN: called CC=1 SCAR=0.0
138 1 ▶use constant RTM_F_NOTIFY => 256;
Subroutine BEGIN: called CC=1 SCAR=0.0
139 1 ▶use constant RTM_F_CLONED => 512;
Subroutine BEGIN: called CC=1 SCAR=0.0
140 1 ▶use constant RTM_F_EQUALIZE => 1024;
Subroutine BEGIN: called CC=1 SCAR=0.0
141 1 ▶use constant RT_TABLE_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
142 1 ▶use constant RT_TABLE_DEFAULT => 253;
Subroutine BEGIN: called CC=1 SCAR=0.0
143 1 ▶use constant RT_TABLE_MAIN => 254;
Subroutine BEGIN: called CC=1 SCAR=0.0
144 1 ▶use constant RT_TABLE_LOCAL => 255;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 1 ▶use constant RTA_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 1 ▶use constant RTA_DST => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
147 1 ▶use constant RTA_SRC => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
148 1 ▶use constant RTA_IIF => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 1 ▶use constant RTA_OIF => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
150 1 ▶use constant RTA_GATEWAY => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
151 1 ▶use constant RTA_PRIORITY => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 1 ▶use constant RTA_PREFSRC => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
153 1 ▶use constant RTA_METRICS => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
154 1 ▶use constant RTA_MULTIPATH => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
155 1 ▶use constant RTA_PROTOINFO => 10;
Subroutine BEGIN: called CC=1 SCAR=0.0
156 1 ▶use constant RTA_FLOW => 11;
Subroutine BEGIN: called CC=1 SCAR=0.0
157 1 ▶use constant RTA_CACHEINFO => 12;
Subroutine BEGIN: called CC=1 SCAR=0.0
158 1 ▶use constant RTM_NEWNEIGH => 28;
Subroutine BEGIN: called CC=1 SCAR=0.0
159 1 ▶use constant RTM_DELNEIGH => 29;
Subroutine BEGIN: called CC=1 SCAR=0.0
160 1 ▶use constant RTM_GETNEIGH => 30;
Subroutine BEGIN: called CC=1 SCAR=0.0
161  
162 sub pack_ndmsg
163 0 ▶{
Subroutine pack_ndmsg: not called CC=2 SCAR=17.9
Pod undocumented
164 0 ▶ @_ >= 5 or croak "usage: pack_ndmsg(ndm_family, ndm_ifindex, ndm_state, ndm_flags, ndm_type, [tail])";
Branch: 1 branch
BranchTrueFalseTotal
@_ >= 5 or croak("usage: pack_ndmsg(ndm_family, ndm_ifindex, ndm_state, ndm_flags, ndm_type, [tail])") 0 0 0
165 0 my @v = @_;
166 0 pack "C xxxl S C C a*", @v;
167 }
168  
169 sub unpack_ndmsg
170 0 ▶{
Subroutine unpack_ndmsg: not called CC=2 SCAR=17.9
Pod undocumented
171 0 ▶ length $_[0] >= 12 or croak "unpack_ndmsg: expected 12 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] >= 12 or croak('unpack_ndmsg: expected 12 bytes, got ' . length($_[0])) 0 0 0
172 0 my @v = unpack "C xxxl S C C a*", $_[0];
173 0 @v;
174 }
175 1 ▶use constant NUD_INCOMPLETE => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
176 1 ▶use constant NUD_REACHABLE => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
177 1 ▶use constant NUD_STALE => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
178 1 ▶use constant NUD_DELAY => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
179 1 ▶use constant NUD_PROBE => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
180 1 ▶use constant NUD_FAILED => 32;
Subroutine BEGIN: called CC=1 SCAR=0.0
181 1 ▶use constant NUD_NOARP => 64;
Subroutine BEGIN: called CC=1 SCAR=0.0
182 1 ▶use constant NUD_PERMANENT => 128;
Subroutine BEGIN: called CC=1 SCAR=0.0
183 1 ▶use constant NTF_PROXY => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
184 1 ▶use constant NTF_ROUTER => 128;
Subroutine BEGIN: called CC=1 SCAR=0.0
185 1 ▶use constant NDA_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
186 1 ▶use constant NDA_DST => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
187 1 ▶use constant NDA_LLADDR => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
188 1 ▶use constant NDA_CACHEINFO => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
189  
190 sub pack_nda_cacheinfo
191 0 ▶{
Subroutine pack_nda_cacheinfo: not called CC=2 SCAR=17.9
Pod undocumented
192 0 ▶ ref($_[0]) eq "HASH" or croak "usage: pack_nda_cacheinfo(\%args)";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq "HASH" or croak("usage: pack_nda_cacheinfo(%args)") 0 0 0
193 0 my @v = @{$_[0]}{'ndm_confirmed', 'ndm_used', 'ndm_updated', 'ndm_refcnt'};
194 0 pack "L L L L ", @v;
195 }
196  
197 sub unpack_nda_cacheinfo
198 0 ▶{
Subroutine unpack_nda_cacheinfo: not called CC=2 SCAR=17.9
Pod undocumented
199 0 ▶ length $_[0] == 16 or croak "unpack_nda_cacheinfo: expected 16 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] == 16 or croak('unpack_nda_cacheinfo: expected 16 bytes, got ' . length($_[0])) 0 0 0
200 0 my @v = unpack "L L L L ", $_[0];
201 0 my %ret; @ret{'ndm_confirmed', 'ndm_used', 'ndm_updated', 'ndm_refcnt'} = @v;
202 0 \%ret;
203 }
204 1 ▶use constant RTMGRP_LINK => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
205 1 ▶use constant RTMGRP_NOTIFY => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
206 1 ▶use constant RTMGRP_NEIGH => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
207 1 ▶use constant RTMGRP_TC => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
208 1 ▶use constant RTMGRP_IPV4_IFADDR => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
209 1 ▶use constant RTMGRP_IPV4_MROUTE => 32;
Subroutine BEGIN: called CC=1 SCAR=0.0
210 1 ▶use constant RTMGRP_IPV4_ROUTE => 64;
Subroutine BEGIN: called CC=1 SCAR=0.0
211 1 ▶use constant RTMGRP_IPV4_RULE => 128;
Subroutine BEGIN: called CC=1 SCAR=0.0
212 1 ▶use constant RTMGRP_IPV6_IFADDR => 256;
Subroutine BEGIN: called CC=1 SCAR=0.0
213 1 ▶use constant RTMGRP_IPV6_MROUTE => 512;
Subroutine BEGIN: called CC=1 SCAR=0.0
214 1 ▶use constant RTMGRP_IPV6_ROUTE => 1024;
Subroutine BEGIN: called CC=1 SCAR=0.0
215 1 ▶use constant RTMGRP_IPV6_IFINFO => 2048;
Subroutine BEGIN: called CC=1 SCAR=0.0
216  
217 1 1;
« IO/Socket/Netlink/Route.pm ↑ Summary Socket/Netlink/Route.pm »