From a8ae1c42c3509ee9bf77968ea4f8991fbf046f8b Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 30 Aug 2011 18:11:47 +0200 Subject: [PATCH] Fix macro about default packet size Being pessimistic about packet default size has side effect in some module. Falling back to the sane correct value. --- src/decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decode.h b/src/decode.h index 876b3cc2e4..4d8fe60fd6 100644 --- a/src/decode.h +++ b/src/decode.h @@ -172,7 +172,7 @@ typedef struct Address_ { #define GET_PKT_LEN(p) ((p)->pktlen) #define GET_PKT_DATA(p) ((((p)->ext_pkt) == NULL ) ? (p)->pkt : (p)->ext_pkt) #define GET_PKT_DIRECT_DATA(p) (p)->pkt -#define GET_PKT_DIRECT_MAX_SIZE(p) default_packet_size - 1 +#define GET_PKT_DIRECT_MAX_SIZE(p) default_packet_size #define SET_PKT_LEN(p, len) do { \ (p)->pktlen = len; \