summaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/igmp_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/igmp/igmp_format.c')
-rw-r--r--src/plugins/igmp/igmp_format.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/igmp/igmp_format.c b/src/plugins/igmp/igmp_format.c
index 1ae04788a97..08b5f68a74d 100644
--- a/src/plugins/igmp/igmp_format.c
+++ b/src/plugins/igmp/igmp_format.c
@@ -62,6 +62,21 @@ format_igmp_filter_mode (u8 * s, va_list * args)
}
u8 *
+format_igmp_mode (u8 * s, va_list * args)
+{
+ igmp_mode_t mode = va_arg (*args, igmp_mode_t);
+
+ switch (mode)
+ {
+#define _(n,f) case IGMP_MODE_##f: return (format (s, "%s", #f));
+ foreach_igmp_mode
+#undef _
+ }
+ return (format (s, "unknown:%d", mode));
+
+}
+
+u8 *
format_igmp_header (u8 * s, va_list * args)
{
igmp_header_t *hdr = va_arg (*args, igmp_header_t *);