From owner-freebsd-net@FreeBSD.ORG Wed Feb 28 10:14:08 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B225216A40D for ; Wed, 28 Feb 2007 10:14:08 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 4C94813C48D for ; Wed, 28 Feb 2007 10:14:08 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so72185ugh for ; Wed, 28 Feb 2007 02:14:07 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=VHJHVF1nZv8EvJTSYrdFddBe5Yo+xedIw0oVKVnq7O+ZHbvDMDRl4PUpItot7OIq6uqJA62lNQYoDu9s0R4Vz/MUU/er1E0RD2bCAAtqCdbiYBeCJODaLOZyLwGIR2fERPbkXBoOce0g9LCPgZBh8zLQSGzx1ufu/bCM8hMMd6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=BH7ldayMuw+BaeCYRPUOrJaRoz2T53flihRDsULFkasWQT44t5pMTfI8+6cSYvaTxyvnrCV1XdKtZ6Bxnw8vW8uXjrZ05CV9BLVhWwOooIX0QSMmoNx6Ilil7feKiASHmgTk4TEBvDT09HmNmm8OXenuwwN/Wv4GtfSPA2csxcs= Received: by 10.114.78.1 with SMTP id a1mr92914wab.1172657645638; Wed, 28 Feb 2007 02:14:05 -0800 (PST) Received: by 10.114.182.9 with HTTP; Wed, 28 Feb 2007 02:14:05 -0800 (PST) Message-ID: <3993a4980702280214uf7deddfr4660b0cbdff4d3d1@mail.gmail.com> Date: Wed, 28 Feb 2007 11:14:05 +0100 From: "Jouke Witteveen" To: sam@errno.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-net@freebsd.org, hostap@shmoo.com Subject: FreeBSD version of wired wpa_supplicant 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: Wed, 28 Feb 2007 10:14:08 -0000 Dear mister Leffler, Hello all, Lately I have been trying to make wpa_supplicant work for wired interfaces on FreeBSD. The driver_wired.c code of the supplicant has been corrected to ask for multicast membership the right way, and if.c has been updated to handle multicast requests properly (special thanks to Bruce Simpson). Some testing with wpa_supplicant 0.5.7 show that a little more work needs to be done. Monitoring traffic with tcpdump (*not* going promiscious) I can see how, on FreeBSD, wpa authentication is started properly, but a response to the server's 'Request Identity' is not sent. In Linux this response is sent immediately. I suspect l2_packet_freebsd.c to not properly receive the packages (ie l2_packet_receive fails to work) because the initial frame is sent out correctly. As I can think of now there are two possible solutions. One being a revision of the existing l2-freebsd code, the other a override on receiving frames for the wired driver. As I'm not a fast programmer on these matters I send out this e-mail as a request for help and an assurance for me that I am not duplicating someone else's efforts. Regards, - Jouke