I am reading a wireshark dump file using Net::Pcap module,and I want to dump only the packets to the ethernet interface i tried using Net::RawIP module, I was caught up with this 'panic: sv_setpvn called with negative strlen at /usr/local/lib/perl/5.8.8/Net/RawIP.pm line 500.' error if i run the same code on a different machine
Is there any other module available to write the packets (frames) just to the local Ethernet interface(eth0), because I just want to simulate the exact scenario, my aim is not to send the packet to any external machine but to send only to the local Ethernet interface.
moreover that module must be free from this encoding issue, it has to process the packet as raw data while parsing the packet and preparing it to send to the Ethernet device.
because I didn't had success with the Net::RawIP::bset routine.
Any help is greatly appreciated.
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.
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.