diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-01 17:23:38 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-01 17:23:38 +0000 |
commit | c9b492a422329474c2eceb9d1fa7180628b5bb90 (patch) | |
tree | 1bd18c5fd4e70b0d274022284c777c8f369e1955 /wiretap/file_access.c | |
parent | e1eff63e0285796967bd2f7dfe968e0d3d8c8899 (diff) |
From Ravi Kondamuru via bug 3457:
Add support to read citrix netscaler capture file format.
From me:
- Renamed packet-ns.c to packet-nstrace.c
- Rewrote to not use "goto" in netscaler.c
- Moved dissecting of coreid
svn path=/trunk/; revision=28564
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r-- | wiretap/file_access.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index a389ffce3f..98e06e9b18 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -81,6 +81,7 @@ #include "dct3trace.h" #include "packetlogger.h" #include "daintree-sna.h" +#include "netscaler.h" /* The open_file_* routines should return: @@ -154,7 +155,8 @@ static wtap_open_routine_t open_routines_base[] = { vms_open, cosine_open, hcidump_open, - commview_open + commview_open, + nstrace_open }; #define N_FILE_TYPES (sizeof open_routines_base / sizeof open_routines_base[0]) @@ -607,7 +609,16 @@ static const struct file_type_info dump_open_table_base[] = { { "PacketLogger", "pklg", "*.pklg", NULL, FALSE, NULL, NULL }, /* WTAP_FILE_DAINTREE_SNA */ - { "Daintree SNA", "dsna", "*.dcf", NULL, FALSE, NULL, NULL } + { "Daintree SNA", "dsna", "*.dcf", NULL, FALSE, NULL, NULL }, + + /* WTAP_FILE_NETSCALER_1_0 */ + { "NetScaler Trace (Version 1.0)", "nstrace10", "*.*", "*.*", FALSE, + nstrace_10_dump_can_write_encap, nstrace_dump_open }, + + /* WTAP_FILE_NETSCALER_2_0 */ + { "NetScaler Trace (Version 2.0)", "nstrace20", "*.cap", "*.cap", FALSE, + nstrace_20_dump_can_write_encap, nstrace_dump_open }, + }; gint wtap_num_file_types = sizeof(dump_open_table_base) / sizeof(struct file_type_info); |