Reduce SCTP_HEADER_LEN to reflect actual pkt header size.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent 005dc599a6
commit 0377ae0817

@ -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)

Loading…
Cancel
Save