Lines Matching refs:fields
467 const char *const *fields;
480 fields = t_strsplit((char *)data, " ");
481 i_assert(strcmp(*fields, "PROXY") == 0);
482 fields++;
485 if (*fields == NULL) {
491 if (strcmp(*fields, "TCP4") == 0) {
493 } else if (strcmp(*fields, "TCP6") == 0) {
495 } else if (strcmp(*fields, "UNKNOWN") == 0) {
500 "(protocol=`%s', rip=%s)", str_sanitize(*fields, 64),
504 fields++;
508 if (*fields == NULL) {
514 if (net_addr2ip(*fields, &remote_ip) < 0 ||
518 "(address=`%s', rip=%s)", str_sanitize(*fields, 64),
522 fields++;
525 if (*fields == NULL) {
531 if (net_addr2ip(*fields, &local_ip) < 0 ||
535 "(address=`%s', rip=%s)", str_sanitize(*fields, 64),
539 fields++;
542 if (*fields == NULL) {
548 if (net_str2port(*fields, &remote_port) < 0) {
551 "(port=`%s', rip=%s)", str_sanitize(*fields, 64),
555 fields++;
558 if (*fields == NULL) {
564 if (net_str2port(*fields, &local_port) < 0) {
567 "(port=`%s', rip=%s)", str_sanitize(*fields, 64),
571 fields++;
573 if (*fields != NULL) {
576 "(field=`%s', rip=%s)", str_sanitize(*fields, 64),