Lines Matching refs:a_ctx
26 SMFICTX_PTR a_ctx; /* context */
263 arg.a_ctx = ctx;
849 if (g == NULL || g->a_ctx->ctx_smfi == NULL)
851 ctx = g->a_ctx;
969 if (g->a_ctx->ctx_smfi != NULL &&
970 g->a_ctx->ctx_smfi->xxfi_version > 4 &&
971 (fi_negotiate = g->a_ctx->ctx_smfi->xxfi_negotiate) != NULL)
989 r = fi_negotiate(g->a_ctx,
1177 mi_clr_macros(g->a_ctx, g->a_idx + 1);
1178 if (g->a_ctx->ctx_smfi == NULL ||
1179 (fi_connect = g->a_ctx->ctx_smfi->xxfi_connect) == NULL)
1200 g->a_ctx->ctx_smfi->xxfi_name,
1201 (long) g->a_ctx->ctx_id, (int) i, (int) l);
1219 g->a_ctx->ctx_smfi->xxfi_name,
1220 (long) g->a_ctx->ctx_id);
1237 g->a_ctx->ctx_smfi->xxfi_name,
1238 (long) g->a_ctx->ctx_id);
1256 g->a_ctx->ctx_smfi->xxfi_name,
1257 (long) g->a_ctx->ctx_id);
1267 g->a_ctx->ctx_smfi->xxfi_name,
1268 (long) g->a_ctx->ctx_id, family);
1272 return (*fi_connect)(g->a_ctx, g->a_buf,
1294 if (g->a_ctx->ctx_smfi != NULL &&
1295 (fi_eoh = g->a_ctx->ctx_smfi->xxfi_eoh) != NULL)
1296 return (*fi_eoh)(g->a_ctx);
1318 if (g->a_ctx->ctx_smfi != NULL &&
1319 g->a_ctx->ctx_smfi->xxfi_version > 3 &&
1320 (fi_data = g->a_ctx->ctx_smfi->xxfi_data) != NULL)
1321 return (*fi_data)(g->a_ctx);
1343 mi_clr_macros(g->a_ctx, g->a_idx + 1);
1344 if (g->a_ctx->ctx_smfi != NULL &&
1345 (fi_helo = g->a_ctx->ctx_smfi->xxfi_helo) != NULL)
1350 return (*fi_helo)(g->a_ctx, g->a_buf);
1374 if (g->a_ctx->ctx_smfi == NULL ||
1375 (fi_header = g->a_ctx->ctx_smfi->xxfi_header) == NULL)
1378 return (*fi_header)(g->a_ctx, hf, hv);
1390 mi_clr_macros(g->a_ctx, g->a_idx + 1); \
1391 if (g->a_ctx->ctx_smfi == NULL || \
1392 (lf = g->a_ctx->ctx_smfi->rf) == NULL) \
1396 r = (*lf)(g->a_ctx, argv); \
1452 if (g->a_ctx->ctx_smfi != NULL &&
1453 g->a_ctx->ctx_smfi->xxfi_version > 2 &&
1454 (fi_unknown = g->a_ctx->ctx_smfi->xxfi_unknown) != NULL)
1455 return (*fi_unknown)(g->a_ctx, (const char *) g->a_buf);
1510 if (g->a_ctx->ctx_mac_ptr[i] != NULL)
1511 free(g->a_ctx->ctx_mac_ptr[i]);
1512 if (g->a_ctx->ctx_mac_buf[i] != NULL)
1513 free(g->a_ctx->ctx_mac_buf[i]);
1514 g->a_ctx->ctx_mac_ptr[i] = argv;
1515 g->a_ctx->ctx_mac_buf[i] = g->a_buf;
1538 if (g->a_ctx->ctx_smfi != NULL &&
1539 (fi_close = g->a_ctx->ctx_smfi->xxfi_close) != NULL)
1540 (void) (*fi_close)(g->a_ctx);
1541 mi_clr_macros(g->a_ctx, 0);
1563 if (g->a_ctx->ctx_smfi != NULL &&
1564 (fi_body = g->a_ctx->ctx_smfi->xxfi_body) != NULL)
1565 return (*fi_body)(g->a_ctx, (unsigned char *)g->a_buf,
1594 if (g->a_ctx->ctx_smfi != NULL)
1596 if ((fi_body = g->a_ctx->ctx_smfi->xxfi_body) != NULL &&
1602 timeout.tv_sec = g->a_ctx->ctx_timeout;
1604 sd = g->a_ctx->ctx_sd;
1605 r = (*fi_body)(g->a_ctx, (unsigned char *)g->a_buf,
1608 sendreply(r, sd, &timeout, g->a_ctx) != MI_SUCCESS)
1613 (fi_eom = g->a_ctx->ctx_smfi->xxfi_eom) != NULL)
1614 return (*fi_eom)(g->a_ctx);
1636 if (g != NULL && g->a_ctx->ctx_smfi != NULL &&
1637 (fi_abort = g->a_ctx->ctx_smfi->xxfi_abort) != NULL)
1638 (void) (*fi_abort)(g->a_ctx);