diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-20 03:12:56 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-20 03:12:56 +0000 |
commit | d545900d36a2a83fc45325814a97bb78c49a65c2 (patch) | |
tree | e44a62e71a1b080d9da2e4fb11b322de2c525281 /epan/dissectors/packet-rtnet.c | |
parent | a9447bddf0b391345983bc29ce27c22cef3f9418 (diff) |
Use tvb_ether_to_str()
svn path=/trunk/; revision=37319
Diffstat (limited to 'epan/dissectors/packet-rtnet.c')
-rw-r--r-- | epan/dissectors/packet-rtnet.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-rtnet.c b/epan/dissectors/packet-rtnet.c index c1eff8458a..03d1e3d848 100644 --- a/epan/dissectors/packet-rtnet.c +++ b/epan/dissectors/packet-rtnet.c @@ -671,7 +671,6 @@ dissect_rtcfg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 addr_type; guint32 config_length,len; proto_tree *ti=NULL,*rtcfg_tree=NULL; - const guint8 *haddr; /* Set the protocol column */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTcfg"); @@ -872,11 +871,9 @@ dissect_rtcfg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { switch (pinfo->fd->lnk_t) { case WTAP_ENCAP_ETHERNET: - haddr = tvb_get_ptr(tvb, offset, 6); proto_tree_add_bytes_format( rtcfg_tree, hf_rtcfg_client_hw_address, tvb, offset, 32, - haddr, "Client Hardware Address: %02X:%02X:%02X:%02X:%02X:%02X", - *haddr, *(haddr+1), *(haddr+2), - *(haddr+3), *(haddr+4), *(haddr+5) ); + NULL, "Client Hardware Address: %s", + tvb_ether_to_str(tvb, offset)); break; default: |