Lines Matching refs:direction
409 fatalx("Invalid message direction: %s", hook);
1324 fatalx("Invalid message direction: %s", hook);
1349 report_smtp_broadcast(uint64_t reqid, const char *direction, struct timeval *tv, const char *event,
1357 if (strcmp("smtp-in", direction) == 0)
1360 else if (strcmp("smtp-out", direction) == 0)
1364 fatalx("unexpected direction: %s", direction);
1375 direction, event, reqid,
1384 lka_report_smtp_link_connect(const char *direction, struct timeval *tv, uint64_t reqid, const char *rdns,
1432 report_smtp_broadcast(reqid, direction, tv, "link-connect",
1437 lka_report_smtp_link_disconnect(const char *direction, struct timeval *tv, uint64_t reqid)
1439 report_smtp_broadcast(reqid, direction, tv, "link-disconnect", "\n");
1443 lka_report_smtp_link_greeting(const char *direction, uint64_t reqid,
1446 report_smtp_broadcast(reqid, direction, tv, "link-greeting", "%s\n",
1451 lka_report_smtp_link_auth(const char *direction, struct timeval *tv, uint64_t reqid,
1460 report_smtp_broadcast(reqid, direction, tv, "link-auth", "%s|%s\n",
1465 lka_report_smtp_link_identify(const char *direction, struct timeval *tv,
1468 report_smtp_broadcast(reqid, direction, tv, "link-identify", "%s|%s\n",
1473 lka_report_smtp_link_tls(const char *direction, struct timeval *tv, uint64_t reqid, const char *ciphers)
1475 report_smtp_broadcast(reqid, direction, tv, "link-tls", "%s\n",
1480 lka_report_smtp_tx_reset(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
1482 report_smtp_broadcast(reqid, direction, tv, "tx-reset", "%08x\n",
1487 lka_report_smtp_tx_begin(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
1489 report_smtp_broadcast(reqid, direction, tv, "tx-begin", "%08x\n",
1494 lka_report_smtp_tx_mail(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, const char *address, int ok)
1509 report_smtp_broadcast(reqid, direction, tv, "tx-mail", "%08x|%s|%s\n",
1514 lka_report_smtp_tx_rcpt(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, const char *address, int ok)
1529 report_smtp_broadcast(reqid, direction, tv, "tx-rcpt", "%08x|%s|%s\n",
1534 lka_report_smtp_tx_envelope(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, uint64_t evpid)
1536 report_smtp_broadcast(reqid, direction, tv, "tx-envelope",
1541 lka_report_smtp_tx_data(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, int ok)
1556 report_smtp_broadcast(reqid, direction, tv, "tx-data", "%08x|%s\n",
1561 lka_report_smtp_tx_commit(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid, size_t msgsz)
1563 report_smtp_broadcast(reqid, direction, tv, "tx-commit", "%08x|%zd\n",
1568 lka_report_smtp_tx_rollback(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid)
1570 report_smtp_broadcast(reqid, direction, tv, "tx-rollback", "%08x\n",
1575 lka_report_smtp_protocol_client(const char *direction, struct timeval *tv, uint64_t reqid, const char *command)
1577 report_smtp_broadcast(reqid, direction, tv, "protocol-client", "%s\n",
1582 lka_report_smtp_protocol_server(const char *direction, struct timeval *tv, uint64_t reqid, const char *response)
1584 report_smtp_broadcast(reqid, direction, tv, "protocol-server", "%s\n",
1589 lka_report_smtp_filter_response(const char *direction, struct timeval *tv, uint64_t reqid,
1668 report_smtp_broadcast(reqid, direction, tv, "filter-response",
1674 lka_report_smtp_timeout(const char *direction, struct timeval *tv, uint64_t reqid)
1676 report_smtp_broadcast(reqid, direction, tv, "timeout", "\n");
1681 const char *direction, struct timeval *tv, const char *message)
1683 report_smtp_broadcast(reqid, direction, tv, "filter-report",
1693 char *ep, *sp, *direction;
1710 direction = ep + 1;
1711 if (strncmp(direction, "smtp-in|", 8) == 0) {
1712 direction[7] = '\0';
1713 direction += 7;
1715 } else if (strncmp(direction, "smtp-out|", 9) == 0) {
1716 direction[8] = '\0';
1717 direction += 8;
1720 fatalx("Invalid report: invalid direction: %s", line);
1727 lka_report_filter_report(reqid, name, 0, direction, &tv, sp);