diff options
author | Patrick McHardy <kaber@trash.net> | 2009-07-28 14:17:42 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-07-28 14:17:42 +0200 |
commit | 11c5f88f81cb628988ddad405c5295fa237b3311 (patch) | |
tree | 70771dbc0149fa3f59d2d24e1b1379b3fadf1500 /include/headers.h | |
parent | eaefa819182d968ba6f4958fc8d909165feee0b6 (diff) |
payload: add DCCP packet type definitions
# nft describe dccp type
payload expression, datatype dccp_pkttype (DCCP packet type) (basetype integer), 4 bits
pre-defined symbolic constants:
request 0x0
response 0x1
data 0x2
ack 0x3
dataack 0x4
closereq 0x5
close 0x6
reset 0x7
sync 0x8
syncack 0x9
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/headers.h')
-rw-r--r-- | include/headers.h | 14 |
1 files changed, 14 insertions, 0 deletions
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; |