caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: rixed@happyleptic.org
To: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] IPv6 packet parsing
Date: Fri, 18 Oct 2013 16:13:25 +0200	[thread overview]
Message-ID: <20131018141324.GD28679@ombreroze.happyleptic.org> (raw)
In-Reply-To: <1382104327.3040.21.camel@e130>

-[ Fri, Oct 18, 2013 at 03:52:07PM +0200, Gerd Stolpmann ]----
> > > Or do you mean using Bigarray.map_file on the whole
> > > raw ring buffer and handle it without pcap help?
> 
> Without knowing details: maybe no copy is required at all? The pcap ring
> buffer could be directly wrapped as Bigarray.

Yes that's what I was trying to say.
Unfortunately, such implementation would be hard to maintain
(Linux capture ring buffer have already several implementations, to say
nothing about supporting other OSes).
Ideally, I'd like to pass const pointers to packet bytes provided by
libpcap to user callbacks up to bitstring through OCaml (say via a
sufficiently large int type?).

  reply	other threads:[~2013-10-18 14:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18  4:15 Johan Mazel
2013-10-18  5:33 ` Stéphane Glondu
2013-10-18 11:55 ` rixed
2013-10-18 11:59   ` Anil Madhavapeddy
2013-10-18 12:16     ` rixed
2013-10-18 12:20       ` Anil Madhavapeddy
2013-10-18 12:26         ` rixed
2013-10-18 13:52         ` Gerd Stolpmann
2013-10-18 14:13           ` rixed [this message]
2013-10-18 14:40             ` Stéphane Glondu
2013-10-18 14:20         ` Markus Mottl
2013-10-18 17:23           ` Paul Pelzl
2013-10-18 17:52           ` rixed
2013-10-18 20:09             ` Markus Mottl
2013-11-06 13:57         ` Richard W.M. Jones
2013-10-19  8:54   ` Johan Mazel
2013-10-21  7:58     ` rixed
2013-10-21  8:37       ` Johan Mazel

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=20131018141324.GD28679@ombreroze.happyleptic.org \
    --to=rixed@happyleptic.org \
    --cc=caml-list@inria.fr \
    /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).