diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-05 19:26:28 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-01-07 04:25:07 +0000 |
commit | 47d670d3d7d17df1e29a55d05413a2fd3d0f8e6a (patch) | |
tree | c417040f8d8172f3cc9646bfae75ae282e15be43 /epan/dissectors/packet-eigrp.c | |
parent | 0f426d6f0133d3a31dc7d56e9d0a79aa9b55255e (diff) |
Add tvb_address_to_str.
This is intended to handle ALL address types retrieved from a tvbuff.
One of the (good) side effects of this function is that it can replace a lot of the "hidden" ep_alloc calls used to allocate memory for the address string.
A few existing "popular" helper tvb_ functions were turned into pure macros calling tvb_address_to_str. Some of the "less used" helper tvb_ functions were just directly replaced with tvb_address_to_str.
Change-Id: I361d991c4ad90142173e63eae02a94d68af3ec43
Reviewed-on: https://code.wireshark.org/review/6333
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-eigrp.c')
-rw-r--r-- | epan/dissectors/packet-eigrp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-eigrp.c b/epan/dissectors/packet-eigrp.c index f9d7044567..abe2e3c19e 100644 --- a/epan/dissectors/packet-eigrp.c +++ b/epan/dissectors/packet-eigrp.c @@ -1178,8 +1178,7 @@ dissect_eigrp_ipx_addr (proto_item *ti, proto_tree *tree, tvbuff_t *tvb, ENC_NA); /* add it to the top level line */ - proto_item_append_text(ti," = %s", - tvb_ipxnet_to_string(tvb, offset)); + proto_item_append_text(ti," = %s", ipxnet_to_str_punct(tvb_get_ntohl(tvb, offset), ' ')); if (unreachable) { expert_add_info(pinfo, ti_dst, &ei_eigrp_unreachable); |