diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-17 21:54:21 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-06-17 21:54:21 +0000 |
commit | 24623bdff3727c98d9662d6ef183883b8b114be9 (patch) | |
tree | 2b1eb0fe9c7a30ea487e6f5a5a8ee417515fd34a /epan/to_str.c | |
parent | 32b95570df10da14e9662ac91974e89156221e10 (diff) |
More PDU export work:
- add automatic export of port type when exporting a source / destination port
- add export of SCTP PPID (usefulness to be checked)
- fix some field size
svn path=/trunk/; revision=49989
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 1c418d3385..9b5696f6cd 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -1103,3 +1103,25 @@ gchar* guid_to_str_buf(const e_guid_t *guid, gchar *buf, int buf_len) { *tempptr = '\0'; return buf; } + +const gchar* port_type_to_str (port_type type) { + switch (type) { + case PT_NONE: return "NONE"; + case PT_SCTP: return "SCTP"; + case PT_TCP: return "TCP"; + case PT_UDP: return "UDP"; + case PT_DCCP: return "DCCP"; + case PT_IPX: return "IPX"; + case PT_NCP: return "NCP"; + case PT_EXCHG: return "FC EXCHG"; + case PT_DDP: return "DDP"; + case PT_SBCCS: return "FICON SBCCS"; + case PT_IDP: return "IDP"; + case PT_TIPC: return "TIPC"; + case PT_USB: return "USB"; + case PT_I2C: return "I2C"; + case PT_IBQP: return "IBQP"; + case PT_BLUETOOTH: return "BLUETOOTH"; + default: return "[Unknown]"; + } +} |