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.
remotes/origin/master-1.1.x
Eric Leblond 14 years ago committed by Victor Julien
parent 685e0e1a63
commit a8ae1c42c3

@ -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; \

Loading…
Cancel
Save