diff options
Diffstat (limited to 'include/exthdr.h')
-rw-r--r-- | include/exthdr.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/exthdr.h b/include/exthdr.h index 3959a65c..084daba5 100644 --- a/include/exthdr.h +++ b/include/exthdr.h @@ -4,6 +4,21 @@ #include <proto.h> #include <tcpopt.h> #include <ipopt.h> +#include <dccpopt.h> + +enum exthdr_desc_id { + EXTHDR_DESC_UNKNOWN = 0, + EXTHDR_DESC_HBH, + EXTHDR_DESC_RT, + EXTHDR_DESC_RT0, + EXTHDR_DESC_RT2, + EXTHDR_DESC_SRH, + EXTHDR_DESC_FRAG, + EXTHDR_DESC_DST, + EXTHDR_DESC_MH, + __EXTHDR_DESC_MAX +}; +#define EXTHDR_DESC_MAX (__EXTHDR_DESC_MAX - 1) /** * struct exthdr_desc - extension header description @@ -14,8 +29,8 @@ */ struct exthdr_desc { const char *name; + enum exthdr_desc_id id; uint8_t type; - int proto_key; struct proto_hdr_template templates[10]; }; |