samples: net: Fix echo-server compilation error
My IPv4 address was missing because of complex set of #ifdef's. Change-Id: I6768587d3e104a57c10756bc43267f26068aa3cb Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
412a4f32ff
commit
b3077ab4e7
@ -62,9 +62,9 @@ static struct in6_addr in6addr_my = MY_IP6ADDR;
|
||||
/* The 192.0.2.0/24 is the private address space for documentation RFC 5737 */
|
||||
#define MY_IP4ADDR { { { 192, 0, 2, 1 } } }
|
||||
|
||||
#if !NET_BIND_ANY_ADDR
|
||||
#if !defined(CONFIG_NET_DHCPV4) || !NET_BIND_ANY_ADDR
|
||||
static struct in_addr in4addr_my = MY_IP4ADDR;
|
||||
#endif
|
||||
#endif /* CONFIG_NET_DHCPV4 || !NET_BIND_ANY_ADDR */
|
||||
#endif /* IPv4 */
|
||||
|
||||
#define MY_PORT 4242
|
||||
|
||||
Loading…
Reference in New Issue
Block a user