Diff between 5509d611747b693997548ecb106d87fc965c57d9 and 87911c470f45c12115ddc05412b03cf75a510f2b

Changed Files

File Additions Deletions Status
monitor/control.c +16 -6 modified

Full Patch

diff --git a/monitor/control.c b/monitor/control.c
index f00fe58..54335a5 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -70,23 +70,30 @@ static void free_data(void *user_data)
 	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);
 }
@@ -698,6 +705,9 @@ void control_message(uint16_t opcode, const void *data, uint16_t size)
 	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);