diff options
author | alfred <alfred@FreeBSD.org> | 2001-04-06 21:48:19 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-04-06 21:48:19 +0000 |
commit | 35b0ef95d05e7397d5b91f41401ce0460a067bce (patch) | |
tree | 3d946e38443d50484b30af50fbcd07cb5f09d565 | |
parent | 9bc04fa94b5e80970faa5a95e5e0367605f643eb (diff) | |
download | FreeBSD-src-35b0ef95d05e7397d5b91f41401ce0460a067bce.zip FreeBSD-src-35b0ef95d05e7397d5b91f41401ce0460a067bce.tar.gz |
replace hardcoded 1518 with ETHER_MAX_LEN
-rw-r--r-- | sys/dev/wi/if_wi.c | 2 |
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, |