|
|
@ -386,6 +386,14 @@ log_content_format_pathspec(const char *logspec,
|
|
|
|
elem = addrbuf;
|
|
|
|
elem = addrbuf;
|
|
|
|
elem_len = strlen(addrbuf);
|
|
|
|
elem_len = strlen(addrbuf);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'D':
|
|
|
|
|
|
|
|
elem = dsthost;
|
|
|
|
|
|
|
|
elem_len = strlen(dsthost);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'p':
|
|
|
|
|
|
|
|
elem = dstport;
|
|
|
|
|
|
|
|
elem_len = strlen(dstport);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 's':
|
|
|
|
case 's':
|
|
|
|
if (snprintf(addrbuf, sizeof(addrbuf),
|
|
|
|
if (snprintf(addrbuf, sizeof(addrbuf),
|
|
|
|
"%s,%s", srchost, srcport) < 0) {
|
|
|
|
"%s,%s", srchost, srcport) < 0) {
|
|
|
@ -395,19 +403,11 @@ log_content_format_pathspec(const char *logspec,
|
|
|
|
elem = addrbuf;
|
|
|
|
elem = addrbuf;
|
|
|
|
elem_len = strlen(addrbuf);
|
|
|
|
elem_len = strlen(addrbuf);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'f':
|
|
|
|
case 'S':
|
|
|
|
elem = dsthost;
|
|
|
|
|
|
|
|
elem_len = strlen(dsthost);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'h':
|
|
|
|
|
|
|
|
elem = dstport;
|
|
|
|
|
|
|
|
elem_len = strlen(dstport);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 't':
|
|
|
|
|
|
|
|
elem = srchost;
|
|
|
|
elem = srchost;
|
|
|
|
elem_len = strlen(srchost);
|
|
|
|
elem_len = strlen(srchost);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'v':
|
|
|
|
case 'q':
|
|
|
|
elem = srcport;
|
|
|
|
elem = srcport;
|
|
|
|
elem_len = strlen(srcport);
|
|
|
|
elem_len = strlen(srcport);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|