replace hardcoded 1518 with ETHER_MAX_LEN
This commit is contained in:
parent
9bc04fa94b
commit
35b0ef95d0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user