diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-07-07 09:42:09 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-07-07 09:42:09 +0000 |
commit | 23b068e3078691eee81422008f81017c552da5d9 (patch) | |
tree | 58551971aacff6e318db69dfd3b7f11dd63d3df0 /epan/to_str.c | |
parent | 1dacabc5ba37a5e5c92638c49a4c727f6cf9defd (diff) | |
download | wireshark-23b068e3078691eee81422008f81017c552da5d9.tar.gz wireshark-23b068e3078691eee81422008f81017c552da5d9.tar.bz2 wireshark-23b068e3078691eee81422008f81017c552da5d9.zip |
Introduce se_address_to_str()
svn path=/trunk/; revision=28973
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 22075e33d6..a39621507c 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -947,6 +947,7 @@ decode_numeric_bitfield(guint32 val, guint32 mask, int width, that "col_set_addr()" need know nothing whatsoever about particular address types */ /* convert an address struct into a printable string */ + gchar* address_to_str(const address *addr) { @@ -957,6 +958,16 @@ address_to_str(const address *addr) return str; } +/* The called routines use ep_alloc:ed memory */ +gchar* +se_address_to_str(const address *addr) +{ + gchar *str; + + str = address_to_str(addr); + return se_strdup(str); +} + void address_to_str_buf(const address *addr, gchar *buf, int buf_len) { |