Lines Matching refs:dst
63 struct wpa_ctrl_dst *dst;
65 dst = os_zalloc(sizeof(*dst));
66 if (dst == NULL)
68 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_in));
69 dst->addrlen = fromlen;
70 dst->debug_level = MSG_INFO;
71 dst->next = priv->ctrl_dst;
72 priv->ctrl_dst = dst;
83 struct wpa_ctrl_dst *dst, *prev = NULL;
85 dst = priv->ctrl_dst;
86 while (dst) {
87 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr &&
88 from->sin_port == dst->addr.sin_port) {
90 priv->ctrl_dst = dst->next;
92 prev->next = dst->next;
93 os_free(dst);
99 prev = dst;
100 dst = dst->next;
111 struct wpa_ctrl_dst *dst;
115 dst = priv->ctrl_dst;
116 while (dst) {
117 if (from->sin_addr.s_addr == dst->addr.sin_addr.s_addr &&
118 from->sin_port == dst->addr.sin_port) {
122 dst->debug_level = atoi(level);
125 dst = dst->next;
317 struct wpa_ctrl_dst *dst, *prev;
335 dst = priv->ctrl_dst;
336 while (dst) {
337 prev = dst;
338 dst = dst->next;
349 struct wpa_ctrl_dst *dst, *next;
355 dst = priv->ctrl_dst;
356 if (priv->sock < 0 || dst == NULL)
370 while (dst) {
371 next = dst->next;
372 if (level >= dst->debug_level) {
374 inet_ntoa(dst->addr.sin_addr),
375 ntohs(dst->addr.sin_port));
377 (struct sockaddr *) &dst->addr,
378 sizeof(dst->addr)) < 0) {
380 dst->errors++;
381 if (dst->errors > 10) {
383 priv, &dst->addr,
384 dst->addrlen);
387 dst->errors = 0;
390 dst = next;