summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c
index b5f257c..e6eefe4 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -146,6 +146,21 @@ static struct parser h[NTA_MAX] = {
.attr = ATTR_DCCP_ROLE,
.size = NTA_SIZE(sizeof(uint8_t)),
},
+ [NTA_ICMP_TYPE] = {
+ .parse = parse_u8,
+ .attr = ATTR_ICMP_TYPE,
+ .size = NTA_SIZE(sizeof(uint8_t)),
+ },
+ [NTA_ICMP_CODE] = {
+ .parse = parse_u8,
+ .attr = ATTR_ICMP_CODE,
+ .size = NTA_SIZE(sizeof(uint8_t)),
+ },
+ [NTA_ICMP_ID] = {
+ .parse = parse_u16,
+ .attr = ATTR_ICMP_ID,
+ .size = NTA_SIZE(sizeof(uint16_t)),
+ },
};
static void