From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 24BF77EE4B for ; Fri, 18 Oct 2013 16:13:34 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=pra; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of rixed@happyleptic.org) identity=mailfrom; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="rixed@happyleptic.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp4-g21.free.fr) identity=helo; client-ip=212.27.42.4; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="rixed@happyleptic.org"; x-sender="postmaster@smtp4-g21.free.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMCAKxBYVLUGyoEnGdsb2JhbABawjGBIxYOAQEBAQEGDQkJFCiCJgEFOk8LIRMSDwUoIYgdwG+PXYMfgQoDmAiVLg X-IPAS-Result: AnMCAKxBYVLUGyoEnGdsb2JhbABawjGBIxYOAQEBAQEGDQkJFCiCJgEFOk8LIRMSDwUoIYgdwG+PXYMfgQoDmAiVLg X-IronPort-AV: E=Sophos;i="4.93,522,1378850400"; d="scan'208";a="37672340" Received: from smtp4-g21.free.fr ([212.27.42.4]) by mail2-smtp-roc.national.inria.fr with ESMTP; 18 Oct 2013 16:13:31 +0200 Received: from ombreroze.happyleptic.org (unknown [82.229.213.209]) by smtp4-g21.free.fr (Postfix) with ESMTP id D65C34C81B4 for ; Fri, 18 Oct 2013 16:13:29 +0200 (CEST) Received: from rixed by ombreroze.happyleptic.org with local (Exim 4.80) (envelope-from ) id 1VXAnt-0008Qr-2v for caml-list@inria.fr; Fri, 18 Oct 2013 16:13:25 +0200 Date: Fri, 18 Oct 2013 16:13:25 +0200 From: rixed@happyleptic.org To: OCaml Mailing List Message-ID: <20131018141324.GD28679@ombreroze.happyleptic.org> References: <20131018115553.GA28679@ombreroze.happyleptic.org> <20131018115955.GG25839@dark.recoil.org> <20131018121612.GB28679@ombreroze.happyleptic.org> <20131018122018.GJ25839@dark.recoil.org> <1382104327.3040.21.camel@e130> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382104327.3040.21.camel@e130> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] IPv6 packet parsing -[ 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?).