Venerable fellow monks, I'm trying to fidle around tcp options.
sub initial_tcp { $n = Net::RawIP->new({ ip => { saddr => $srcip, daddr => $dstip, }, tcp => { source => $src, dest => $dst, syn => 1, }, }); $n->opset(tcp =>{ #Window Scale 9 x512 type => 0x0303, data => 0x09, } ); $n->send; $n >ethnew($intf); $n->ethset(source => $smac, dest => $dmac); $n->ethsend; }
I always get the following error message
./tcp-syn.pl Useless use of numeric gt (>) in void context at ./tcp-syn.pl line 38. Can't locate auto/Net/RawIP/opset.al in @INC (@INC contains: /etc/perl + /usr/lib/perl5/vendor_perl/5.8.8/i686-linux /usr/lib/perl5/vendor_pe +rl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/ +5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vend +or_perl/5.8.7/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/si +te_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl +5/site_perl /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr +/local/lib/site_perl .) at ./tcp-syn.pl line 32
What do I misse here?

In reply to RAWIP: uses of tcp options [opset] by kroupouk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.