+// SPDX-License-Identifier: GPL-2.0
/*
* Copied from Linux Monitor (LiMon) - Networking.
*
* Copyright 2000 Roland Borde
* Copyright 2000 Paolo Scaffardi
* Copyright 2000-2002 Wolfgang Denk, wd@denx.de
- * SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
cdp_seq++;
if (cdp_seq < 3) {
- NetSetTimeout(CDP_TIMEOUT, cdp_timeout_handler);
+ net_set_timeout_handler(CDP_TIMEOUT, cdp_timeout_handler);
cdp_send_trigger();
return;
}
/* if not OK try again */
if (!cdp_ok)
- NetStartAgain();
+ net_start_again();
else
net_set_state(NETLOOP_SUCCESS);
}
cdp_native_vlan = htons(-1);
cdp_appliance_vlan = htons(-1);
- NetSetTimeout(CDP_TIMEOUT, cdp_timeout_handler);
+ net_set_timeout_handler(CDP_TIMEOUT, cdp_timeout_handler);
cdp_send_trigger();
}