aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/eyesdn.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-01-27 21:13:26 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-01-27 21:13:26 +0000
commita8c964cd44449d83baae12dede4fccaadc581df0 (patch)
tree13b316b313a796aaf8ea4f76375a5955cec6ce86 /wiretap/eyesdn.c
parentbae6a0d02f9cd2b8e31718ab0616be145b1279b5 (diff)
From Rolf Fiedler:
Add DPNSS link layer dissector, support EyeSDN Trace files with DPNSS. (Removed a couple of c++ style comments). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3224 svn path=/trunk/; revision=27312
Diffstat (limited to 'wiretap/eyesdn.c')
-rw-r--r--wiretap/eyesdn.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c
index 534f72274c..3909ec5723 100644
--- a/wiretap/eyesdn.c
+++ b/wiretap/eyesdn.c
@@ -334,6 +334,27 @@ parse_eyesdn_rec_hdr(wtap *wth, FILE_T fh,
wth->phdr.pkt_encap = WTAP_ENCAP_MTP2;
}
break;
+ case EYESDN_ENCAP_DPNSS: /* DPNSS */
+ pseudo_header->isdn.uton = direction & 1;
+ pseudo_header->isdn.channel = channel;
+ if(wth) {
+ wth->phdr.pkt_encap = WTAP_ENCAP_DPNSS;
+ }
+ break;
+ case EYESDN_ENCAP_DASS2: /* DASS2 frames */
+ pseudo_header->isdn.uton = direction & 1;
+ pseudo_header->isdn.channel = channel;
+ if(wth) {
+ wth->phdr.pkt_encap = WTAP_ENCAP_DPNSS;
+ }
+ break;
+ case EYESDN_ENCAP_BACNET: /* BACNET async over HDLC frames */
+ /* pseudo_header->isdn.uton = direction & 1; */
+ /* pseudo_header->isdn.channel = channel; */
+ if(wth) {
+ wth->phdr.pkt_encap = WTAP_ENCAP_BACNET_MS_TP;
+ }
+ break;
}
if(pkt_len > EYESDN_MAX_PACKET_LEN) {