diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-30 09:21:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-30 09:21:41 +0000 |
commit | 329b59c858a0d7aa0be758ad0894aea0e615147e (patch) | |
tree | b7def1905e1a2b746b531ce5b98f7fa1a707ebe5 /wiretap/netmon.c | |
parent | ecb2a3939e04415ce80090a8e0431a57621a1e9c (diff) |
Uniformly use "sizeof (struct netmon_atm_hdr)" for the size of Network
Monitor's ATM pseudo-header.
Fix a message.
svn path=/trunk/; revision=5303
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r-- | wiretap/netmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index e76ffa93fc..b40f9f8cab 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -1,6 +1,6 @@ /* netmon.c * - * $Id: netmon.c,v 1.52 2002/04/30 08:48:27 guy Exp $ + * $Id: netmon.c,v 1.53 2002/04/30 09:21:41 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -400,7 +400,7 @@ static gboolean netmon_read(wtap *wth, int *err, long *data_offset) * Uh-oh, the packet isn't big enough to even * have a pseudo-header. */ - g_message("netmon: atmsnoop file has a %u-byte packet, too small to have even an ATM pseudo-header\n", + g_message("netmon: ATM file has a %u-byte packet, too small to have even an ATM pseudo-header\n", packet_size); *err = WTAP_ERR_BAD_RECORD; return FALSE; @@ -623,7 +623,7 @@ static gboolean netmon_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, } if (wdh->encap == WTAP_ENCAP_ATM_SNIFFER) - atm_hdrsize = 6+6+2+2; + atm_hdrsize = sizeof (struct netmon_atm_hdr); else atm_hdrsize = 0; switch (wdh->file_type) { |