Skip to content

Commit

Permalink
[toup] zephyr: Fix the IPv4 address in net_if
Browse files Browse the repository at this point in the history
The location of IPv4 address struct was changed so update the
code for it.

Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar committed Apr 3, 2024
1 parent eda4116 commit 81bdd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/l2_packet/l2_packet_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len)
#ifdef CONFIG_NET_IPV4
char addr_buf[NET_IPV4_ADDR_LEN];
os_strlcpy(buf, net_addr_ntop(AF_INET,
&l2->iface->config.ip.ipv4->unicast[0].address.in_addr.s_addr,
&l2->iface->config.ip.ipv4->unicast[0].ipv4.address.in_addr.s_addr,
addr_buf, sizeof(addr_buf)), len);
return 0;
#else
Expand Down

0 comments on commit 81bdd83

Please sign in to comment.