Hi friend,
after some hours of works I think I've finally understood the problem, in few words in the source code
our @AS = qw(
driver
interface
_drv
_context
);
__PACKAGE__->cgBuildAccessorsScalar(\@AS);
__PACKAGE__->cgBuildIndices;
sub new {
my $self = shift->SUPER::new(
driver => "madwifing",
interface => "wlo1",
@_,
);
the @_ (under the "new" ) assign a value to $self->_drv and $self->_context, this explain the "undef" obtained in the previous posts, the output of this small program confirm it:
udo perl -e '
use Net::Lorcon2 qw( :subs );
my $lorcon = Net::Lorcon2->new();
use Data::Dumper;
print Dumper($lorcon);
'
outputs
$VAR1 = bless( [
'madwifing',
'wlo1',
\152948280,
\152839568
], 'Net::Lorcon2' );
including the $lorcon variable into the Net::Lorcon2::lorcon_open_inject( $lorcon ) still crash
but I think that the problem now stands in the BLESS reference, some hints?
Regards
Edoardo M |