~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to wiretap/vms.c

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* vms.c
2
2
 *
3
 
 * $Id: vms.c 15534 2005-08-25 21:29:54Z ulfl $
 
3
 * $Id: vms.c 19814 2006-11-05 22:46:44Z ulfl $
4
4
 *
5
5
 * Wiretap Library
6
6
 * Copyright (c) 2001 by Marc Milgram <ethereal@mmilgram.NOSPAMmail.net>
144
144
#define VMS_LINE_LENGTH              240
145
145
 
146
146
static gboolean vms_read(wtap *wth, int *err, gchar **err_info,
147
 
    long *data_offset);
148
 
static gboolean vms_seek_read(wtap *wth, long seek_off,
 
147
    gint64 *data_offset);
 
148
static gboolean vms_seek_read(wtap *wth, gint64 seek_off,
149
149
    union wtap_pseudo_header *pseudo_header, guint8 *pd, int len,
150
150
    int *err, gchar **err_info);
151
151
static gboolean parse_single_hex_dump_line(char* rec, guint8 *buf,
210
210
{
211
211
  char  buf[VMS_LINE_LENGTH];
212
212
  guint reclen, line;
213
 
  long mpos;
 
213
  gint64 mpos;
214
214
  
215
215
  buf[VMS_LINE_LENGTH-1] = '\0';
216
216
  
278
278
 
279
279
/* Find the next packet and parse it; called from wtap_read(). */
280
280
static gboolean vms_read(wtap *wth, int *err, gchar **err_info,
281
 
    long *data_offset)
 
281
    gint64 *data_offset)
282
282
{
283
 
    long   offset = 0;
 
283
    gint64   offset = 0;
284
284
    guint8    *buf;
285
285
    int    pkt_len;
286
286
 
313
313
 
314
314
/* Used to read packets in random-access fashion */
315
315
static gboolean
316
 
vms_seek_read (wtap *wth, long seek_off,
 
316
vms_seek_read (wtap *wth, gint64 seek_off,
317
317
    union wtap_pseudo_header *pseudo_header _U_,
318
318
    guint8 *pd, int len, int *err, gchar **err_info)
319
319
{