Page MenuHomeFreeBSD

net: prefer ETHER_ADDR_LEN over ETH_ADDR_LEN

Authored by on Aug 12 2019, 10:53 PM.
Referenced Files
Unknown Object (File)
Thu, Nov 30, 7:58 AM
Unknown Object (File)
Wed, Nov 29, 2:32 PM
Unknown Object (File)
Tue, Nov 28, 7:11 PM
Unknown Object (File)
Sun, Nov 26, 6:16 PM
Unknown Object (File)
Sun, Nov 26, 4:43 PM
Unknown Object (File)
Sat, Nov 25, 9:04 PM
Unknown Object (File)
Nov 8 2023, 11:24 PM
Unknown Object (File)
Nov 8 2023, 4:28 PM



A couple of drivers and one place in if.c use ETH_ADDR_LEN, even though
net/ethernet.h provides an equivalent ETHER_ADDR_LEN definition.

Cleanup all of the locations which refer to ETH_ADDR_LEN to use the
standard ETHER_ADDR_LEN instead.

Signed-off-by: Jacob Keller <>

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable

Event Timeline

erj added a subscriber: jpaetzel.

Adding @jpaetzel since he seemed to be the last person making updates to oce(4); is this change ok to make there? There's no functional change.

For the OCE change that is fine.

Update patch to make it build on HEAD

Don't remove the extra whitespace in if.c

This revision is now accepted and ready to land.Nov 4 2019, 10:56 PM
This revision was automatically updated to reflect the committed changes.