Nope, that wasn't it but I you did start to get me thinking about the original Socket module. I checked the changelog of Socket6 and saw that they made the export of AF_INET6 optional in the Socket6 module I was building. It's optional because in perl 5.10 the Socket module was exporting AF_INET6 and then were would be a conflict with the Socket6 export. I removed the check making it 'optional' since I am using perl 5.82.
Here are the lines I changed in Socket6.pm:
Original:
push @EXPORT, qw(AF_INET6) unless defined Socket::AF_INET6;
push @EXPORT, qw(PF_INET6) unless defined Socket::PF_INET6;
Fixed:
push @EXPORT, qw(AF_INET6);
push @EXPORT, qw(PF_INET6);
Now I don't get the error that AF_INET6 isn't defined I've tested that I can indeed communicate via SNMP using an IPv6 address. Hooray!
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.