Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #2033: 0011-Ping-shell-utility.patch

File 0011-Ping-shell-utility.patch, 1.5 KB (added by Ric Claus, on 03/02/12 at 01:11:00)

shellConfig.h changes for ping

  • cpukit/libmisc/shell/shellconfig.h

    From a935aa9ad0f310f4c0eefacc0d5aa5a41320ad19 Mon Sep 17 00:00:00 2001
    From: Ric Claus <claus@SLAC.Stanford.edu>
    Date: Thu, 1 Mar 2012 17:22:00 -0800
    Subject: [PATCH 11/14] Ping shell utility
    
    ---
     cpukit/libmisc/shell/shellconfig.h |    9 ++++++++-
     1 files changed, 8 insertions(+), 1 deletions(-)
    
    diff --git a/cpukit/libmisc/shell/shellconfig.h b/cpukit/libmisc/shell/shellconfig.h
    index 971df25..44d0229 100644
    a b extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command; 
    8181  extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
    8282  extern rtems_shell_cmd_t rtems_shell_ROUTE_Command;
    8383  extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command;
     84  extern rtems_shell_cmd_t rtems_shell_PING_Command;
    8485#endif
    8586
    8687extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
    extern rtems_shell_alias_t *rtems_shell_Initial_aliases[]; 
    423424          defined(CONFIGURE_SHELL_COMMAND_NETSTATS)
    424425        &rtems_shell_NETSTATS_Command,
    425426      #endif
     427
     428      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
     429           !defined(CONFIGURE_SHELL_NO_COMMAND_PING)) || \
     430          defined(CONFIGURE_SHELL_COMMAND_PING)
     431        &rtems_shell_PING_Command,
     432      #endif
    426433    #endif
    427434
    428     /* Miscanellous shell commands */
     435    /* Miscellaneous shell commands */
    429436    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
    430437          && !defined(CONFIGURE_SHELL_NO_COMMAND_RTC)) \
    431438        || defined(CONFIGURE_SHELL_COMMAND_RTC)