zephyr/modsocket: Be sure to define default gateway address (uip_draddr).

Talking to Internet won't work without this.
hacking-on-plane
Paul Sokolovsky 2016-09-21 18:52:04 +03:00
parent 1125d7890a
commit 3074d4f4e2
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@
// These are uIP public interface variables wich specify this host address/netmask.
uip_ipaddr_t uip_hostaddr = IPADDR;
uip_ipaddr_t uip_netmask = { { 255, 255, 255, 0 } };
uip_ipaddr_t uip_draddr = {{192, 0, 2, 1}};
static struct net_addr my_addr = {
.family = AF_INET,