From: Gyoung-Yoon Noh Date: 2006-07-27T11:08:30+09:00 Subject: Re: bit-struct and constructing ARP messages. Sorry for misreading you post. I'd like to say that I haven't done such a thing before. However, I just found that arping[1] uses the libnet[2] library, which also has Ruby binding[3]. Sorry for telling without doing. [1]: http://www.habets.pp.se/synscan/programs.php?prog=arping [2]: http://www.packetfactory.net/libnet/ [3]: http://www.shmoo.com/~bmc/software/ruby/ Regards, On 7/26/06, Kevin Waters wrote: > Gyoung-Yoon Noh wrote: > > You can achieve the goal using Array#pack / String#unpack by > > hand. But there are already good libraries supporting C function > > calling and type conversion in Ruby: ruby-dl2[1], ruby-dlx[2]. > > > > [1]: > > http://rubyforge.org/cgi-bin/viewvc.cgi/ruby-dl2/doc/struct.txt?revision=1.2&root=ruby-dl2&view=markup > > [2]: http://ruby-dlx.rubyforge.org/ > > > > HTH, > > Array#pack / Array#unpack is useful for packaging the datagram yes, what > I want to know is what Class#method would I use to transmit an ARP > message contained in a datagram since it's not going to any TCP port, > it's just a broadcast arp message. > > -- > Posted via http://www.ruby-forum.com/. > > -- http://nohmad.sub-port.net