summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datatype.h2
-rw-r--r--include/headers.h14
-rw-r--r--include/payload.h1
3 files changed, 17 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h
index ea18f719..aa270c0e 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -18,6 +18,7 @@
* @TYPE_INET_SERVICE: internet service (integer subtype)
* @TYPE_ICMP_TYPE: ICMP type codes (integer subtype)
* @TYPE_TCP_FLAG: TCP flag (bitmask subtype)
+ * @TCPE_DCCP_PKTTYPE: DCCP packet type (integer subtype)
* @TYPE_MH_TYPE: Mobility Header type (integer subtype)
* @TYPE_TIME: relative time
* @TYPE_MARK: packet mark (integer subtype)
@@ -46,6 +47,7 @@ enum datatypes {
TYPE_INET_SERVICE,
TYPE_ICMP_TYPE,
TYPE_TCP_FLAG,
+ TYPE_DCCP_PKTTYPE,
TYPE_MH_TYPE,
TYPE_TIME,
TYPE_MARK,
diff --git a/include/headers.h b/include/headers.h
index 5bbfdc49..469d6740 100644
--- a/include/headers.h
+++ b/include/headers.h
@@ -39,6 +39,20 @@ struct ip_comp_hdr {
# define IPPROTO_DCCP 33
#endif
+enum dccp_pkt_type {
+ DCCP_PKT_REQUEST = 0,
+ DCCP_PKT_RESPONSE,
+ DCCP_PKT_DATA,
+ DCCP_PKT_ACK,
+ DCCP_PKT_DATAACK,
+ DCCP_PKT_CLOSEREQ,
+ DCCP_PKT_CLOSE,
+ DCCP_PKT_RESET,
+ DCCP_PKT_SYNC,
+ DCCP_PKT_SYNCACK,
+ DCCP_PKT_INVALID,
+};
+
struct dccp_hdr {
uint16_t dccph_sport,
dccph_dport;
diff --git a/include/payload.h b/include/payload.h
index 3a7150bd..8f5398b7 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -258,6 +258,7 @@ enum dccp_hdr_fields {
DCCPHDR_INVALID,
DCCPHDR_SPORT,
DCCPHDR_DPORT,
+ DCCPHDR_TYPE,
};
enum sctp_hdr_fields {