Skip to content

Commit 81bdd83

Browse files
committed
[toup] zephyr: Fix the IPv4 address in net_if
The location of IPv4 address struct was changed so update the code for it. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent eda4116 commit 81bdd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/l2_packet/l2_packet_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len)
213213
#ifdef CONFIG_NET_IPV4
214214
char addr_buf[NET_IPV4_ADDR_LEN];
215215
os_strlcpy(buf, net_addr_ntop(AF_INET,
216-
&l2->iface->config.ip.ipv4->unicast[0].address.in_addr.s_addr,
216+
&l2->iface->config.ip.ipv4->unicast[0].ipv4.address.in_addr.s_addr,
217217
addr_buf, sizeof(addr_buf)), len);
218218
return 0;
219219
#else

0 commit comments

Comments
 (0)