diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-03-03 22:24:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-03-03 22:24:53 +0000 |
commit | ba72e955dc1b42da73e3a25eecd4bd336ffbf1b7 (patch) | |
tree | efb280a0c42fb616c066a4c6fd5a220bce732508 /wiretap/radcom.c | |
parent | 76ff7e4a66cc2e45a25a3ac815e5520195ea3ae4 (diff) |
Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",
rather than requiring individual capture file type handlers to do it
(unless they're doing per-packet encapsulation, in which case we check
to make sure they didn't *leave* it as WTAP_ENCAP_PER_PACKET).
svn path=/trunk/; revision=10290
Diffstat (limited to 'wiretap/radcom.c')
-rw-r--r-- | wiretap/radcom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wiretap/radcom.c b/wiretap/radcom.c index 0c93110908..2f25173c71 100644 --- a/wiretap/radcom.c +++ b/wiretap/radcom.c @@ -1,6 +1,6 @@ /* radcom.c * - * $Id: radcom.c,v 1.44 2004/01/25 21:55:17 guy Exp $ + * $Id: radcom.c,v 1.45 2004/03/03 22:24:52 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -351,8 +351,6 @@ static gboolean radcom_read(wtap *wth, int *err, gchar **err_info _U_, return FALSE; /* Read error */ wth->data_offset += length; - wth->phdr.pkt_encap = wth->file_encap; - if (wth->file_encap == WTAP_ENCAP_LAPB) { /* Read the FCS. XXX - should we have some way of indicating the |