From: Massimiliano Cialdi <cialdi@firenze.net>
To: linux-c-programming@vger.kernel.org
Cc: James Stevenson <james@stev.org>, syedk@intotoinc.com
Subject: Re: generating ethernet packets
Date: Tue, 6 Jan 2004 12:30:19 +0100 [thread overview]
Message-ID: <20040106123019.76fd7d22.cialdi@firenze.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0401050357350.19414-100000@jlap.stev.org>
On Mon, 5 Jan 2004 03:58:32 +0000 (GMT)
James Stevenson <james@stev.org> wrote:
> > 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()?
> 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?
> 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
--
Massimiliano Cialdi
cialdi@firenze.net
m.cialdi@oksys.it
next prev parent reply other threads:[~2004-01-06 11:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-30 14:35 generating ethernet packets Massimiliano Cialdi
2003-12-31 4:37 ` syedk
2003-12-31 13:47 ` Massimiliano Cialdi
2004-01-05 3:58 ` James Stevenson
2004-01-06 11:30 ` Massimiliano Cialdi [this message]
2004-01-07 9:22 ` Jan-Benedict Glaw
2003-12-31 7:01 ` Progga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040106123019.76fd7d22.cialdi@firenze.net \
--to=cialdi@firenze.net \
--cc=james@stev.org \
--cc=linux-c-programming@vger.kernel.org \
--cc=syedk@intotoinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).