command_mld6igmp

来自「MLDv2 support igmpv3 lite」· 代码 · 共 68 行

TXT
68
字号
#!/bin/sh## $XORP: xorp/contrib/mld6igmp_lite/command_mld6igmp,v 1.1 2008/07/10 11:06:34 pavlin Exp $### Send commands to a running PIM process.#MODULE_NAME="IGMP"HOSTNAME=`hostname`echo "Sending command to $MODULE_NAME on $HOSTNAME..."# Conditionally set ${srcdir} if it wasn't assigned (e.g., by `gmake check`)if [ "X${srcdir}" = "X" ] ; then srcdir=`dirname $0` ; fi## The optional first argument should be either -4 or -6 to specify# IPv4 or IPv6 command# # The next argument should be the command to call.# The rest of the arguments should be the arguments to the command to call.#usage(){	echo "Usage: $0 [-4 | -6 ] <xrl_command> [xrl_command_arguments ... ]"}if [ $# -lt 1 ] ; then	usage;	exit 1ficase "${1}" in	-4)		if [ $# -lt 2 ] ; then			usage;			exit 1		fi		IP_VERSION=IPV4		shift		;;	-6)		if [ $# -lt 2 ] ; then			usage;			exit 1		fi		IP_VERSION=IPV6		shift		;;	*)		# XXX: IP version defaults to IPv4		IP_VERSION=IPV4		;;esac. ${srcdir}/../cli/xrl_cli_shell_funcs.sh. ${srcdir}/../fea/xrl_mfea_shell_funcs.sh. ${srcdir}/../mld6igmp/xrl_mld6igmp_shell_funcs.sh$*exit $?

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?