From owner-freebsd-net@FreeBSD.ORG Fri Aug 19 10:34:34 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 2803F106566B for ; Fri, 19 Aug 2011 10:34:34 +0000 (UTC) (envelope-from ben.r.gray@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id AC7BD8FC13 for ; Fri, 19 Aug 2011 10:34:33 +0000 (UTC) Received: by wwi36 with SMTP id 36so2923564wwi.31 for ; Fri, 19 Aug 2011 03:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=amioKSB9E6rrM2TSxUCVWklvJvG92A3EYx7Ydw1wnZw=; b=CNQ/UVDONHPw9qKJkPbwDqJgvA2+qV3UmuQ2RCeKbUixmcagmiDypIE0jeF0KDS8AU BwBdHvotz9LHnWOYg+/NdpJ6+WoQ1a7cjLjwmcEeei1Tl29gvr7AXeAMgA0MzpMiN1rO w0bEDIu9OQrCoV2OryhMPMHb0ZFDtmBqNN2xc= Received: by 10.216.177.212 with SMTP id d62mr299861wem.51.1313748261130; Fri, 19 Aug 2011 03:04:21 -0700 (PDT) Received: from Bens-MBP.local (ip-80-238-8-128.bskyb.com [80.238.8.128]) by mx.google.com with ESMTPS id b47sm2059331wed.22.2011.08.19.03.04.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 03:04:19 -0700 (PDT) Message-ID: <4E4E3522.6030207@gmail.com> Date: Fri, 19 Aug 2011 11:04:18 +0100 From: Ben Gray User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 10:34:34 -0000 Hi, I'm not sure if this the right list to post to, but here goes ... I'm currently writing a driver for the SMSC LAN95xx range of USB to Ethernet adapter chips (http://www.smsc.com/index.php?tid=300&pid=135&tab=1). 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 work with small (<64 byte) packets. So 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. Another 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 ? The primarily purpose is for the range of Texas Instruments ARM development boards (Pandaboard & Beagleboard), however there does exist at least one USB dongle you can buy for the PC which uses this chipset. Thanks in advance, Ben