diff options
author | Guy Harris <gharris@sonic.net> | 2022-08-23 22:15:45 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-08-23 22:15:45 -0700 |
commit | 2aeaf71fa55f512aad801489437cd0e326d767dc (patch) | |
tree | 2767953e12c6fb160aaee3a9d18f9d8b6740acae /epan/dissectors/packet-sll.c | |
parent | 5399334ebc70e8e5aec2f36bdffc957cbe2625dd (diff) |
Change names to reflect that it's an endpoint table.
More {host, hostlist} -> endpoint.
Diffstat (limited to 'epan/dissectors/packet-sll.c')
-rw-r--r-- | epan/dissectors/packet-sll.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-sll.c b/epan/dissectors/packet-sll.c index 61e799f3ee..0de8bb31ec 100644 --- a/epan/dissectors/packet-sll.c +++ b/epan/dissectors/packet-sll.c @@ -149,34 +149,34 @@ sll_conversation_packet(void *pct, packet_info *pinfo, epan_dissect_t *edt _U_, return TAP_PACKET_REDRAW; } -static const char* sll_host_get_filter_type(endpoint_item_t* host, conv_filter_type_e filter) +static const char* sll_endpoint_get_filter_type(endpoint_item_t* endpoint, conv_filter_type_e filter) { - if ((filter == CONV_FT_SRC_ADDRESS) && (host->myaddress.type == AT_ETHER)) + if ((filter == CONV_FT_SRC_ADDRESS) && (endpoint->myaddress.type == AT_ETHER)) return "sll.src.eth"; - if ((filter == CONV_FT_ANY_ADDRESS) && (host->myaddress.type == AT_ETHER)) + if ((filter == CONV_FT_ANY_ADDRESS) && (endpoint->myaddress.type == AT_ETHER)) return "sll.src.eth"; - if ((filter == CONV_FT_SRC_ADDRESS) && (host->myaddress.type == AT_IPv4)) + if ((filter == CONV_FT_SRC_ADDRESS) && (endpoint->myaddress.type == AT_IPv4)) return "sll.src.ipv4"; - if ((filter == CONV_FT_ANY_ADDRESS) && (host->myaddress.type == AT_IPv4)) + if ((filter == CONV_FT_ANY_ADDRESS) && (endpoint->myaddress.type == AT_IPv4)) return "sll.src.ipv4"; return CONV_FILTER_INVALID; } -static et_dissector_info_t sll_host_dissector_info = {&sll_host_get_filter_type}; +static et_dissector_info_t sll_endpoint_dissector_info = {&sll_endpoint_get_filter_type}; static tap_packet_status -sll_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip, tap_flags_t flags) +sll_endpoint_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const void *vip, tap_flags_t flags) { conv_hash_t *hash = (conv_hash_t*) pit; hash->flags = flags; const sll_tap_data *tap_data = (const sll_tap_data*)vip; - add_endpoint_table_data(hash, &tap_data->src_address, 0, TRUE, 1, pinfo->fd->pkt_len, &sll_host_dissector_info, ENDPOINT_NONE); + add_endpoint_table_data(hash, &tap_data->src_address, 0, TRUE, 1, pinfo->fd->pkt_len, &sll_endpoint_dissector_info, ENDPOINT_NONE); return TAP_PACKET_REDRAW; } @@ -617,7 +617,7 @@ proto_register_sll(void) ); register_capture_dissector_table("sll.ltype", "Linux SLL protocol"); - register_conversation_table(proto_sll, TRUE, sll_conversation_packet, sll_hostlist_packet); + register_conversation_table(proto_sll, TRUE, sll_conversation_packet, sll_endpoint_packet); register_decode_as(&sll_da); } |