Browse Source

pimd: Remove motd tweaking.

Everton Marques 5 years ago
parent
commit
74b4fad93e
3 changed files with 1 additions and 16 deletions
  1. 1 1
      lib/command.c
  2. 0 2
      pimd/Makefile.am
  3. 0 13
      pimd/pim_main.c

+ 1 - 1
lib/command.c

@@ -105,7 +105,7 @@ static struct cmd_node config_node =
 };
 
 /* Default motd string. */
-const char *default_motd =
+static const char *default_motd =
 "\r\n\
 Hello, this is " QUAGGA_PROGNAME " (version " QUAGGA_VERSION ").\r\n\
 " QUAGGA_COPYRIGHT "\r\n\

+ 0 - 2
pimd/Makefile.am

@@ -21,7 +21,6 @@
 
 # PIM_DEBUG_BYDEFAULT: Automatically enables all pimd "debug ..." commands
 # PIM_ZCLIENT_DEBUG: Support for internal ZEBRA client debugging
-# PIM_MOTD_VERSION: Includes pimd version in default MOTD
 # PIM_CHECK_RECV_IFINDEX_SANITY: Compare socket ifindex with recv ifindex
 # PIM_REPORT_RECV_IFINDEX_MISMATCH: Report sock/recv ifindex mismatch
 # PIM_ENFORCE_LOOPFREE_MFC: Refuse adding looping MFC entries
@@ -34,7 +33,6 @@ PIM_DEFS =
 PIM_DEFS += -DPIM_CHECK_RECV_IFINDEX_SANITY
 #PIM_DEFS += -DPIM_REPORT_RECV_IFINDEX_MISMATCH
 PIM_DEFS += -DPIM_ZCLIENT_DEBUG
-PIM_DEFS += -DPIM_MOTD_VERSION
 PIM_DEFS += -DPIM_ENFORCE_LOOPFREE_MFC
 #PIM_DEFS += -DPIM_UNEXPECTED_KERNEL_UPCALL
 #PIM_DEFS += -DPIM_USE_QUAGGA_GETTIME

+ 0 - 13
pimd/pim_main.c

@@ -46,7 +46,6 @@ extern int zclient_debug;
 #endif
 
 extern struct host host;
-extern const char *default_motd;
 
 char config_default[] = SYSCONFDIR PIMD_DEFAULT_CONFIG;
 
@@ -246,18 +245,6 @@ int main(int argc, char** argv, char** envp) {
   zlog_notice("Quagga %s " PIMD_PROGNAME " %s starting, VTY interface at port TCP %d",
 	      QUAGGA_VERSION, PIMD_VERSION, vty_port);
 
-#ifdef PIM_MOTD_VERSION
-  /* Tweak default MOTD to include pimd version */
-  zlog_notice("PIM_MOTD_VERSION: adding pimd version to default MOTD");
-  if (host.motd == default_motd) {
-    host.motd =
-      "\r\n\
-Hello, this is " QUAGGA_PROGNAME " " QUAGGA_VERSION " " PIMD_PROGNAME " " PIMD_VERSION_STR "\r\n\
-" QUAGGA_COPYRIGHT "\r\n\
-\r\n";
-  }
-#endif
-
 #ifdef PIM_DEBUG_BYDEFAULT
   zlog_notice("PIM_DEBUG_BYDEFAULT: Enabling all debug commands");
   PIM_DO_DEBUG_PIM_EVENTS;