• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

RawIP/H29-Oct-2008-138105

examples/H29-Oct-2008-586420

lib/Net/H29-Oct-2008-1,258584

t/H29-Oct-2008-506329

ChangesH A D29-Oct-20088.6 KiB251196

MANIFESTH A D21-Oct-2008762 5247

MANIFEST.SKIPH A D21-Oct-2008332 2723

META.ymlH A D29-Oct-2008724 2120

Makefile.PLH A D22-Oct-20082.7 KiB10079

READMEH A D03-Apr-20071.1 KiB4624

README.DevelH A D03-Apr-20071.2 KiB5235

RawIP.xsH A D20-Oct-200841.5 KiB1,5911,398

TODOH A D03-Apr-2007722 2719

eth.cH A D03-Apr-20076.9 KiB288247

ifaddrlist.cH A D03-Apr-20073.1 KiB128113

ifaddrlist.hH A D03-Apr-2007138 1611

ip.hH A D03-Apr-2007413 2221

rdev.cH A D03-Apr-20075 KiB183173

solaris.hH A D03-Apr-2007479 3012

typemapH A D03-Apr-2007299 1515

util.cH A D03-Apr-20073.8 KiB194163

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