From owner-freebsd-bugs Wed Aug 16 11:40:11 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5A92037C083 for ; Wed, 16 Aug 2000 11:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA93841; Wed, 16 Aug 2000 11:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from nectar.attlabs.att.com (gatemp.attlabs.net [135.197.1.2]) by hub.freebsd.org (Postfix) with ESMTP id C46F237C0FA for ; Wed, 16 Aug 2000 11:31:44 -0700 (PDT) (envelope-from fenner@nectar.attlabs.att.com) Received: (from fenner@localhost) by nectar.attlabs.att.com (8.9.3/8.9.2) id OAA00636; Wed, 16 Aug 2000 14:31:08 -0700 (PDT) (envelope-from fenner) Message-Id: <200008162131.OAA00636@nectar.attlabs.att.com> Date: Wed, 16 Aug 2000 14:31:08 -0700 (PDT) From: Bill Fenner Reply-To: fenner@research.att.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/20660: if_wi provides 802.11 src and dst, not ethernet src and dst Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20660 >Category: i386 >Synopsis: if_wi provides 802.11 src and dst, not ethernet src and dst >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 16 11:40:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Bill Fenner >Release: FreeBSD 3.4-STABLE i386 >Organization: AT&T Labs - Research >Environment: >Description: if_wi.c supplies the 802.11 MAC source and destination addresses when receiving a packet. When in infrastructure mode, this may not be what you're interested in (e.g. when I'm running tcpdump I'm more interested in the original MAC source than which access point sent it to me). When not in infrastructure mode, these addresses are the same. >How-To-Repeat: tcpdump -e -i wi0 >Fix: Index: if_wi.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/if_wi.c,v retrieving revision 1.5.2.4 diff -u -r1.5.2.4 if_wi.c --- if_wi.c 1999/08/29 16:07:24 1.5.2.4 +++ if_wi.c 2000/08/16 18:18:59 @@ -426,9 +434,9 @@ m->m_pkthdr.len = m->m_len = rx_frame.wi_dat_len + WI_SNAPHDR_LEN; - bcopy((char *)&rx_frame.wi_addr1, + bcopy((char *)&rx_frame.wi_dst_addr, (char *)&eh->ether_dhost, ETHER_ADDR_LEN); - bcopy((char *)&rx_frame.wi_addr2, + bcopy((char *)&rx_frame.wi_src_addr, (char *)&eh->ether_shost, ETHER_ADDR_LEN); bcopy((char *)&rx_frame.wi_type, (char *)&eh->ether_type, sizeof(u_int16_t)); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message