mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-03 20:27:58 +00:00
NET: Rename functions in apps/netutils/netlib to begin with netlib_ vs uip_
This commit is contained in:
parent
d8e69bb0c1
commit
e7fedfa4a5
35 changed files with 161 additions and 161 deletions
|
|
@ -96,23 +96,23 @@ static void fptd_netinit(void)
|
|||
mac[3] = 0xad;
|
||||
mac[4] = 0xbe;
|
||||
mac[5] = 0xef;
|
||||
uip_setmacaddr("eth0", mac);
|
||||
netlib_setmacaddr("eth0", mac);
|
||||
#endif
|
||||
|
||||
/* Set up our host address */
|
||||
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_IPADDR);
|
||||
uip_sethostaddr("eth0", &addr);
|
||||
netlib_sethostaddr("eth0", &addr);
|
||||
|
||||
/* Set up the default router address */
|
||||
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_DRIPADDR);
|
||||
uip_setdraddr("eth0", &addr);
|
||||
netlib_setdraddr("eth0", &addr);
|
||||
|
||||
/* Setup the subnet mask */
|
||||
|
||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_FTPD_NETMASK);
|
||||
uip_setnetmask("eth0", &addr);
|
||||
netlib_setnetmask("eth0", &addr);
|
||||
#endif /* CONFIG_EXAMPLES_FTPD_NONETINIT */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue