diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-06-25 17:35:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-06-25 17:35:17 +0000 |
commit | 9fa514388ccd0de9074a015f278a2518cc163571 (patch) | |
tree | 01eb89169cbd73e62c4a1a40562ec96509fe632e /wiretap/wtap.h | |
parent | 4d94e1746f0944715c495b00b6d8c4c8cd179eca (diff) |
GCC 3.3 noticed that checking whether the length of the slice is > 65535
is pointless, as it's a 16-bit unsigned quantity. Remove those checks -
but note in a comment that WTAP_MAX_PACKET_SIZE must be at least 65535
(as there might well be link-layer types with packets at least that
large).
svn path=/trunk/; revision=7934
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 903da1b15d..298f966921 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1,6 +1,6 @@ /* wtap.h * - * $Id: wtap.h,v 1.137 2003/05/15 07:14:46 guy Exp $ + * $Id: wtap.h,v 1.138 2003/06/25 17:35:17 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -175,6 +175,7 @@ /* * Maximum packet size we'll support. + * It must be at least 65535. */ #define WTAP_MAX_PACKET_SIZE 65535 |