From owner-freebsd-net@FreeBSD.ORG Fri Aug 19 11:00:29 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89115106566B for ; Fri, 19 Aug 2011 11:00:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1768FC19 for ; Fri, 19 Aug 2011 11:00:28 +0000 (UTC) Received: by yxn22 with SMTP id 22so1332729yxn.13 for ; Fri, 19 Aug 2011 04:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Oa5fzRBOtfDaWJET/Kyq67e5SQhKt5m1D/ryPL5Jsi4=; b=ZDuuR3TCJJmxG0Mlrr9jKZ+hdkCP2JioBrDr92fK2Qp/UHN1VI0quKDUypPhVnmv0m dPQG0reeDAVY9uewrGTzjToDrzhNw3VvNkgXHIhd3z4scbRsfzo5UWtpu1BXdEAbPnXH t8fw+oUd984YvBqZo3ar5jyZeIDdGAR1f83Oo= MIME-Version: 1.0 Received: by 10.150.72.23 with SMTP id u23mr2054650yba.443.1313751628511; Fri, 19 Aug 2011 04:00:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Fri, 19 Aug 2011 04:00:28 -0700 (PDT) In-Reply-To: <4E4E3522.6030207@gmail.com> References: <4E4E3522.6030207@gmail.com> Date: Fri, 19 Aug 2011 19:00:28 +0800 X-Google-Sender-Auth: yCyTOK1RHNbPYPaBKgdrbWip_LY Message-ID: From: Adrian Chadd To: Ben Gray Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: Test tools for new network driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 11:00:29 -0000 Cool! I don't think there's a random MAC address function call; I see homebrewed versions of those in various drivers. :) I'm not sure about a packet fuzz tester; but that sounds like it'd be a great addition to the tools/ directory. adrian On 19 August 2011 18:04, Ben Gray wrote: > Hi, > > =A0 =A0I'm not sure if this the right list to post to, but here goes ... > > =A0 =A0I'm currently writing a driver for the SMSC LAN95xx range of USB t= o > Ethernet adapter chips > (http://www.smsc.com/index.php?tid=3D300&pid=3D135&tab=3D1). The basic RX= /TX works > and now I'm trying to get the H/W checksum offload working, however I've > come across some problems with the H/W implementation, e.g. it doesn't wo= rk > with small (<64 byte) packets. > > =A0 =A0So I was wondering if anyone knows of any test tools I can use to = fire > all the different unusual sort of packets at the interface to see how the > H/W csum reacts, i.e. runt packets, packets with IP options, IPv6 packets > with extension headers, etc. > > =A0 =A0Another question I had was; is there a kernel function to generate= a > random MAC address ? Or is there a FreeBSD (or FOSS equivalent) Ethernet > manufacturer ID I could use for randomly generated MAC addresses ? > > =A0 =A0The primarily purpose is for the range of Texas Instruments ARM > development boards (Pandaboard & Beagleboard), however there does exist a= t > least one USB dongle you can buy for the PC which uses this chipset. > > Thanks in advance, > Ben > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >