From 0377ae08172191b6772b439ef47d1e141e9c6418 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 4 Mar 2011 15:40:29 +0100 Subject: [PATCH] Reduce SCTP_HEADER_LEN to reflect actual pkt header size. --- src/decode-sctp.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/decode-sctp.h b/src/decode-sctp.h index 4f44a1c706..878a583c28 100644 --- a/src/decode-sctp.h +++ b/src/decode-sctp.h @@ -24,11 +24,12 @@ #ifndef __DECODE_SCTP_H__ #define __DECODE_SCTP_H__ -#define SCTP_HEADER_LEN 24 +/** size of the packet header without any chunk headers */ +#define SCTP_HEADER_LEN 12 /* XXX RAW* needs to be really 'raw', so no ntohs there */ -#define SCTP_GET_RAW_SRC_PORT(sctph) ntohs((sctph)->sh_sport) -#define SCTP_GET_RAW_DST_PORT(sctph) ntohs((sctph)->sh_dport) +#define SCTP_GET_RAW_SRC_PORT(sctph) ntohs((sctph)->sh_sport) +#define SCTP_GET_RAW_DST_PORT(sctph) ntohs((sctph)->sh_dport) #define SCTP_GET_SRC_PORT(p) SCTP_GET_RAW_SRC_PORT(p->sctph) #define SCTP_GET_DST_PORT(p) SCTP_GET_RAW_DST_PORT(p->sctph)