From owner-freebsd-net@freebsd.org Wed Nov 25 14:30:28 2015 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 67494A371DB for ; Wed, 25 Nov 2015 14:30:28 +0000 (UTC) (envelope-from wuhao.thu@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 49CE019C0 for ; Wed, 25 Nov 2015 14:30:28 +0000 (UTC) (envelope-from wuhao.thu@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 49D93A371DA; Wed, 25 Nov 2015 14:30:28 +0000 (UTC) Delivered-To: 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 49796A371D9 for ; Wed, 25 Nov 2015 14:30:28 +0000 (UTC) (envelope-from wuhao.thu@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (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 C7F1519BE for ; Wed, 25 Nov 2015 14:30:27 +0000 (UTC) (envelope-from wuhao.thu@gmail.com) Received: by lfdl133 with SMTP id l133so62234427lfd.2 for ; Wed, 25 Nov 2015 06:30:25 -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=/dTR4BJ1E9iHitRR0fscwfFZGAlZnMx9JToQ7T8bcyA=; b=Az67MlS3qsJpAMjF/aRMEnW/Fjy4DG77VGJPpv5JnJtTohTev3mSfWdeS1AYmLQPJh HxvppQ/s9sHrW/QdiIxFmp4TmpdD6QZaEv0jeVGNxiakhjQuVzNneeNkgqNoGxl6SpLZ vTaHvbLwnvoFGtgF4VUH0V7kZIJQCl9tyReEoDRsisfelWImR6KfAHYB+22H4wXjWg52 gCsyXNWYLhjD0htRfZcvuvp99oy0yqkEXevyIsUhwef/mPbQKqViy9K01ZHUnEhri+M+ s5xdzaYlI0ijKzmZYMpzWzzrdmOnx5VOnXNRzy+qfOe4e2Tkz3CGpWCQCaogQmr3PtRQ lDqQ== MIME-Version: 1.0 X-Received: by 10.25.20.95 with SMTP id k92mr15797410lfi.13.1448461825789; Wed, 25 Nov 2015 06:30:25 -0800 (PST) Received: by 10.25.148.213 with HTTP; Wed, 25 Nov 2015 06:30:25 -0800 (PST) Date: Wed, 25 Nov 2015 22:30:25 +0800 Message-ID: Subject: Can I send the Ethernet frames with particular payload via Netmap? From: Hao Wu To: 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: Wed, 25 Nov 2015 14:30:28 -0000 Hi all, I just start using Netmap. I want to know can I build the Ethernet frames and send out via Netmap? I used to build the Ethernet frames via Libnet, but it is too slow. So I turn to Netmap now. But I have no idea on how to write the code using Netmap or what functions should I call? Any replay is highly appreciated! +++++++++++++++++ Best, Hao