replace hardcoded 1518 with ETHER_MAX_LEN

This commit is contained in:
alfred 2001-04-06 21:48:19 +00:00
parent 9bc04fa94b
commit 35b0ef95d0

View File

@ -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,