diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2000-01-12 00:57:27 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2000-01-12 00:57:27 +0000 |
| commit | 8647d85ac3cf39e4cc6d7827316a90467b4019f2 (patch) | |
| tree | 111d1cef9b3bcf9f7e734043a30758429f474f83 /sys/dev/wi | |
| parent | def6f6178cbf3e32ffe1231e8a9f53bae35908e9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/wi')
| -rw-r--r-- | sys/dev/wi/if_wi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 0d36b80ad938..6f005f7c887f 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -1174,9 +1174,7 @@ static void wi_start(ifp) * Use RFC1042 encoding for IP and ARP datagrams, * 802.3 for anything else. */ - if (ntohs(eh->ether_type) == ETHERTYPE_IP || - ntohs(eh->ether_type) == ETHERTYPE_ARP || - ntohs(eh->ether_type) == ETHERTYPE_REVARP) { + if (ntohs(eh->ether_type) > 1518) { bcopy((char *)&eh->ether_dhost, (char *)&tx_frame.wi_addr1, ETHER_ADDR_LEN); bcopy((char *)&eh->ether_shost, @@ -1204,6 +1202,7 @@ static void wi_start(ifp) } else { tx_frame.wi_dat_len = m0->m_pkthdr.len; + eh->ether_type = htons(m0->m_pkthdr.len - WI_SNAPHDR_LEN); m_copydata(m0, 0, m0->m_pkthdr.len, (caddr_t)&sc->wi_txbuf); wi_write_data(sc, id, 0, (caddr_t)&tx_frame, |
