From patchwork Wed Mar 3 01:00:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 83237 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2311DKj031062 for ; Wed, 3 Mar 2010 01:01:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754930Ab0CCBBG (ORCPT ); Tue, 2 Mar 2010 20:01:06 -0500 Received: from c60.cesmail.net ([216.154.195.49]:64492 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754134Ab0CCBBE (ORCPT ); Tue, 2 Mar 2010 20:01:04 -0500 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 02 Mar 2010 20:01:00 -0500 Received: from [192.168.0.22] (unknown [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 046D634C69; Tue, 2 Mar 2010 20:00:54 -0500 (EST) Subject: Current wireless-testing breaks libpcap: mr_alen should be set From: Pavel Roskin To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, tcpdump-workers@lists.tcpdump.org Cc: Jiri Pirko Date: Tue, 02 Mar 2010 20:00:48 -0500 Message-Id: <1267578048.14049.11.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 03 Mar 2010 01:01:13 +0000 (UTC) --- a/pcap-linux.c +++ b/pcap-linux.c @@ -1563,6 +1563,7 @@ live_open_new(pcap_t *handle, const char memset(&mr, 0, sizeof(mr)); mr.mr_ifindex = handle->md.ifindex; mr.mr_type = PACKET_MR_PROMISC; + mr.mr_alen = 6; if (setsockopt(sock_fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, &mr, sizeof(mr)) == -1) {