From bad27ca386276e64cd7a27abf3417b8a4be20fa4 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 9 Jan 2019 16:26:19 +0100 Subject: src: add igmp support Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 3 +++ include/proto.h | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/datatype.h b/include/datatype.h index f7092f06..14ece282 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -44,6 +44,7 @@ * @TYPE_DEVGROUP: devgroup code (integer subtype) * @TYPE_DSCP: Differentiated Services Code Point (integer subtype) * @TYPE_IFNAME: interface name (string subtype) + * @TYPE_IGMP: IGMP type (integer subtype) */ enum datatypes { TYPE_INVALID, @@ -88,6 +89,7 @@ enum datatypes { TYPE_BOOLEAN, TYPE_CT_EVENTBIT, TYPE_IFNAME, + TYPE_IGMP_TYPE, __TYPE_MAX }; #define TYPE_MAX (__TYPE_MAX - 1) @@ -248,6 +250,7 @@ extern const struct datatype icmp_type_type; extern const struct datatype icmp_code_type; extern const struct datatype icmpv6_code_type; extern const struct datatype icmpx_code_type; +extern const struct datatype igmp_type_type; extern const struct datatype time_type; extern const struct datatype boolean_type; diff --git a/include/proto.h b/include/proto.h index 9a9f9255..99c57a79 100644 --- a/include/proto.h +++ b/include/proto.h @@ -211,6 +211,14 @@ enum icmp_hdr_fields { ICMPHDR_MTU, }; +enum igmp_hdr_fields { + IGMPHDR_INVALID, + IGMPHDR_TYPE, + IGMPHDR_CHECKSUM, + IGMPHDR_MRT, + IGMPHDR_GROUP, +}; + enum icmp6_hdr_fields { ICMP6HDR_INVALID, ICMP6HDR_TYPE, @@ -299,6 +307,7 @@ enum sctp_hdr_fields { }; extern const struct proto_desc proto_icmp; +extern const struct proto_desc proto_igmp; extern const struct proto_desc proto_ah; extern const struct proto_desc proto_esp; extern const struct proto_desc proto_comp; -- cgit v1.2.3