vty: Classify the application that we run and provide different options

The VTY interface is used for three different application and not
every option will make sense for every app. In the long run we will
split the vty interface but for now we just qualify the application.
diff --git a/src/vty_interface.c b/src/vty_interface.c
index 3ad2fe0..f5eb0f1 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -1,7 +1,7 @@
 /* VTY code for the Cellmgr */
 /*
- * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
- * (C) 2010 by On-Waves
+ * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2010-2011 by On-Waves
  * All Rights Reserved
  *
  * This program is free software: you can redistribute it and/or modify
@@ -295,7 +295,7 @@
 {
 	if (bsc.link_set)
 		dump_stats(vty, bsc.link_set);
-	if (bsc.m2ua_set)
+	if (bsc.m2ua_set && bsc.app == APP_STP)
 		dump_stats(vty, bsc.m2ua_set);
 	return CMD_SUCCESS;
 }
@@ -328,7 +328,8 @@
       SHOW_STR "Display current state of linksets\n")
 {
 	dump_state(vty, "MTP ", bsc.link_set);
-	dump_state(vty, "M2UA", bsc.m2ua_set);
+	if (bsc.app == APP_STP)
+		dump_state(vty, "M2UA", bsc.m2ua_set);
 	return CMD_SUCCESS;
 }