From 7d83ac379bc116d28b805669b202d2fa910c577d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 20 Nov 2013 16:17:59 +0100 Subject: [PATCH] net: bootme: use is_valid_ether_addr()/is_zero_ether_addr() instead of memcmp() --- net/bootme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/bootme.c b/net/bootme.c index 13749802d7..448727201c 100644 --- a/net/bootme.c +++ b/net/bootme.c @@ -251,7 +251,7 @@ void BootmeStart(void) check_net_config(); if (output_packet_len == 0 || - memcmp(bootme_ether, NetEtherNullAddr, ETH_ALEN) != 0) { + is_valid_ether_addr(bootme_ether)) { /* wait for incoming packet */ net_set_udp_handler(bootme_handler); bootme_timed_out = 0; @@ -289,7 +289,7 @@ int bootme_send_frame(const void *buf, size_t len) __func__, buf, len, &NetOurIP, bootme_src_port, &bootme_ip, bootme_dst_port); - if (memcmp(bootme_ether, NetEtherNullAddr, ETH_ALEN) == 0) { + if (is_zero_ether_addr(bootme_ether)) { output_packet = buf; output_packet_len = len; /* wait for arp reply and send packet */ -- 2.39.5