diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-08-02 16:54:43 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-08-02 16:54:43 +0000 |
commit | b09fa8654063a0662824da40b5e71c6acee420c0 (patch) | |
tree | 450e1533309ed244373923da34cafe84adca7b1c /epan/address_to_str.c | |
parent | 5a320a10f5817b2443a7cc14bbd2c3c7b04533a4 (diff) |
From Richard Stearn: support for AX.25, including support for
LINKTYPE_AX25.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44211 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r-- | epan/address_to_str.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c index 9bd344e9f0..1965d88cee 100644 --- a/epan/address_to_str.c +++ b/epan/address_to_str.c @@ -586,6 +586,13 @@ address_to_str_buf(const address *addr, gchar *buf, int buf_len) case AT_IB: ib_addr_to_str_buf(addr, buf, buf_len); break; + case AT_AX25: + addrdata = addr->data; + g_snprintf(buf, buf_len, "%c%c%c%c%c%c-%02d", + (addrdata[0] >> 1) & 0x7f, (addrdata[1] >> 1) & 0x7f, (addrdata[2] >> 1) & 0x7f, + (addrdata[3] >> 1) & 0x7f, (addrdata[4] >> 1) & 0x7f, (addrdata[5] >> 1) & 0x7f, + (addrdata[6] >> 1) & 0x0f ); + break; default: g_assert_not_reached(); } |