Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
create custom network packet
M. R.
10/13/2007 7:47:00 AM
hi @all
I would like to create a custom network packet with:
layer 2: ethernet
layer 3: ip
At first, I want to create a ip packet and set some header fields (for
example the TOS-byte) by myself. After that, I take the created
ip-packet and nest it into a new ethernet packet, which I create too.
Also, I would like to change the header fields in the ethernet packet
(e.g. cos-field). Over a raw socket, I'll send the packet to a other
station in the network.
Has anyone a solution or any experience? thanks for help...
--
Posted via
http://www.ruby-...
.
3 Answers
Ari Brown
10/13/2007 3:15:00 PM
0
On Oct 13, 2007, at 3:46 AM, M. R. wrote:
> hi @all
>
> I would like to create a custom network packet with:
> layer 2: ethernet
> layer 3: ip
>
> At first, I want to create a ip packet and set some header fields (for
> example the TOS-byte) by myself. After that, I take the created
> ip-packet and nest it into a new ethernet packet, which I create too.
> Also, I would like to change the header fields in the ethernet packet
> (e.g. cos-field). Over a raw socket, I'll send the packet to a other
> station in the network.
>
> Has anyone a solution or any experience? thanks for help...
check out rubyforger. NOTICE THE EXTRA R
It's a GREAT library for *nix, and is nicely extracted.
http://rubyforger.ruby...
Ari
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.
M. R.
10/15/2007 6:34:00 AM
0
Ari Brown wrote:
> On Oct 13, 2007, at 3:46 AM, M. R. wrote:
>
http://rubyforger.ruby...
>
Hi Ari
Do you known, how can I install the libnet4r?
thanks...
--
Posted via
http://www.ruby-...
.
K. R.
10/25/2007 1:25:00 PM
0
K. R. wrote:
> Ari Brown wrote:
>> On Oct 13, 2007, at 3:46 AM, M. R. wrote:
>>
http://rubyforger.ruby...
>>
>
>
> Hi Ari
> Do you known, how can I install the libnet4r?
> thanks...
Yes, you can use make to compile and install this library...
When the installation is completed, you can compile and install the
rnet.c File. This file creates the libnet4r.so. The library libnet4r.so
is a pseudo-bridge, that translate the ruby-used methods to contact the
functions of the C-Library. So you can use the features of libnet in
ruby...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
create custom network packet
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password