question about Net::RawIP's generic ARGPROTO 
Author Message
 question about Net::RawIP's generic ARGPROTO

I have a question regarding the subject. I am not sure whether
this is a problem with the module or if I am using it improperly.
I am attempting to send an RSVP (rfc2205) packet using the
generic ARGPROTO.
Here is the code I am using to send:

use Net::RawIP;

my $vers_and_flags = 1 & 0x00;
my $data = pack('C', $vers_and_flags) . pack('C', 1) . pack('n',
0) . pack('C', 64) . pack('n', 7);

$a = new Net::RawIP;
$a->set({ip => {tos => 0x00,
                             frag_off => 0x00,
                             protocol => 0x2e,
                             saddr => '192.168.9.28',
                             daddr => '192.168.9.70'},
                             generic => {data => $data}});
$a->send;

I then sniff the packet with tcpdump and get:

13:42:32.913171 < accord > grandprix: RSVP
    4500 0028 c6ab 0000 402e 204a c0a8 091c
    c0a8 0946 0000 0000 0000 0000 0000 0000
    5000 ffff 1c0a 0000 0000 0000 0000

Now, it looks to me like that is the proper IP header, followed
by what looks like the default TCP header and maybe some spare
0x00's. I don't ever see my $data in the packet. Is this a bug in
the code or (more likely) am I using this incorrectly? If so, how
would something like this be done? Thanks in advance for any help
you can give.

Charley Follett
Caspian Networks

-----------------------------------------------------------

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.*-*-*.com/



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. net::rawip question

2. Building Net::RawIP

3. Net::RawIP make

4. Any other modules for win2k like Net::RawIP

5. Sending data with Net::RawIP

6. Net::RawIP anybody can help?

7. Net::RawIP equivalent in Win32?

8. perl-Net-RawIP-0.09d-1.i386.rpm

9. Net::RawIP anybody can help?

10. Sending data with Net::RawIP

11. Net::RawIP

12. Net::RawIP

 

 
Powered by phpBB® Forum Software