From owner-freebsd-net@freebsd.org Tue Feb 16 02:20:53 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 348FAAA8D62 for ; Tue, 16 Feb 2016 02:20:53 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F295610E3 for ; Tue, 16 Feb 2016 02:20:52 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id hb3so63714413igb.0 for ; Mon, 15 Feb 2016 18:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hen4CQp6r8rLaBw7k/jNEf2neWweJYHF6unzBLD7/TY=; b=RT+i0lcBxuw/cXnHh4QbwFfIJV4XI7pGBYgNXfJFsxUOupz9W6qtG9yoPJ2ctWnveE gnkjtL1gH1iZHIdrRcN0ocbSJgW4nw6lOPMSU1y7NE4/UyiLUn1tdCKUXyCtIR2ZYE6l mGQvsPDSU0iRQXywKoskwPv2O3YzG4rOHoDZKcN/AbC4HFiBUZEwwJsRF49rcwx5Z7Zb vD3BoO0d8jRf5lDPs4b4z2sdl34iv9L00Ve0wcIGorVOeeOFm+Nm1IoZjvM0cYncRQUX 5esjBy9UFdVMKe0EsqhQBGlABfeBkkld2mSFzXpKr7LhEvtXIQw6ZolnExHFwzgtOvRt YJGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=hen4CQp6r8rLaBw7k/jNEf2neWweJYHF6unzBLD7/TY=; b=kiIJ9+/tifBSrLypW/9dTs5mpiu7ZEE9EwBZK9A7UV4cNnpNWJXBgNk7qvmSQ6l3GY JIcDDWPswGUxR6PlRX0fhtg7LPByFjXFnLDxKZXj3XFFkctbgyYjbrEK6qsrXQnYc2n1 BtYybFOgHNHGIATmhqv8xNnAJeQsGeOHLnO5fryXwAkjMIc5xjQ/7hr8dUZaqfrJdQga v/O3knOtKV7ezb2mNQ6yumNvh6kgrsAMR8Xf3Hde3ETsPNOodZq3j8MdhsGktKpmyMFW T4xMBzAM6bWH7SfIr6K29E3FWhWxA47B0W42cnTEWC0/9gkoDSxKXxepnvLNBz9eeFgL dU1A== X-Gm-Message-State: AG10YOQjVmliaq7UwbrVB25YPoJIwpg5Bnj9yfy+BW0xuFEz1Xpl7459PfqU8hLtysbuafKCCjQtxqwCqu3+NA== MIME-Version: 1.0 X-Received: by 10.50.20.129 with SMTP id n1mr16320548ige.77.1455589252359; Mon, 15 Feb 2016 18:20:52 -0800 (PST) Received: by 10.36.118.15 with HTTP; Mon, 15 Feb 2016 18:20:52 -0800 (PST) Date: Mon, 15 Feb 2016 21:20:52 -0500 Message-ID: Subject: netmap packet timestamping From: Chris Inacio To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 02:20:53 -0000 Hello all, I'm trying to write some code to work with netmap which previously worked with PCAP API. In the PCAP API it's easy enough to get the timestamp the packet arrived from the API, but I can't find that (easily) from the netmap API. I'm not concerned with Tx, only Rx. Is there an easy place to get the packet timestamp? I saw the timestamp in the flags, but it wasn't clear to me that it would be a received timestamp. Also, since I'm not a regular list reader, please keep my email address on the thread too. Thanks chris inacio