summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-04-06 21:48:19 +0000
committeralfred <alfred@FreeBSD.org>2001-04-06 21:48:19 +0000
commit35b0ef95d05e7397d5b91f41401ce0460a067bce (patch)
tree3d946e38443d50484b30af50fbcd07cb5f09d565
parent9bc04fa94b5e80970faa5a95e5e0367605f643eb (diff)
downloadFreeBSD-src-35b0ef95d05e7397d5b91f41401ce0460a067bce.zip
FreeBSD-src-35b0ef95d05e7397d5b91f41401ce0460a067bce.tar.gz
replace hardcoded 1518 with ETHER_MAX_LEN
-rw-r--r--sys/dev/wi/if_wi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 469add8..2cbaa58 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -1519,7 +1519,7 @@ static void wi_start(ifp)
* Use RFC1042 encoding for IP and ARP datagrams,
* 802.3 for anything else.
*/
- if (ntohs(eh->ether_type) > 1518) {
+ if (ntohs(eh->ether_type) > ETHER_MAX_LEN) {
bcopy((char *)&eh->ether_dhost,
(char *)&tx_frame.wi_addr1, ETHER_ADDR_LEN);
bcopy((char *)&eh->ether_shost,
OpenPOWER on IntegriCloud