diff options
Diffstat (limited to 'apps/examples/sendmail/target.c')
-rw-r--r-- | apps/examples/sendmail/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/sendmail/target.c b/apps/examples/sendmail/target.c index 0dadf75b22..981f2b2632 100644 --- a/apps/examples/sendmail/target.c +++ b/apps/examples/sendmail/target.c @@ -138,17 +138,17 @@ int sendmail_main(int argc, char *argv[]) /* Set up our host address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_SENDMAIL_IPADDR); - netlib_sethostaddr("eth0", &addr); + netlib_set_ipv4addr("eth0", &addr); /* Set up the default router address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_SENDMAIL_DRIPADDR); - netlib_setdraddr("eth0", &addr); + netlib_set_dripv4addr("eth0", &addr); /* Setup the subnet mask */ addr.s_addr = HTONL(CONFIG_EXAMPLES_SENDMAIL_NETMASK); - netlib_setnetmask("eth0", &addr); + netlib_set_ipv4netmask("eth0", &addr); /* Then send the mail */ |