generating ethernet packets
I need to generate custom ethernet packets. I want to test a protocol. How can I send my custom ethernet packets through the network? Do I need libpcap?
thanks
Signature · 3 lines
Massimiliano Cialdi [email protected] [email protected]
u can find a tool named nemesis in packetfactory.net.. after installing it u can generate custom ethernet traffic. If u want to do it on your own u can use raw sockets. otherwise u can use libnet
luv and seasons greetings
Syed SK
Quoted 13 lines · Massimiliano Cialdi
I need to generate custom ethernet packets. I want to test a protocol. How can I send my custom ethernet packets through the network? Do I need libpcap?
thanks
Signature · 7 lines
Massimiliano Cialdi [email protected] [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Massimiliano Cialdi
I need to generate custom ethernet packets. I want to test a protocol. How can I send my custom ethernet packets through the network? Do I need libpcap?
Probably, the combination of ping's "-p" and "-s" option can send custom
packets.
Khoda Hafez
Progga
Quoted 1 line · On 31 Dec 2003 10:07:57 +0530 syedk <[email protected]> wrote:
If u want to do it on your own u can use raw sockets.
How can I generate an ethernet frame (with custom payload) with raw sockets?
thanks
Signature · 3 lines
Massimiliano Cialdi [email protected] [email protected]
Quoted 3 lines
Quoted 2 lines
If u want to do it on your own u can use raw sockets.
How can I generate an ethernet frame (with custom payload) with raw sockets?
Open a raw socket using the socket function.
Then use write to put the packet on the wire.
iirc there are 100's of example on doing this
James
Quoted 2 lines · On Mon, 5 Jan 2004 03:58:32 +0000 (GMT) James Stevenson <[email protected]> wrote:
Quoted 1 line
How can I generate an ethernet frame (with custom payload) with raw sockets?
Open a raw socket using the socket function.
Which parameters do I need to pass to socket()?
Quoted 1 line
Then use write to put the packet on the wire.
How can I be sure that the datas will go on eth0 and not on ppp0?
Quoted 1 line
iirc there are 100's of example on doing this
where are all these examples?
it is also possible to generate an ethernet frame with wrong crc?
thanks
Signature · 3 lines
Massimiliano Cialdi [email protected] [email protected]
On Tue, 2004-01-06 12:30:19 +0100, Massimiliano Cialdi <[email protected]> wrote in message <[email protected]>:
Quoted 5 lines
Quoted 1 line · On Mon, 5 Jan 2004 03:58:32 +0000 (GMT) James Stevenson <[email protected]> wrote:
iirc there are 100's of example on doing this
where are all these examples?
Mailing lists aren't for saving you from asking some search engines. Try this and read the first 20 hits.
Quoted 1 line
it is also possible to generate an ethernet frame with wrong crc?
Don't *ask*! That's something that you can easily try after getting your basic program ready. Just prepare a wrongly CRCed frame and try to send it. While doing so, let a tcpdump run on the local machine as well as on some remote machine.
Oh, and results may be surprising.
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));