blib/lib/Socket/Netlink/Generic_const.pm

filter: Statementstmt 100% 86 / 86 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 28 / 28 Podpod 100% 2 / 2 totaltotal 98.3% 118 / 120 CC 3 SCAR 1.3
CC
3
Cov
98%
pack_genlmsghdr
2.0
unpack_genlmsghdr
2.0
BEGIN
1.0
CRAP 1.1
« blib/lib/IO/Socket/Netlink/Generic.pm ↑ Summary lib/Socket/Netlink.xs »
1 package Socket::Netlink::Generic;
2 # This module was generated automatically by ExtUtils::H2PM from lib/Socket/Netlink/Generic_const.pm.PL
3  
4 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 push @EXPORT, 'NETLINK_GENERIC', 'pack_genlmsghdr', 'unpack_genlmsghdr', 'CTRL_CMD_UNSPEC', 'CTRL_CMD_NEWFAMILY', 'CTRL_CMD_DELFAMILY', 'CTRL_CMD_GETFAMILY', 'CTRL_CMD_NEWOPS', 'CTRL_CMD_DELOPS', 'CTRL_CMD_GETOPS', 'CTRL_ATTR_UNSPEC', 'CTRL_ATTR_FAMILY_ID', 'CTRL_ATTR_FAMILY_NAME', 'CTRL_CMD_NEWMCAST_GRP', 'CTRL_CMD_DELMCAST_GRP', 'CTRL_CMD_GETMCAST_GRP', 'CTRL_ATTR_VERSION', 'CTRL_ATTR_HDRSIZE', 'CTRL_ATTR_MAXATTR', 'CTRL_ATTR_OPS', 'CTRL_ATTR_MCAST_GROUPS', 'CTRL_ATTR_OP_UNSPEC', 'CTRL_ATTR_OP_ID', 'CTRL_ATTR_OP_FLAGS', 'CTRL_ATTR_MCAST_GRP_UNSPEC', 'CTRL_ATTR_MCAST_GRP_NAME', 'CTRL_ATTR_MCAST_GRP_ID';
6 2 ▶use constant NETLINK_GENERIC => 16;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub pack_genlmsghdr
9 5 ▶{
Subroutine pack_genlmsghdr: called CC=2 SCAR=7.1
Pod documented
10 5 ▶ @_ >= 2 or croak "usage: pack_genlmsghdr(cmd, version, [tail])";
Branch: 1 branch
BranchTrueFalseTotal
@_ >= 2 or croak("usage: pack_genlmsghdr(cmd, version, [tail])") 5 0 5
11 5 my @v = @_;
12 5 pack "C C x2a*", @v;
13 }
14  
15 sub unpack_genlmsghdr
16 2 ▶{
Subroutine unpack_genlmsghdr: called CC=2 SCAR=7.1
Pod documented
17 2 ▶ length $_[0] >= 4 or croak "unpack_genlmsghdr: expected 4 bytes, got " . length $_[0];
Branch: 1 branch
BranchTrueFalseTotal
length $_[0] >= 4 or croak('unpack_genlmsghdr: expected 4 bytes, got ' . length($_[0])) 2 0 2
18 2 my @v = unpack "C C x2a*", $_[0];
19 2 @v;
20 }
21 2 ▶use constant CTRL_CMD_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use constant CTRL_CMD_NEWFAMILY => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 ▶use constant CTRL_CMD_DELFAMILY => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶use constant CTRL_CMD_GETFAMILY => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 ▶use constant CTRL_CMD_NEWOPS => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 2 ▶use constant CTRL_CMD_DELOPS => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 2 ▶use constant CTRL_CMD_GETOPS => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 2 ▶use constant CTRL_ATTR_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 2 ▶use constant CTRL_ATTR_FAMILY_ID => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 2 ▶use constant CTRL_ATTR_FAMILY_NAME => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 2 ▶use constant CTRL_CMD_NEWMCAST_GRP => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 2 ▶use constant CTRL_CMD_DELMCAST_GRP => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 2 ▶use constant CTRL_CMD_GETMCAST_GRP => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 2 ▶use constant CTRL_ATTR_VERSION => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
35 2 ▶use constant CTRL_ATTR_HDRSIZE => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
36 2 ▶use constant CTRL_ATTR_MAXATTR => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 2 ▶use constant CTRL_ATTR_OPS => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 2 ▶use constant CTRL_ATTR_MCAST_GROUPS => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 2 ▶use constant CTRL_ATTR_OP_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 2 ▶use constant CTRL_ATTR_OP_ID => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 2 ▶use constant CTRL_ATTR_OP_FLAGS => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 2 ▶use constant CTRL_ATTR_MCAST_GRP_UNSPEC => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 2 ▶use constant CTRL_ATTR_MCAST_GRP_NAME => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 2 ▶use constant CTRL_ATTR_MCAST_GRP_ID => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 2 1;
« blib/lib/IO/Socket/Netlink/Generic.pm ↑ Summary lib/Socket/Netlink.xs »