Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf noup] zephyr: struct net_if_addr_ipv4: s/address/ipv4
Browse files Browse the repository at this point in the history
unicast is now a struct net_if_addr_ipv4, not net_if_addr. See
1b0f9e865e35a6b3e1ca8aad7a67f7cfbfc2e666.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
  • Loading branch information
gmarull committed Apr 13, 2024
1 parent 2cc1381 commit da42d42
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 @@ -220,7 +220,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.in_addr.s_addr,
addr_buf, sizeof(addr_buf)), len);
return 0;
#else
Expand Down

0 comments on commit da42d42

Please sign in to comment.