From cc293e051dc13fdb9a3f3b38f22a2a2ac67149af Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 9 Nov 2002 08:07:19 +0000 Subject: [PATCH] It appears that 0x80 in the fs field of an ISDN packet means "network to user", not "user to network" (SETUP messages are generally sent *to* the network). svn path=/trunk/; revision=6592 --- wiretap/ngsniffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c index 0cbc8b7be0..11b27b56a5 100644 --- a/wiretap/ngsniffer.c +++ b/wiretap/ngsniffer.c @@ -1,6 +1,6 @@ /* ngsniffer.c * - * $Id: ngsniffer.c,v 1.89 2002/11/09 07:31:17 guy Exp $ + * $Id: ngsniffer.c,v 1.90 2002/11/09 08:07:19 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -1156,7 +1156,7 @@ static int set_pseudo_header_frame2(wtap *wth, break; case WTAP_ENCAP_ISDN: - pseudo_header->isdn.uton = (frame2->fs & 0x80) ? TRUE : FALSE; + pseudo_header->isdn.uton = (frame2->fs & 0x80) ? FALSE : TRUE; switch (frame2->fs & 0x18) { case 0x18: @@ -1522,9 +1522,9 @@ static void fix_pseudo_header(int encap, case WTAP_ENCAP_ISDN: if (pseudo_header->x25.flags == 0x00) - pseudo_header->isdn.uton = TRUE; - else pseudo_header->isdn.uton = FALSE; + else + pseudo_header->isdn.uton = TRUE; /* * XXX - this is currently a per-packet encapsulation