Skip to content

Commit 5e4c4d7

Browse files
zhangyuan21xiaoxiang781216
authored andcommitted
netutils/dhcpd: fixed simusb build issue
define dhcpd_arpupdate when CONFIG_NETUTILS_DHCPD_IGNOREBROADCAST undef Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
1 parent 99b99c8 commit 5e4c4d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

netutils/dhcpd/dhcpd.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ static struct dhcpd_daemon_s g_dhcpd_daemon =
308308
* Name: dhcpd_arpupdate
309309
****************************************************************************/
310310

311-
#ifndef CONFIG_NETUTILS_DHCPD_HOST
311+
#ifndef CONFIG_NETUTILS_DHCPD_IGNOREBROADCAST
312+
# ifndef CONFIG_NETUTILS_DHCPD_HOST
312313
static inline void dhcpd_arpupdate(FAR uint8_t *ipaddr, FAR uint8_t *hwaddr)
313314
{
314315
struct sockaddr_in inaddr;
@@ -325,8 +326,9 @@ static inline void dhcpd_arpupdate(FAR uint8_t *ipaddr, FAR uint8_t *hwaddr)
325326

326327
netlib_set_arpmapping(&inaddr, hwaddr, NULL);
327328
}
328-
#else
329-
# define dhcpd_arpupdate(ipaddr,hwaddr)
329+
# else
330+
# define dhcpd_arpupdate(ipaddr,hwaddr)
331+
# endif
330332
#endif
331333

332334
/****************************************************************************

0 commit comments

Comments
 (0)