diff --git a/monitor/control.c b/monitor/control.c
index f00fe58..54335a5 100644
--- a/monitor/control.c
+++ b/monitor/control.c
free(data);
}
-static void mgmt_unconf_index_added(uint16_t len, const void *buf)
+static void mgmt_index_added(uint16_t len, const void *buf)
{
- printf("@ Unconfigured Index Added\n");
+ printf("@ Index Added\n");
packet_hexdump(buf, len);
}
-static void mgmt_index_added(uint16_t len, const void *buf)
+static void mgmt_index_removed(uint16_t len, const void *buf)
{
- printf("@ Index Added\n");
+ printf("@ Index Removed\n");
packet_hexdump(buf, len);
}
-static void mgmt_index_removed(uint16_t len, const void *buf)
+static void mgmt_unconf_index_added(uint16_t len, const void *buf)
{
- printf("@ Index Removed\n");
+ printf("@ Unconfigured Index Added\n");
+
+ packet_hexdump(buf, len);
+}
+
+static void mgmt_unconf_index_removed(uint16_t len, const void *buf)
+{
+ printf("@ Unconfigured Index Removed\n");
packet_hexdump(buf, len);
}
case MGMT_EV_UNCONF_INDEX_ADDED:
mgmt_unconf_index_added(size, data);
break;
+ case MGMT_EV_UNCONF_INDEX_REMOVED:
+ mgmt_unconf_index_removed(size, data);
+ break;
default:
printf("* Unknown control (code %d len %d)\n", opcode, size);
packet_hexdump(data, size);