in reply to Net::RawIP question

The source-code to any CPAN package will probably be found in the .cpan/build directory (note the leading period, indicating a hidden directory or file) once you have installed the package.

For instance:   find ~/.cpan -iname \*RawIP\*

(Gee, I do know it by heart...!)

Replies are listed 'Best First'.
Re^2: Net::RawIP question
by targetsmart (Curate) on Mar 05, 2009 at 17:04 UTC
    I found an XS file /root/.cpan/build/Net-RawIP-0.25/RawIP.xs
    It contains this definition for the routine
    void send_eth_packet(fd,eth_device,pkt,flag) int fd char* eth_device SV* pkt int flag CODE: send_eth_packet(fd, eth_device, (char*)SvPV(pkt,PL_na), SvCUR(pkt) +,flag);
    but here too I am missing the actual code of the C function
    UPDATE
    I got some C code from this file http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-RawIP-0.25.tar.gz
    thanks.

    Vivek
    -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.