From 2aeaf71fa55f512aad801489437cd0e326d767dc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 23 Aug 2022 22:15:45 -0700 Subject: Change names to reflect that it's an endpoint table. More {host, hostlist} -> endpoint. --- sharkd_session.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sharkd_session.c') diff --git a/sharkd_session.c b/sharkd_session.c index 0413186b1c..734b0af46a 100644 --- a/sharkd_session.c +++ b/sharkd_session.c @@ -2221,28 +2221,28 @@ sharkd_session_process_tap_conv_cb(void *arg) { for (i = 0; i < iu->hash.conv_array->len; i++) { - endpoint_item_t *host = &g_array_index(iu->hash.conv_array, endpoint_item_t, i); + endpoint_item_t *endpoint = &g_array_index(iu->hash.conv_array, endpoint_item_t, i); char *host_str, *port_str; char *filter_str; json_dumper_begin_object(&dumper); - sharkd_json_value_string("host", (host_str = get_conversation_address(NULL, &host->myaddress, iu->resolve_name))); + sharkd_json_value_string("host", (host_str = get_conversation_address(NULL, &endpoint->myaddress, iu->resolve_name))); if (proto_with_port) { - sharkd_json_value_string("port", (port_str = get_conversation_port(NULL, host->port, host->etype, iu->resolve_port))); + sharkd_json_value_string("port", (port_str = get_conversation_port(NULL, endpoint->port, endpoint->etype, iu->resolve_port))); wmem_free(NULL, port_str); } - sharkd_json_value_anyf("rxf", "%" PRIu64, host->rx_frames); - sharkd_json_value_anyf("rxb", "%" PRIu64, host->rx_bytes); + sharkd_json_value_anyf("rxf", "%" PRIu64, endpoint->rx_frames); + sharkd_json_value_anyf("rxb", "%" PRIu64, endpoint->rx_bytes); - sharkd_json_value_anyf("txf", "%" PRIu64, host->tx_frames); - sharkd_json_value_anyf("txb", "%" PRIu64, host->tx_bytes); + sharkd_json_value_anyf("txf", "%" PRIu64, endpoint->tx_frames); + sharkd_json_value_anyf("txb", "%" PRIu64, endpoint->tx_bytes); - filter_str = get_endpoint_filter(host); + filter_str = get_endpoint_filter(endpoint); if (filter_str) { sharkd_json_value_string("filter", filter_str); @@ -2251,7 +2251,7 @@ sharkd_session_process_tap_conv_cb(void *arg) wmem_free(NULL, host_str); - if (sharkd_session_geoip_addr(&(host->myaddress), "")) + if (sharkd_session_geoip_addr(&(endpoint->myaddress), "")) with_geoip = 1; json_dumper_end_object(&dumper); } -- cgit v1.2.3