Should fix some errors reported by Travis
This commit is contained in:
parent
dd1301e736
commit
36703532e5
@ -118,7 +118,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
int nettest_main(int argc, char *argv[])
|
int nettest_main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_IPv4
|
#ifndef CONFIG_EXAMPLES_NETTEST_IPv6
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_NOMAC
|
#ifdef CONFIG_EXAMPLES_NETTEST_NOMAC
|
||||||
@ -134,7 +134,7 @@ int nettest_main(int argc, char *argv[])
|
|||||||
mac[3] = 0xad;
|
mac[3] = 0xad;
|
||||||
mac[4] = 0xbe;
|
mac[4] = 0xbe;
|
||||||
mac[5] = 0xef;
|
mac[5] = 0xef;
|
||||||
netlib_setmacaddr(EXAMPLES_NETTEST_IPv6NETMASK_, mac);
|
netlib_setmacaddr("eth0", mac);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_IPv6
|
#ifdef CONFIG_EXAMPLES_NETTEST_IPv6
|
||||||
@ -156,17 +156,17 @@ int nettest_main(int argc, char *argv[])
|
|||||||
/* Set up our host address */
|
/* Set up our host address */
|
||||||
|
|
||||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_IPADDR);
|
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_IPADDR);
|
||||||
netlib_set_ipv4addr(EXAMPLES_NETTEST_IPv6NETMASK_, &addr);
|
netlib_set_ipv4addr("eth0", &addr);
|
||||||
|
|
||||||
/* Set up the default router address */
|
/* Set up the default router address */
|
||||||
|
|
||||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_DRIPADDR);
|
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_DRIPADDR);
|
||||||
netlib_set_dripv4addr(EXAMPLES_NETTEST_IPv6NETMASK_, &addr);
|
netlib_set_dripv4addr("eth0", &addr);
|
||||||
|
|
||||||
/* Setup the subnet mask */
|
/* Setup the subnet mask */
|
||||||
|
|
||||||
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_NETMASK);
|
addr.s_addr = HTONL(CONFIG_EXAMPLES_NETTEST_NETMASK);
|
||||||
netlib_set_ipv4netmask(EXAMPLES_NETTEST_IPv6NETMASK_, &addr);
|
netlib_set_ipv4netmask("eth0", &addr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_SERVER
|
#ifdef CONFIG_EXAMPLES_NETTEST_SERVER
|
||||||
|
Loading…
Reference in New Issue
Block a user