Lines Matching defs:line

680 	/* Reserve space to later insert encapsulation offsets, & blank line */
691 /* Encapsulated request header (req_hdr) & blank line */
708 /* Encapsulated response header (res_hdr) & blank line */
787 /* Break on error or non-blank line. */
814 * As each line is read it is parsed and passed to the appropriate handler.
826 /* Break on error or blank line. */
833 /* Empty line (CR/LF) normal break */
944 /* Break on error or blank line. */
949 /* Empty line (CR/LF) normal break */
1124 syslog(LOG_ERR, "ICAP protocol error - expected blank line");
1265 * Read a line of response data from the socket. \n indicates end of line.
1316 * parse an icap hdr line to find name and value
1319 vs_icap_parse_hdrs(char delimiter, char *line, char **name, char **val)
1321 char *q = line;
1331 /* Empty line is normal termination */
1332 if ((line_len = strlen(line)) == 0)
1335 if ((q = strchr(line, delimiter)) != 0) {
1338 q = line + line_len;
1354 vs_icap_resp_violations(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1358 (void) sscanf(line, "%d", &vcnt);
1401 /* empty line? */
1432 vs_icap_opt_value(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1440 (void) sscanf(line, "%d", &x);
1449 if (*line == 0) {
1454 val = strtol(line, &end, 10);
1455 if ((end != (line + strlen(line))) || (val < 0))
1463 (void) sscanf(line, "%d", &ctx->vsc_options.vso_allow);
1467 (void) strlcpy(ctx->vsc_options.vso_service, line,
1472 (void) strlcpy(ctx->vsc_options.vso_defninfo, line,
1477 if (strstr(line, "RESPMOD") != NULL)
1482 vs_icap_istag_to_scanstamp(line,
1504 vs_icap_resp_istag(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1506 vs_icap_istag_to_scanstamp(line, ctx->vsc_result->vsr_scanstamp);
1562 vs_icap_opt_ext(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1572 if (strstr(line, "*")) {
1576 (line, EXT_SEPARATOR);
1586 if (strstr(line, "*")) {
1590 (line, EXT_SEPARATOR);
1610 vs_icap_resp_infection(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1619 vs_icap_parse_hdrs('=', line, &name, &val);
1644 if ((line = strstr(val, ";")))
1645 line++;
1680 vs_icap_resp_virus_id(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1688 (void) strlcpy(vr->vr_desc, line, VS_DESCRIPTION_MAX);
1705 vs_icap_resp_encap(vs_scan_ctx_t *ctx, int hdr_id, char *line)
1707 if (strstr(line, "res-hdr"))
1710 if (strstr(line, "res-body"))
1822 * Populate a iovec_t from line, where line is a string of 'sep'
1823 * separated fields. Within the copy of line in the iovec_t each
1831 vs_icap_make_strvec(char *line, const char *sep)
1837 datalen = strlen(line) + 1;
1845 (void) strlcpy(vec->iov_base, line, datalen);