Both Net::Lorcon2 and the lorcon library it relies on look very much like abandonware, but on Ubuntu-20.04 I've now built and installed the
lorcon library from github and I've also built and installed
the Net-Lorcon2-2.03 module from CPAN.
The lorcon library issued a couple of compilation warnings, and neither
make check nor
make test don't run any tests.
This does not inspire confidence.
However, the Net-Lorcon2-2.03 module from CPAN built cleanly and passed tests, after I had installed a few netlink libraries using the package manager and re-built the lorcon library (which still issued compilation warnings).
NOTE: In addition to the CPAN version of Net-Lorcon2-2.03, there's also a
modified version by
Bpl.
But I'd like to deal with the CPAN version before I get to
Bpl's.
Here is the make test results for Net-Lorcon2-2.03 (from CPAN), perl-5.32.0:
$ make test
"/home/sisyphus/perl-5.32.0-d/bin/perl" -MExtUtils::Command::MM -e 'cp
+_nonempty' -- Lorcon2.bs blib/arch/auto/Net/Lorcon2/Lorcon2.bs 644
PERL_DL_NONLAZY=1 "/home/sisyphus/perl-5.32.0-d/bin/perl" "-MExtUtils:
+:Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches;
+ test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.t ........... ok
t/02-init.t .......... skipped: Set LORCON_IF and LORCON_INJ to a vali
+d interface and injector name to run these tests
t/03-device.t ........ skipped: Set LORCON_IF and LORCON_INJ to a vali
+d interface and injector name to run these tests
t/04-root.t .......... skipped: Set LORCON_IF and LORCON_INJ to a vali
+d interface and injector name and run as root to run these tests
t/05-pod-coverage.t .. ok
t/06-test-pod.t ...... ok
All tests successful.
Files=6, Tests=3, 1 wallclock secs ( 0.05 usr 0.01 sys + 0.49 cusr
+ 0.03 csys = 0.58 CPU)
Result: PASS
Before I proceed further, I would like to run those skipped tests.
How do I find valid interface and injector names that I can use ? (I have no idea what they are, and no idea if any exist on this system.)
According to lorcon_list_drivers(), drivers named 'madwifing', 'tuntap' and 'mac80211' were found.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.