/usr/lib/perl5/nflog.pm is in libnflog-perl 0.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
package nflog;
use base qw(Exporter);
use base qw(DynaLoader);
package nflogc;
bootstrap nflog;
package nflog;
@EXPORT = qw();
# ---------- BASE METHODS -------------
package nflog;
sub TIEHASH {
my ($classname,$obj) = @_;
return bless $obj, $classname;
}
sub CLEAR { }
sub FIRSTKEY { }
sub NEXTKEY { }
sub FETCH {
my ($self,$field) = @_;
my $member_func = "swig_${field}_get";
$self->$member_func();
}
sub STORE {
my ($self,$field,$newval) = @_;
my $member_func = "swig_${field}_set";
$self->$member_func($newval);
}
sub this {
my $ptr = shift;
return tied(%$ptr);
}
# ------- FUNCTION WRAPPERS --------
package nflog;
*log_bindings_version = *nflogc::log_bindings_version;
############# Class : nflog::log ##############
package nflog::log;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( nflog );
%OWNER = ();
%ITERATORS = ();
*swig_dummy_get = *nflogc::log_dummy_get;
*swig_dummy_set = *nflogc::log_dummy_set;
*swig__h_get = *nflogc::log__h_get;
*swig__h_set = *nflogc::log__h_set;
*swig__gh_get = *nflogc::log__gh_get;
*swig__gh_set = *nflogc::log__gh_set;
*swig__cb_get = *nflogc::log__cb_get;
*swig__cb_set = *nflogc::log__cb_set;
*set_callback = *nflogc::log_set_callback;
*open = *nflogc::log_open;
*close = *nflogc::log_close;
*bind = *nflogc::log_bind;
*unbind = *nflogc::log_unbind;
*create_queue = *nflogc::log_create_queue;
*fast_open = *nflogc::log_fast_open;
*set_bufsiz = *nflogc::log_set_bufsiz;
*try_run = *nflogc::log_try_run;
sub new {
my $pkg = shift;
my $self = nflogc::new_log(@_);
bless $self, $pkg if defined($self);
}
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
return unless defined $self;
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
nflogc::delete_log($self);
delete $OWNER{$self};
}
}
sub DISOWN {
my $self = shift;
my $ptr = tied(%$self);
delete $OWNER{$ptr};
}
sub ACQUIRE {
my $self = shift;
my $ptr = tied(%$self);
$OWNER{$ptr} = 1;
}
############# Class : nflog::log_payload ##############
package nflog::log_payload;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( nflog );
%OWNER = ();
%ITERATORS = ();
*swig_data_get = *nflogc::log_payload_data_get;
*swig_data_set = *nflogc::log_payload_data_set;
*swig_len_get = *nflogc::log_payload_len_get;
*swig_len_set = *nflogc::log_payload_len_set;
*swig_id_get = *nflogc::log_payload_id_get;
*swig_id_set = *nflogc::log_payload_id_set;
*swig_gh_get = *nflogc::log_payload_gh_get;
*swig_gh_set = *nflogc::log_payload_gh_set;
*swig_nfad_get = *nflogc::log_payload_nfad_get;
*swig_nfad_set = *nflogc::log_payload_nfad_set;
*get_data = *nflogc::log_payload_get_data;
*get_nfmark = *nflogc::log_payload_get_nfmark;
*get_indev = *nflogc::log_payload_get_indev;
*get_outdev = *nflogc::log_payload_get_outdev;
*get_length = *nflogc::log_payload_get_length;
sub new {
my $pkg = shift;
my $self = nflogc::new_log_payload(@_);
bless $self, $pkg if defined($self);
}
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
return unless defined $self;
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
nflogc::delete_log_payload($self);
delete $OWNER{$self};
}
}
sub DISOWN {
my $self = shift;
my $ptr = tied(%$self);
delete $OWNER{$ptr};
}
sub ACQUIRE {
my $self = shift;
my $ptr = tied(%$self);
$OWNER{$ptr} = 1;
}
# ------- VARIABLE STUBS --------
package nflog;
1;
|