summaryrefslogtreecommitdiff
path: root/signature.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-27 16:58:52 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-27 16:58:52 -0800
commit20f164f5e4825a605d97906b9ac6bf4222b9eef4 (patch)
tree04809c19cd29804223dd912b0c92a3adb403aeb4 /signature.h
parente40b5d4303c922852b78e06d9332104ead10c206 (diff)
downloadtcpdump-20f164f5e4825a605d97906b9ac6bf4222b9eef4.tar.gz
Don't overwrite packet data when checking the signature.
Instead, make a copy, and overwrite that.
Diffstat (limited to 'signature.h')
-rw-r--r--signature.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/signature.h b/signature.h
index a052df86..6df7227d 100644
--- a/signature.h
+++ b/signature.h
@@ -21,7 +21,8 @@
/* signature checking result codes */
#define SIGNATURE_VALID 0
#define SIGNATURE_INVALID 1
-#define CANT_CHECK_SIGNATURE 2
+#define CANT_ALLOCATE_COPY 2
+#define CANT_CHECK_SIGNATURE 3
extern const struct tok signature_check_values[];
extern int signature_verify(netdissect_options *, const u_char *, u_int, u_char *);