Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:dst

64 	struct wpa_ctrl_dst *dst;
66 dst = os_zalloc(sizeof(*dst));
67 if (dst == NULL)
69 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_un));
70 dst->addrlen = fromlen;
71 dst->debug_level = MSG_INFO;
72 dst->next = priv->ctrl_dst;
73 priv->ctrl_dst = dst;
84 struct wpa_ctrl_dst *dst, *prev = NULL;
86 dst = priv->ctrl_dst;
87 while (dst) {
88 if (fromlen == dst->addrlen &&
89 os_memcmp(from->sun_path, dst->addr.sun_path,
92 priv->ctrl_dst = dst->next;
94 prev->next = dst->next;
95 os_free(dst);
101 prev = dst;
102 dst = dst->next;
113 struct wpa_ctrl_dst *dst;
117 dst = priv->ctrl_dst;
118 while (dst) {
119 if (fromlen == dst->addrlen &&
120 os_memcmp(from->sun_path, dst->addr.sun_path,
125 dst->debug_level = atoi(level);
128 dst = dst->next;
416 struct wpa_ctrl_dst *dst, *prev;
466 dst = priv->ctrl_dst;
467 while (dst) {
468 prev = dst;
469 dst = dst->next;
489 struct wpa_ctrl_dst *dst, *next;
495 dst = priv->ctrl_dst;
496 if (priv->sock < 0 || dst == NULL)
509 while (dst) {
510 next = dst->next;
511 if (level >= dst->debug_level) {
513 (u8 *) dst->addr.sun_path, dst->addrlen -
514 sizeof(dst->addr.sun_family));
515 msg.msg_name = (void *) &dst->addr;
516 msg.msg_namelen = dst->addrlen;
519 dst->errors++;
520 if (dst->errors > 10) {
522 priv, &dst->addr,
523 dst->addrlen);
526 dst->errors = 0;
529 dst = next;