diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-01-09 01:55:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-01-09 01:55:13 +0000 |
commit | a0c5cac89d31a7db48dcdf9409d8ec99e190fbd3 (patch) | |
tree | 56b3385fc58ecf47445db1815665742a064e8366 /wiretap/snoop.c | |
parent | 2b5eab973e4cb3d33354cbb2f1ecdb190c15171f (diff) | |
download | wireshark-a0c5cac89d31a7db48dcdf9409d8ec99e190fbd3.tar.gz wireshark-a0c5cac89d31a7db48dcdf9409d8ec99e190fbd3.tar.bz2 wireshark-a0c5cac89d31a7db48dcdf9409d8ec99e190fbd3.zip |
It appears that a channel number of 0 means DTE->DCE, and a channel
number of 1 means DCE->DTE, in DOS Sniffer ATM captures.
svn path=/trunk/; revision=6881
Diffstat (limited to 'wiretap/snoop.c')
-rw-r--r-- | wiretap/snoop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c index 709ab99355..cac30feba5 100644 --- a/wiretap/snoop.c +++ b/wiretap/snoop.c @@ -1,6 +1,6 @@ /* snoop.c * - * $Id: snoop.c,v 1.59 2003/01/03 06:45:45 guy Exp $ + * $Id: snoop.c,v 1.60 2003/01/09 01:55:12 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -586,7 +586,7 @@ snoop_read_atm_pseudoheader(FILE_T fh, union wtap_pseudo_header *pseudo_header, pseudo_header->atm.vpi = vpi; pseudo_header->atm.vci = vci; - pseudo_header->atm.channel = (atm_phdr.flags & 0x80) ? 1 : 0; + pseudo_header->atm.channel = (atm_phdr.flags & 0x80) ? 0 : 1; /* We don't have this information */ pseudo_header->atm.cells = 0; @@ -729,7 +729,7 @@ static gboolean snoop_dump(wtap_dumper *wdh, * Write the ATM header. */ atm_hdr.flags = - (pseudo_header->atm.channel != 0) ? 0x80 : 0x00; + (pseudo_header->atm.channel == 0) ? 0x80 : 0x00; switch (pseudo_header->atm.aal) { case AAL_SIGNALLING: |