From: Taras <taras.judge@shaw.ca>
To: Jonathan Bryant <jtbryant@valdosta.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Raw Sockets
Date: Thu, 06 Oct 2005 20:05:47 -0700 [thread overview]
Message-ID: <4345E60B.2050806@shaw.ca> (raw)
In-Reply-To: <1128632013.24718.4.camel@starlight>
Hi,
I don't think you can use SOCK_RAW in pure ocaml. I spent a few minutes
on it, but never had time to get very far.
http://glek.net/subversion/packetml/
That contains a simple ocaml program(with a c function to setup the
socket) that sends a packet out.
That has basic ocaml code needed to send a packet and contains functions
for making packets too. Code comes from the basic network stack in dst,
I just never factored out packet parsing functions properly.
Taras
Jonathan Bryant wrote:
>Does anybody have any information on using SOCK_RAW in OCaml? At this
>level, things like byte ordering matter, so I would like to know if
>OCaml handles this automatically or not, as well as any other gotchas
>involved with using raw sockets in OCaml. Also, are there any
>structures for handling Ethernet/IP/TCP headers already written? Maybe
>in another library? Or am I going to have to write these myself?
>
>Thanks,
>--Jonathan
>
>_______________________________________________
>Caml-list mailing list. Subscription management:
>http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
>Archives: http://caml.inria.fr
>Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
next prev parent reply other threads:[~2005-10-07 3:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 20:53 Jonathan Bryant
2005-10-07 3:05 ` Taras [this message]
2005-10-07 9:56 ` [Caml-list] " Oliver Bandel
2005-10-07 13:32 ` Jonathan Bryant
2005-10-07 17:34 ` Nicolas Cannasse
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=4345E60B.2050806@shaw.ca \
--to=taras.judge@shaw.ca \
--cc=caml-list@yquem.inria.fr \
--cc=jtbryant@valdosta.edu \
/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).