Ok, I'm not sure of this
Well, if you're not sure of this, then are you really in a postition to be sending out faked ARP packets onto the wire?
I can't think of any reason why someone would normally want to do this,
so unless you can convince me that (a) you aren't up to no good, (b) there is a valid reason for doing this, then I'm not keen
to help you further.
Sorry,
Dave.
| [reply] |
My purposes could be.. arp poisoning, create an arp proxy.. and I would like to write a script for a gatway to permit to a host with different ip address (different classes) to connect.. etc. etc.. a strange project of my friend.
Can you help me?
| [reply] |
Hmmm... well since ARP isn't an IP type but sits directly
on top of the ethernet layer, you need to create a raw ethernet packet. I've never used Net::RawIP, but a quick
look at the documentation seems to imply the ethset, ethsend, and/or send_eth_frame methods may be what you need. You'll
need to construct the raw ARP packet yourself.
Dave.
| [reply] |