README
1This is Net::RawIP, a perl module can to manipulate raw IP packets,
2with an optional feature for manipulating Ethernet headers.
3
4NOTE: Ethernet related methods currently implemented only on Linux and *BSD!
5Help with port eth.c to other platforms is very appreciated.
6
7You need perl 5.004 or later to use this module.
8You need to have installed libpcap, available from:
9
10TBD
11
12If you are using Ubuntu you can install it by typing:
13
14 sudo apt-get install libpcap0.7-dev
15
16or
17
18 sudo apt-get install libpcap0.8-dev
19
20
21
22You install the module by running these commands:
23
24 perl Makefile.PL
25 make
26 make test
27 make install
28
29There are also some example scripts.
30
31Please report any bugs/suggestions to Sergey Kolychev <ksv@al.lg.ua>
32
33All files contained in this installation are Copyright (c) 1998-2000 Sergey
34Kolychev unless otherwise specified. All rights reserved.
35
36This library is free software; you can redistribute it and/or modify it under
37the same terms as Perl itself.
38
39One can install a development versions using CPAN.pm:
40
41cpan> install S/SZ/SZABGAB/Net-RawIP-0.21_03.tar.gz
42
43
44
45
46
README.Devel
1If you want to implement a subip protocol then read this,please.
2
3Let me to explain my propositions. I think that
4
51) There is no reason to implement all of the protocols in the
6one module.
7There are so many protocols.
8
92)There is a "generic" subclass which can be used for the implementing
10those subip protocols.
11
12You could to write the module for manipulate your desired protocol
13and use it with Net::RawIP.
14Let imagine that you have a module NetPacket::PROTO which know about
15a low level of the PROTO.
16
17Then
18
19######################
20#!/usr/bin/perl
21
22use Net::RawIP;
23use NetPacket::PROTO;
24
25$proto = new NetPacket::PROTO;
26$proto->set(.......);
27$datagramm = $proto->packet;
28
29$packet = new Net::RawIP({
30 ip => { protocol => NUMBER_OF_PROTO },
31 generic => { data => $datagramm }
32 });
33$packet->send;
34....
35....
36($datagramm) = $packet->get({generic => [qw(data)]});
37
38$proto->bset($datagramm);
39
40($field1,$field2) = $proto->get(.....);
41
42####################
43
44So you have to implement the methods (new,set,bset,get) for your desired
45protocol in your NetPacket::PROTO and you could use it with Net::RawIP.
46
47Is it ok for you ?
48
49Regards,
50 Sergey.
51
52