We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d679403 commit 2a1cef8Copy full SHA for 2a1cef8
tests/net/udp/src/main.c
@@ -109,24 +109,6 @@ static int tester_send(const struct device *dev, struct net_pkt *pkt)
109
return 0;
110
}
111
112
-static inline struct in_addr *if_get_addr(struct net_if *iface)
113
-{
114
- int i;
115
-
116
- for (i = 0; i < NET_IF_MAX_IPV4_ADDR; i++) {
117
- if (iface->config.ip.ipv4->unicast[i].ipv4.is_used &&
118
- iface->config.ip.ipv4->unicast[i].ipv4.address.family ==
119
- AF_INET &&
120
- iface->config.ip.ipv4->unicast[i].ipv4.addr_state ==
121
- NET_ADDR_PREFERRED) {
122
- return
123
- &iface->config.ip.ipv4->unicast[i].ipv4.address.in_addr;
124
- }
125
126
127
- return NULL;
128
-}
129
130
struct net_udp_context net_udp_context_data;
131
132
static struct dummy_api net_udp_if_api = {
0 commit comments