diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-03 14:42:29 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-04 15:06:14 +0200 |
commit | 7628d862cac325e47cfd89717299347dee627d14 (patch) | |
tree | 9cbd95db1d4472acf7a5024dca6f0a3d31faca0e /lib/prefix.c | |
parent | zebra: Fix crash when OOM happens. (diff) | |
download | frr-7628d862cac325e47cfd89717299347dee627d14.tar.xz frr-7628d862cac325e47cfd89717299347dee627d14.zip |
lib: Add ETH_ALEN to prefix.h and deprecate ETHER_ADDR_LEN
From discussion we decided that we should use ETH_ALEN instead
of ETHER_ADDR_LEN. Add ETH_ALEN to prefix.h and make
ETHER_ADDR_LEN generate a warning when used( but still work ).
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/prefix.c')
-rw-r--r-- | lib/prefix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index 47e16dbf8..33b6ff198 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -1062,7 +1062,7 @@ int prefix_blen(const struct prefix *p) return IPV6_MAX_BYTELEN; break; case AF_ETHERNET: - return ETHER_ADDR_LEN; + return ETH_ALEN; } return 0; } |