- "session id(s) : %s, proto : IPv%d\n",
- hostname, *port, remain[2], proto);
- str = strtok_r(remain[2], ",", &strctx);
- do {
- char *endptr;
- uint64_t id;
-
- id = strtoull(str, &endptr, 0);
- if (*endptr != '\0' || str == endptr || errno != 0) {
- fprintf(stderr, "[error] parsing session id\n");
- ret = -1;
- goto end;
- }
- g_array_append_val(session_ids, id);
- } while ((str = strtok_r(NULL, ",", &strctx)));
-
+ "traced hostname : %s, session name : %s, "
+ "proto : IPv%d\n",
+ ctx->relay_hostname, ctx->port, ctx->traced_hostname,
+ ctx->session_name, proto);