Lines Matching refs:line
81 static int who_parse_line(const char *line, struct who_line *line_r)
83 const char *const *args = t_strsplit_tabescaped(line);
124 const struct who_line *line)
128 lookup_user.username = line->username;
129 lookup_user.service = line->service;
134 user->username = p_strdup(ctx->pool, line->username);
135 user->service = p_strdup(ctx->pool, line->service);
140 user->connection_count += line->refcount;
142 if (line->ip.family != 0 && !who_user_has_ip(user, &line->ip))
143 array_append(&user->ips, &line->ip, 1);
145 if (!who_user_has_pid(user, line->pid))
146 array_append(&user->pids, &line->pid, 1);
180 const char *line;
189 while ((line = i_stream_read_next_line(input)) != NULL) {
190 if (*line == '\0')
195 if (who_parse_line(line, &who_line) < 0)
196 i_error("Invalid input: %s", line);
282 bool who_line_filter_match(const struct who_line *line,
286 if (!wildcard_match_icase(line->username, filter->username))
290 if (!net_is_in_network(&line->ip, &filter->net_ip,
298 const struct who_line *line)
302 if (!who_line_filter_match(line, &ctx->filter))
305 for (i = 0; i < line->refcount; i++) T_BEGIN {
306 doveadm_print(line->username);
307 doveadm_print(line->service);
308 doveadm_print(dec2str(line->pid));
309 doveadm_print(net_ip2addr(&line->ip));