All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Stevenson <james@stev.org>
To: Massimiliano Cialdi <cialdi@firenze.net>
Cc: linux-c-programming@vger.kernel.org, syedk <syedk@intotoinc.com>
Subject: Re: generating ethernet packets
Date: Mon, 5 Jan 2004 03:58:32 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0401050357350.19414-100000@jlap.stev.org> (raw)
In-Reply-To: <20031231144746.7eade402.cialdi@firenze.net>


> > 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


  reply	other threads:[~2004-01-05  3:58 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 [this message]
2004-01-06 11:30       ` Massimiliano Cialdi
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=Pine.LNX.4.44.0401050357350.19414-100000@jlap.stev.org \
    --to=james@stev.org \
    --cc=cialdi@firenze.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.