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 d2bf3ae commit 7179284Copy full SHA for 7179284
tests/net/shell/src/main.c
@@ -107,24 +107,6 @@ static int tester_send(const struct device *dev, struct net_pkt *pkt)
107
return 0;
108
}
109
110
-static inline struct in_addr *if_get_addr(struct net_if *iface)
111
-{
112
- int i;
113
-
114
- for (i = 0; i < NET_IF_MAX_IPV4_ADDR; i++) {
115
- if (iface->config.ip.ipv4->unicast[i].ipv4.is_used &&
116
- iface->config.ip.ipv4->unicast[i].ipv4.address.family ==
117
- AF_INET &&
118
- iface->config.ip.ipv4->unicast[i].ipv4.addr_state ==
119
- NET_ADDR_PREFERRED) {
120
- return
121
- &iface->config.ip.ipv4->unicast[i].ipv4.address.in_addr;
122
- }
123
124
125
- return NULL;
126
-}
127
128
struct net_udp_context net_udp_context_data;
129
130
static struct dummy_api net_udp_if_api = {
0 commit comments