Project

General

Profile

Bug #315 » 0001-Fix-macro-about-default-packet-size.patch

Eric Leblond, 08/30/2011 11:12 AM

View differences:

src/decode.h
#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; \
(2-2/2)