diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-10-15 06:10:59 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-10-15 06:10:59 +0000 |
commit | 714ce64b126c6ae8535f3df9f61c6b24abdd5cba (patch) | |
tree | c31aea46c540402c75c64d2586fe2d0360637a9f /epan/column-utils.c | |
parent | 077e03a549fa4f00854c7b2e0621eed5924a55ed (diff) |
add a new port type for usb endpoints
start introducing conversations to the usb dissector so that we can start tracking requests/responses
which we need to in order to dissect for example the data returned by a device to a GET DESCRIPTORS call
svn path=/trunk/; revision=19539
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r-- | epan/column-utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c index f900598635..4dcd891afd 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -972,6 +972,17 @@ col_set_port(packet_info *pinfo, int col, gboolean is_res, gboolean is_src) pinfo->cinfo->col_expr_val[col][COL_MAX_LEN - 1] = '\0'; break; + case PT_USB: + /* XXX - resolve USB endpoint numbers */ + g_snprintf(pinfo->cinfo->col_buf[col], COL_MAX_LEN, "0x%08x", port); + if (is_src) + strcpy(pinfo->cinfo->col_expr[col], "usb.src.endpoint"); + else + strcpy(pinfo->cinfo->col_expr[col], "usb.dst.endpoint"); + g_snprintf(pinfo->cinfo->col_expr_val[col], COL_MAX_LEN, "0x%08x", port); + pinfo->cinfo->col_expr_val[col][COL_MAX_LEN - 1] = '\0'; + break; + default: break; } |