Creating and sending a packet from a kernel module

Joshua Stewart (joshua.stewart@comcast.net)
Thu, 20 Mar 2003 20:46:00 -0500


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-28586-1048211402-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I'd like to create and send a brand new TCP SYN packet from a module.=20
Does anybody have an example of how to do this.

I've tried doing alloc_skb, filling in all the information I could
imagine needing in skb->data, but what is the minimal amount of stuff
needed by the other parts of the skb to get this packet moving?

Is there an easy way to create and own a TCP socket from a module that I
could send and receive on?

Thanks,
Josh

--=20
Joshua Stewart <joshua.stewart@comcast.net>

--=_courier-28586-1048211402-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA+em7Yw1XeqX2OxxURApSWAJ0azweDEVJfbVFWg2bPLC1L2eEefgCglbJq
R42BEtDApXdp/dIeGdXJTp8=
=TfKm
-----END PGP SIGNATURE-----

--=_courier-28586-1048211402-0001-2--