Skip to content
Snippets Groups Projects
Commit 540eba65 authored by Oussama Ghorbel's avatar Oussama Ghorbel
Browse files

update to switch_cli_ugw8-1.2.1.tar.gz / ugw 8.4.1.30

parent 86b0ea1b
Branches master
No related tags found
No related merge requests found
Showing with 16402 additions and 7626 deletions
ChangeLog 100644 → 100755
- Moved some data structures in the '.text' segment.
- Update the PortId printout for portmap fields
===============================================================================
Version 1.3.2 (requires Switch API Version: 1.1.8.6)
- Update the Switch API help text regarding some flow table programming
metering action details.
- Corrected the implementation for IFX_ETHSW_QOS_SHAPER_QUEUE_GET.
This correction requires also a Switch API update to be newer than
version 1.1.8.6, because the ioctl command read-write flags needed
to be corrected.
===============================================================================
Version 1.3.1 (requires Switch API Version: 1.1.8.5)
- Added regular metering action for flow table action part
===============================================================================
Version 1.3.0 (requires Switch API Version: 1.1.8.5)
- Corrected IFX_ETHSW_MAC_TABLE_ENTRY_READ to not printout wrong entries when
portmap bit is set in 'PortId' field. Previously Port 31 got printed out
wrongly.
- Corrected generate portmap bit printout routine (used by many commands)
to not printout port id 31, which is the portmap indication bit and not
a port id.
- The decimal and hex value printout is only done for values > 9.
- Corrected IFX_ETHSW_VLAN_PORT_MEMBER_READ printout to support portmap output
parameter.
- Corrected IFX_ETHSW_MULTICAST_TABLE_ENTRY_READ printout to support portmap
output parameter.
- The Switch CLI also contains function that are dedicated for the selected
platform only (e.g. TANTOS). Cleanup the code to not compile functions that
are meant for another platform.
- Add "dev" parameter help text printout for all command help text printout,
which is triggered by the command parameter "--help".
- Shrink down the size of helptext table by removing trailing spaces.
- IFX_ETHSW_QOS_QUEUE_PORT_GET enhancement printing unused queues and all
port queues.
- Corrected help text typos.
===============================================================================
Version 1.2.0 (requires Switch API Version: 1.1.8.4)
- Correct IFX_ETHSW_MAC_TABLE_ENTRY_READ implementation to printout entries
for physical/virtual ports which are greater than port 6.
- Accept boolean "IFX_TRUE"/"IFX_FALSE" parameter values.
- Accept short API command format, where the "IFX_ETHSW_" prefix is missing.
For instance, user could use the command "CFG_SET" instead
of "IFX_ETHSW_CFG_SET".
===============================================================================
Version 1.1.2 (requires Switch API Version: 1.1.8.1)
- Adapt IFX_ETHSW_MAC_TABLE_ENTRY_READ implementation to printout
static- or learned- entries when the MAC address is 00:00:00:00:00:00.
===============================================================================
Version 1.1.1 (requires Switch API Version: 1.1.7.1)
- Remove "bSpecialTagEgressSuppress" parameter from the IFX_ETHSW_CPU_CFG_SET
command.
===============================================================================
Version 1.1.0 (requires Switch API Version: 1.1.7)
- Add implementation for IFX_ETHSW_WOL_CFG_GET and IFX_ETHSW_WOL_CFG_SET
===============================================================================
Version 1.0.4 (requires Switch API Version: 1.1.7)
- Update the IFX_ETHSW_MAC_TABLE_ENTRY_QUERY and IFX_ETHSW_CFG_GET printout
displaying the MAC address information.
- Enhance the PortId parameter printout to also display the portmap bits, in
case the PortId MSB bit is set. This MSB bit indicated that the PortId field
carries a portmap information instead of port index value.
===============================================================================
Version 1.0.3 (requires Switch API Version: 1.1.7)
- Extend the Register set commands be bit -set and -clear parameter, for bit
manipulation
- Corrected the help description for IFX_ETHSW_QOS_METER_PORT_ASSIGN
(Jira ticket SWITCHPHY_SW-295).
- Add flow table programming parameter support for bFlowID_Action & nFlowID
(SWITCHPHY_SW-307)
- Corrected switch_cli IFX_ETHSW_MAC_TABLE_ENTRY_READ (SWITCHPHY_SW-304)
- Corrected help text parameter support for IFX_ETHSW_MAC_TABLE_ENTRY_QUERY
(SWITCHPHY_SW-303)
- Enhance CPU port configuration (SWITCHPHY_SW-302)
===============================================================================
Version 1.0.2 (requires Switch API Version: 1.1.6.7)
- Update the interface help text
===============================================================================
Version 1.0.1
- Update the description of the GSWIP flow table snooping parameter
===============================================================================
Version 1.0.0
- Add '--enable-dumpparam' to generate a test CLI application that dumps out
the ioctl parameter instead of calling the SWAPI driver.
This feature is only for testing purposes and not used inside the UGW
package.
- Update based on API interface parameter changes
===============================================================================
Version 0.0.9
- Regenerated the source code based on the Switch API interface changes and
extensions.
- Corrected some bugs regarding the MAC table printout algorithm
===============================================================================
Version 0.0.7
- Changed the IPv4 Address printout to full-up leading zeros. For instance,
print out "010.168.100.002" instead of "10.168.100.2".
- Add the automake build environment
- Corrected implementation for "IFX_ETHSW_QOS_QUEUE_PORT_GET/SET". It now
takes the "nPortId" and "nTrafficClassId" as input parameter.
- Update and corrected the help text
===============================================================================
Version 0.0.6
- Bug fix in the command parameter scanning function
(Jira ticket SWITCHPHY_SW-206)
- Change printout format for IFX_ETHSW_VERSION_GET
===============================================================================
Version 0.0.5
- Help text updated and enhanced
- Enhance usage information printout by Switch CLI version printout
- Reformated parameter printout improving readability
===============================================================================
- Moved some data structures in the '.text' segment.
- Update the PortId printout for portmap fields
===============================================================================
Version 1.3.2 (requires Switch API Version: 1.1.8.6)
- Update the Switch API help text regarding some flow table programming
metering action details.
- Corrected the implementation for IFX_ETHSW_QOS_SHAPER_QUEUE_GET.
This correction requires also a Switch API update to be newer than
version 1.1.8.6, because the ioctl command read-write flags needed
to be corrected.
===============================================================================
Version 1.3.1 (requires Switch API Version: 1.1.8.5)
- Added regular metering action for flow table action part
===============================================================================
Version 1.3.0 (requires Switch API Version: 1.1.8.5)
- Corrected IFX_ETHSW_MAC_TABLE_ENTRY_READ to not printout wrong entries when
portmap bit is set in 'PortId' field. Previously Port 31 got printed out
wrongly.
- Corrected generate portmap bit printout routine (used by many commands)
to not printout port id 31, which is the portmap indication bit and not
a port id.
- The decimal and hex value printout is only done for values > 9.
- Corrected IFX_ETHSW_VLAN_PORT_MEMBER_READ printout to support portmap output
parameter.
- Corrected IFX_ETHSW_MULTICAST_TABLE_ENTRY_READ printout to support portmap
output parameter.
- The Switch CLI also contains function that are dedicated for the selected
platform only (e.g. TANTOS). Cleanup the code to not compile functions that
are meant for another platform.
- Add "dev" parameter help text printout for all command help text printout,
which is triggered by the command parameter "--help".
- Shrink down the size of helptext table by removing trailing spaces.
- IFX_ETHSW_QOS_QUEUE_PORT_GET enhancement printing unused queues and all
port queues.
- Corrected help text typos.
===============================================================================
Version 1.2.0 (requires Switch API Version: 1.1.8.4)
- Correct IFX_ETHSW_MAC_TABLE_ENTRY_READ implementation to printout entries
for physical/virtual ports which are greater than port 6.
- Accept boolean "IFX_TRUE"/"IFX_FALSE" parameter values.
- Accept short API command format, where the "IFX_ETHSW_" prefix is missing.
For instance, user could use the command "CFG_SET" instead
of "IFX_ETHSW_CFG_SET".
===============================================================================
Version 1.1.2 (requires Switch API Version: 1.1.8.1)
- Adapt IFX_ETHSW_MAC_TABLE_ENTRY_READ implementation to printout
static- or learned- entries when the MAC address is 00:00:00:00:00:00.
===============================================================================
Version 1.1.1 (requires Switch API Version: 1.1.7.1)
- Remove "bSpecialTagEgressSuppress" parameter from the IFX_ETHSW_CPU_CFG_SET
command.
===============================================================================
Version 1.1.0 (requires Switch API Version: 1.1.7)
- Add implementation for IFX_ETHSW_WOL_CFG_GET and IFX_ETHSW_WOL_CFG_SET
===============================================================================
Version 1.0.4 (requires Switch API Version: 1.1.7)
- Update the IFX_ETHSW_MAC_TABLE_ENTRY_QUERY and IFX_ETHSW_CFG_GET printout
displaying the MAC address information.
- Enhance the PortId parameter printout to also display the portmap bits, in
case the PortId MSB bit is set. This MSB bit indicated that the PortId field
carries a portmap information instead of port index value.
===============================================================================
Version 1.0.3 (requires Switch API Version: 1.1.7)
- Extend the Register set commands be bit -set and -clear parameter, for bit
manipulation
- Corrected the help description for IFX_ETHSW_QOS_METER_PORT_ASSIGN
(Jira ticket SWITCHPHY_SW-295).
- Add flow table programming parameter support for bFlowID_Action & nFlowID
(SWITCHPHY_SW-307)
- Corrected switch_cli IFX_ETHSW_MAC_TABLE_ENTRY_READ (SWITCHPHY_SW-304)
- Corrected help text parameter support for IFX_ETHSW_MAC_TABLE_ENTRY_QUERY
(SWITCHPHY_SW-303)
- Enhance CPU port configuration (SWITCHPHY_SW-302)
===============================================================================
Version 1.0.2 (requires Switch API Version: 1.1.6.7)
- Update the interface help text
===============================================================================
Version 1.0.1
- Update the description of the GSWIP flow table snooping parameter
===============================================================================
Version 1.0.0
- Add '--enable-dumpparam' to generate a test CLI application that dumps out
the ioctl parameter instead of calling the SWAPI driver.
This feature is only for testing purposes and not used inside the UGW
package.
- Update based on API interface parameter changes
===============================================================================
Version 0.0.9
- Regenerated the source code based on the Switch API interface changes and
extensions.
- Corrected some bugs regarding the MAC table printout algorithm
===============================================================================
Version 0.0.7
- Changed the IPv4 Address printout to full-up leading zeros. For instance,
print out "010.168.100.002" instead of "10.168.100.2".
- Add the automake build environment
- Corrected implementation for "IFX_ETHSW_QOS_QUEUE_PORT_GET/SET". It now
takes the "nPortId" and "nTrafficClassId" as input parameter.
- Update and corrected the help text
===============================================================================
Version 0.0.6
- Bug fix in the command parameter scanning function
(Jira ticket SWITCHPHY_SW-206)
- Change printout format for IFX_ETHSW_VERSION_GET
===============================================================================
Version 0.0.5
- Help text updated and enhanced
- Enhance usage information printout by Switch CLI version printout
- Reformated parameter printout improving readability
===============================================================================
LICENSE 100644 → 100755
This diff is collapsed.
Makefile.am 100644 → 100755
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
AUTOMAKE_OPTIONS = foreign 1.6 nostdinc
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
# set distcheck options - see configure.in for list of modifications
DISTCHECK_CONFIGURE_FLAGS=@CONFIGURE_OPTIONS@
#switch_cli_docdir = ${prefix}/doc/switch_cli
#switch_cli_doc_DATA = \
# ChangeLog \
# LICENSE
#EXTRA_DIST = \
# $(switch_cli_doc_DATA) \
# autogen.sh
# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
# Create self extracting linux distribution
distcheck-hook:
@echo -n "Checking for the line ending style... "; \
failure_list="`find $(distdir) -path '$(distdir)/doc' -prune -o -type f -exec grep -Pqsc $$'\r\n' {} \; -printf '\tDOS line ending style: %p\n'`"; \
if test -z "$$failure_list"; then \
echo "Ok"; \
else \
echo "Fail"; \
echo "$$failure_list"; \
exit -1; \
fi
makeself.sh --gzip --notemp $(distdir) switch_cli-${PACKAGE_VERSION}.sh \
"${PACKAGE_NAME}"
lint:
@target=lint; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done;
rsm:
@target=rsm; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done;
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
AUTOMAKE_OPTIONS = foreign 1.6 nostdinc
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
# set distcheck options - see configure.in for list of modifications
DISTCHECK_CONFIGURE_FLAGS=@CONFIGURE_OPTIONS@
#switch_cli_docdir = ${prefix}/doc/switch_cli
#switch_cli_doc_DATA = \
# ChangeLog \
# LICENSE
#EXTRA_DIST = \
# $(switch_cli_doc_DATA) \
# autogen.sh
# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
# Create self extracting linux distribution
distcheck-hook:
@echo -n "Checking for the line ending style... "; \
failure_list="`find $(distdir) -path '$(distdir)/doc' -prune -o -type f -exec grep -Pqsc $$'\r\n' {} \; -printf '\tDOS line ending style: %p\n'`"; \
if test -z "$$failure_list"; then \
echo "Ok"; \
else \
echo "Fail"; \
echo "$$failure_list"; \
exit -1; \
fi
makeself.sh --gzip --notemp $(distdir) switch_cli-${PACKAGE_VERSION}.sh \
"${PACKAGE_NAME}"
lint:
@target=lint; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done;
rsm:
@target=rsm; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done;
autogen.sh 100644 → 100755
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`/
PKG_NAME="the package."
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`autoconf' installed to."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}
# grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
# grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
# (gettext --version) < /dev/null > /dev/null 2>&1 || {
# echo
# echo "**Error**: You must have \`gettext' installed."
# echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
# echo "(or a newer version if it is available)"
# DIE=1
# }
# }
# grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
# grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
# (gettext --version) < /dev/null > /dev/null 2>&1 || {
# echo
# echo "**Error**: You must have \`gettext' installed."
# echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
# echo "(or a newer version if it is available)"
# DIE=1
# }
# }
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`automake' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.6.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
NO_AUTOMAKE=yes
}
# if no automake, don't bother testing for aclocal
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
echo "installed doesn't appear recent enough."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.6.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
if test -z "$*"; then
echo "**Warning**: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line."
echo
fi
case $CC in
xlc )
am_opt=--include-deps;;
esac
for coin in `find $srcdir -name configure.in -print`
do
dr=`dirname $coin`
if test -f $dr/NO-AUTO-GEN; then
echo skipping $dr -- flagged as no auto-gen
else
echo processing $dr
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
( cd $dr
aclocalinclude="$ACLOCAL_FLAGS"
for k in $macrodirs; do
if test -d $k; then
aclocalinclude="$aclocalinclude -I $k"
##else
## echo "**Warning**: No such directory \`$k'. Ignored."
fi
done
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
if grep "sed.*POTFILES" configure.in >/dev/null; then
: do nothing -- we still have an old unmodified configure.in
else
echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
echo "Running gettextize... Ignore non-fatal messages."
./setup-gettext
echo "Making $dr/aclocal.m4 writable ..."
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi
fi
if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
echo "Running gettextize... Ignore non-fatal messages."
./setup-gettext
echo "Making $dr/aclocal.m4 writable ..."
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
echo "Running libtoolize..."
libtoolize --force --copy
fi
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude
if grep "^A[CM]_CONFIG_HEADER" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader
fi
echo "Running automake $am_opt ..."
automake --add-missing $am_opt
echo "Running autoconf ..."
autoconf
)
fi
done
#conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME
else
echo Skipping configure process.
fi
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`/
PKG_NAME="the package."
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`autoconf' installed to."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}
# grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
# grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
# (gettext --version) < /dev/null > /dev/null 2>&1 || {
# echo
# echo "**Error**: You must have \`gettext' installed."
# echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
# echo "(or a newer version if it is available)"
# DIE=1
# }
# }
# grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
# grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
# (gettext --version) < /dev/null > /dev/null 2>&1 || {
# echo
# echo "**Error**: You must have \`gettext' installed."
# echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
# echo "(or a newer version if it is available)"
# DIE=1
# }
# }
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`automake' installed."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.6.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
NO_AUTOMAKE=yes
}
# if no automake, don't bother testing for aclocal
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
echo "installed doesn't appear recent enough."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.6.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
if test -z "$*"; then
echo "**Warning**: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line."
echo
fi
case $CC in
xlc )
am_opt=--include-deps;;
esac
for coin in `find $srcdir -name configure.in -print`
do
dr=`dirname $coin`
if test -f $dr/NO-AUTO-GEN; then
echo skipping $dr -- flagged as no auto-gen
else
echo processing $dr
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
( cd $dr
aclocalinclude="$ACLOCAL_FLAGS"
for k in $macrodirs; do
if test -d $k; then
aclocalinclude="$aclocalinclude -I $k"
##else
## echo "**Warning**: No such directory \`$k'. Ignored."
fi
done
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
if grep "sed.*POTFILES" configure.in >/dev/null; then
: do nothing -- we still have an old unmodified configure.in
else
echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
echo "Running gettextize... Ignore non-fatal messages."
./setup-gettext
echo "Making $dr/aclocal.m4 writable ..."
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi
fi
if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
echo "Running gettextize... Ignore non-fatal messages."
./setup-gettext
echo "Making $dr/aclocal.m4 writable ..."
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
echo "Running libtoolize..."
libtoolize --force --copy
fi
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude
if grep "^A[CM]_CONFIG_HEADER" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader
fi
echo "Running automake $am_opt ..."
automake --add-missing $am_opt
echo "Running autoconf ..."
autoconf
)
fi
done
#conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME
else
echo Skipping configure process.
fi
configure.in 100644 → 100755
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
#
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (C) 2010, Lantiq Deutschland GmbH
For licensing information please see the file 'LICENSE' in the root folder of
this software module.])
#AC_INIT([switch_cli - Ethernet Switch API Command Line Utility],[2.0.2],[],[switch_cli])
AC_INIT([switch_cli - Ethernet Switch API Command Line Utility],[2.1.1],[],[switch_cli])
AC_CONFIG_SRCDIR([src/swapi_cli.c])
AM_INIT_AUTOMAKE
# save the configure arguments
# remove the install dir from the distcheck configure line to avoid that the
# installed binaries are deleted on distcheck. The regex will remove
# --prefix and all subsequent "non-space" chars from the configure options
# as well as the internal features.
# Note: The escaped \' are important.
# Note: Don't lin* - it would match also --enable-linux-26 (!)
CONFIGURE_OPTIONS=''
for c_arg in $ac_configure_args; do
case $c_arg in
\'--prefix=*)
#echo "skipping configure option for distcheck: $c_arg"
;;
*)
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $c_arg"
;;
esac
done
AC_SUBST(CONFIGURE_OPTIONS)
AC_CONFIG_HEADER(switch_cli_config.h)
AC_PROG_CC
AM_PROG_CC_C_O
AH_TOP(
[/******************************************************************************
Copyright (c) 2010
Lantiq Deutschland GmbH
Am Campeon 3; 85579 Neubiberg, Germany
For licensing information, see the file 'LICENSE' in the root folder of
this software module.
****************************************************************************/
#ifndef _SWITCHCLI_CONFIG_H_
#define _SWITCHCLI_CONFIG_H_]
)
AH_BOTTOM([
#endif /* _SWITCHCLI_CONFIG_H_ */
])
AC_DEFINE_UNQUOTED([SWITCHCLI_CONFIGURE_STR], ["$ac_configure_args"], [configure options string])
dnl Set kernel include path (new flag)
DEFAULT_SYS_INCL_PATH=
AC_ARG_ENABLE(kernelincl,
AS_HELP_STRING(
[--enable-kernelincl=x],
[set the kernel include path]
),
[
if test -n $enableval; then
echo enable including of system headers from $enableval
AC_SUBST([SYSTEM_INCL_PATH],[$enableval])
else
AC_SUBST([SYSTEM_INCL_PATH],[$DEFAULT_SYS_INCL_PATH])
fi
],
[
AC_SUBST([SYSTEM_INCL_PATH],[$DEFAULT_SYS_INCL_PATH])
]
)
dnl Enable Warnings
AC_ARG_ENABLE(warnings,
AS_HELP_STRING(
[--enable-warnings],
[enable Warnings]
),
[
AC_MSG_RESULT(enable Warnings)
CFLAGS="$CFLAGS -Wall -Wunused -Wpointer-arith"
]
)
dnl GSWIP support
AC_ARG_ENABLE(gswip,
AS_HELP_STRING(
[--enable-gswip],
[enable Add GSWIP specific feature support]
),
[
AC_MSG_RESULT(enable Add GSWIP feature support)
AM_CONDITIONAL(SWITCHAPI_GSWIP_SUPPORT, true)
],
[
AM_CONDITIONAL(SWITCHAPI_GSWIP_SUPPORT, false)
]
)
dnl TANTOS support
AC_ARG_ENABLE(tantos,
AS_HELP_STRING(
[--enable-tantos],
[enable Add TANTOS/AR9 specific feature support]
),
[
AC_MSG_RESULT(enable Add TANTOS/AR9 feature support)
AM_CONDITIONAL(SWITCHAPI_TANTOS_SUPPORT, true)
],
[
AM_CONDITIONAL(SWITCHAPI_TANTOS_SUPPORT, false)
]
)
dnl help text printout support
AC_ARG_ENABLE(printhelp,
AS_HELP_STRING(
[--enable-printhelp],
[enable Add help text printout for every command]
),
[
AC_MSG_RESULT(enable Add help text printout for every command)
AC_DEFINE([SWITCHAPI_HELP_TEXT],[1],[enable add help text printout for every command])
]
)
dnl enable warnings as error
AC_ARG_ENABLE(werror,
AS_HELP_STRING(
[--enable-werror],
[enable warnings as error]
),
[
if test $enableval = 'yes'; then
AM_CONDITIONAL(WERROR, true)
CFLAGS="$CFLAGS -Werror"
else
AM_CONDITIONAL(WERROR, false)
fi
],
[
AM_CONDITIONAL(WERROR, false)
]
)
dnl Dump ioctl parameter instead of driver call (Debug feature)
AC_ARG_ENABLE(dumpparam,
AS_HELP_STRING(
[--enable-dumpparam],
[enable Dump ioctl parameter instead of driver call (Debug feature)]
),
[
AC_MSG_RESULT(enable Dump ioctl parameter instead of driver call (Debug feature))
AM_CONDITIONAL(CLI_DUMP_CALL, true)
],
[
AM_CONDITIONAL(CLI_DUMP_CALL, false)
]
)
dnl set additional (device specific) CFLAGS
AC_ARG_WITH(cflags,
AS_HELP_STRING(
[--with-cflags=val],
[pass additional CFLAGS, not required for Linux 2.6]
),
[
if test "$withval" = yes; then
AC_MSG_ERROR([Please provide a value for the maximum devices]);
fi
AC_MSG_RESULT([passing additional CFLAGS $withval])
CFLAGS="$CFLAGS $withval"
]
)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
echo \
"------------------------------------------------------------------------
Configuration:
Source code location: ${srcdir}
System path: ${SYSTEM_INCL_PATH}
Compiler: ${CC}
Compiler flags: ${CFLAGS}
Host System Type: ${host}
Install path: ${prefix}
------------------------------------------------------------------------"
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
#
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (C) 2010, Lantiq Deutschland GmbH
For licensing information please see the file 'LICENSE' in the root folder of
this software module.])
#AC_INIT([switch_cli - Ethernet Switch API Command Line Utility],[2.0.2],[],[switch_cli])
AC_INIT([switch_cli - Ethernet Switch API Command Line Utility],[2.1.1],[],[switch_cli])
AC_CONFIG_SRCDIR([src/swapi_cli.c])
AM_INIT_AUTOMAKE
# save the configure arguments
# remove the install dir from the distcheck configure line to avoid that the
# installed binaries are deleted on distcheck. The regex will remove
# --prefix and all subsequent "non-space" chars from the configure options
# as well as the internal features.
# Note: The escaped \' are important.
# Note: Don't lin* - it would match also --enable-linux-26 (!)
CONFIGURE_OPTIONS=''
for c_arg in $ac_configure_args; do
case $c_arg in
\'--prefix=*)
#echo "skipping configure option for distcheck: $c_arg"
;;
*)
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $c_arg"
;;
esac
done
AC_SUBST(CONFIGURE_OPTIONS)
AC_CONFIG_HEADER(switch_cli_config.h)
AC_PROG_CC
AM_PROG_CC_C_O
AH_TOP(
[/******************************************************************************
Copyright (c) 2010
Lantiq Deutschland GmbH
Am Campeon 3; 85579 Neubiberg, Germany
For licensing information, see the file 'LICENSE' in the root folder of
this software module.
****************************************************************************/
#ifndef _SWITCHCLI_CONFIG_H_
#define _SWITCHCLI_CONFIG_H_]
)
AH_BOTTOM([
#endif /* _SWITCHCLI_CONFIG_H_ */
])
AC_DEFINE_UNQUOTED([SWITCHCLI_CONFIGURE_STR], ["$ac_configure_args"], [configure options string])
dnl Set kernel include path (new flag)
DEFAULT_SYS_INCL_PATH=
AC_ARG_ENABLE(kernelincl,
AS_HELP_STRING(
[--enable-kernelincl=x],
[set the kernel include path]
),
[
if test -n $enableval; then
echo enable including of system headers from $enableval
AC_SUBST([SYSTEM_INCL_PATH],[$enableval])
else
AC_SUBST([SYSTEM_INCL_PATH],[$DEFAULT_SYS_INCL_PATH])
fi
],
[
AC_SUBST([SYSTEM_INCL_PATH],[$DEFAULT_SYS_INCL_PATH])
]
)
dnl Enable Warnings
AC_ARG_ENABLE(warnings,
AS_HELP_STRING(
[--enable-warnings],
[enable Warnings]
),
[
AC_MSG_RESULT(enable Warnings)
CFLAGS="$CFLAGS -Wall -Wunused -Wpointer-arith"
]
)
dnl GSWIP support
AC_ARG_ENABLE(gswip,
AS_HELP_STRING(
[--enable-gswip],
[enable Add GSWIP specific feature support]
),
[
AC_MSG_RESULT(enable Add GSWIP feature support)
AM_CONDITIONAL(SWITCHAPI_GSWIP_SUPPORT, true)
],
[
AM_CONDITIONAL(SWITCHAPI_GSWIP_SUPPORT, false)
]
)
dnl TANTOS support
AC_ARG_ENABLE(tantos,
AS_HELP_STRING(
[--enable-tantos],
[enable Add TANTOS/AR9 specific feature support]
),
[
AC_MSG_RESULT(enable Add TANTOS/AR9 feature support)
AM_CONDITIONAL(SWITCHAPI_TANTOS_SUPPORT, true)
],
[
AM_CONDITIONAL(SWITCHAPI_TANTOS_SUPPORT, false)
]
)
dnl help text printout support
AC_ARG_ENABLE(printhelp,
AS_HELP_STRING(
[--enable-printhelp],
[enable Add help text printout for every command]
),
[
AC_MSG_RESULT(enable Add help text printout for every command)
AC_DEFINE([SWITCHAPI_HELP_TEXT],[1],[enable add help text printout for every command])
]
)
dnl enable warnings as error
AC_ARG_ENABLE(werror,
AS_HELP_STRING(
[--enable-werror],
[enable warnings as error]
),
[
if test $enableval = 'yes'; then
AM_CONDITIONAL(WERROR, true)
CFLAGS="$CFLAGS -Werror"
else
AM_CONDITIONAL(WERROR, false)
fi
],
[
AM_CONDITIONAL(WERROR, false)
]
)
dnl Dump ioctl parameter instead of driver call (Debug feature)
AC_ARG_ENABLE(dumpparam,
AS_HELP_STRING(
[--enable-dumpparam],
[enable Dump ioctl parameter instead of driver call (Debug feature)]
),
[
AC_MSG_RESULT(enable Dump ioctl parameter instead of driver call (Debug feature))
AM_CONDITIONAL(CLI_DUMP_CALL, true)
],
[
AM_CONDITIONAL(CLI_DUMP_CALL, false)
]
)
dnl set additional (device specific) CFLAGS
AC_ARG_WITH(cflags,
AS_HELP_STRING(
[--with-cflags=val],
[pass additional CFLAGS, not required for Linux 2.6]
),
[
if test "$withval" = yes; then
AC_MSG_ERROR([Please provide a value for the maximum devices]);
fi
AC_MSG_RESULT([passing additional CFLAGS $withval])
CFLAGS="$CFLAGS $withval"
]
)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
echo \
"------------------------------------------------------------------------
Configuration:
Source code location: ${srcdir}
System path: ${SYSTEM_INCL_PATH}
Compiler: ${CC}
Compiler flags: ${CFLAGS}
Host System Type: ${host}
Install path: ${prefix}
------------------------------------------------------------------------"
src/Makefile.am 100644 → 100755
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
bin_PROGRAMS = switch_cli
switch_cli_prgdir=../
#todo: include Makefile.inc
# nodist_switch_cli_SOURCES =
AM_CFLAGS = -Wall
switch_cli_SOURCES = @srcdir@/swapi_cli.c \
@srcdir@/ltq_cli_lib.c \
@srcdir@/gsw_cli_fkts.c \
@srcdir@/gsw_cli_fkts_common.c \
@srcdir@/gsw_tbl.c \
@srcdir@/gsw_cli_fkts_flow.c
#if SWAPI_PAE_SUPPORT
# switch_cli_SOURCES += @srcdir@/gsw_cli_pae.c
# AM_CFLAGS += -DSWAPI_PAE_SUPPORT
#endif
if CLI_DUMP_CALL
AM_CFLAGS += -DCLI_DUMP_CALL
switch_cli_SOURCES += @srcdir@/ltq_cli_dump_call.c
endif
EXTRA_DIST = \
@srcdir@/ltq_cli_lib.h \
@srcdir@/gsw_cli_fkts.h \
@srcdir@/gsw_tbl.h \
@srcdir@/ltq_cli_lib.c \
@srcdir@/ltq_cli_dump_call.c \
@srcdir@/gsw_cli_fkts.c \
@srcdir@/gsw_cli_fkts_common.c \
@srcdir@/gsw_cli_fkts_flow.c \
@srcdir@/gsw_tbl.c \
@srcdir@/swapi_cli.c
INCLUDES = \
-I@srcdir@ \
-I@abs_top_builddir@ \
-I@top_srcdir@ \
-I@srcdir@/../include \
-I@SYSTEM_INCL_PATH@
lint:
@flint @srcdir@/../std_lx.lnt $(INCLUDES) \
$(switch_cli_SOURCES)
rsm:
rsm -fa -n -s -Ta $(switch_cli_SOURCES) $(EXTRA_DIST)
install-exec-hook: $(bin_PROGRAMS)
@for p in $(bin_PROGRAMS); do \
$(STRIP) $(DESTDIR)$(bindir)/$$p; \
echo " $(STRIP) $(DESTDIR)$(bindir)/$$p"; \
done
#
# Copyright (c) 2010
# Lantiq Deutschland GmbH
# Am Campeon 3; 85579 Neubiberg, Germany
#
# For licensing information, see the file 'LICENSE' in the root folder of
# this software module.
#
bin_PROGRAMS = switch_cli
switch_cli_prgdir=../
#todo: include Makefile.inc
# nodist_switch_cli_SOURCES =
AM_CFLAGS = -Wall
switch_cli_SOURCES = @srcdir@/swapi_cli.c \
@srcdir@/ltq_cli_lib.c \
@srcdir@/gsw_cli_fkts.c \
@srcdir@/gsw_cli_fkts_common.c \
@srcdir@/gsw_tbl.c \
@srcdir@/gsw_cli_fkts_flow.c \
@srcdir@/gsw_cli_mac.c \
@srcdir@/gsw_cli_lmac.c \
@srcdir@/gsw_cli_adap.c
#if SWAPI_PAE_SUPPORT
# switch_cli_SOURCES += @srcdir@/gsw_cli_pae.c
# AM_CFLAGS += -DSWAPI_PAE_SUPPORT
#endif
if CLI_DUMP_CALL
AM_CFLAGS += -DCLI_DUMP_CALL
switch_cli_SOURCES += @srcdir@/ltq_cli_dump_call.c
endif
EXTRA_DIST = \
@srcdir@/ltq_cli_lib.h \
@srcdir@/gsw_cli_fkts.h \
@srcdir@/gsw_tbl.h \
@srcdir@/ltq_cli_lib.c \
@srcdir@/ltq_cli_dump_call.c \
@srcdir@/gsw_cli_fkts.c \
@srcdir@/gsw_cli_mac.c \
@srcdir@/gsw_cli_lmac.c \
@srcdir@/gsw_cli_adap.c \
@srcdir@/gsw_cli_fkts_common.c \
@srcdir@/gsw_cli_fkts_flow.c \
@srcdir@/gsw_tbl.c \
@srcdir@/swapi_cli.c
INCLUDES = \
-I@srcdir@ \
-I@abs_top_builddir@ \
-I@top_srcdir@ \
-I@srcdir@/../include \
-I@SYSTEM_INCL_PATH@
lint:
@flint @srcdir@/../std_lx.lnt $(INCLUDES) \
$(switch_cli_SOURCES)
rsm:
rsm -fa -n -s -Ta $(switch_cli_SOURCES) $(EXTRA_DIST)
install-exec-hook: $(bin_PROGRAMS)
@for p in $(bin_PROGRAMS); do \
$(STRIP) $(DESTDIR)$(bindir)/$$p; \
echo " $(STRIP) $(DESTDIR)$(bindir)/$$p"; \
done
src/Makefile.in 100644 → 100755
This diff is collapsed.
File mode changed from 100644 to 100755
This diff is collapsed.
src/gsw_cli_fkts.c 100644 → 100755
This diff is collapsed.
src/gsw_cli_fkts.h 100644 → 100755
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/****************************************************************************
Copyright 2010
Lantiq Deutschland GmbH
Am Campeon 3; 85579 Neubiberg, Germany
For licensing information, see the file 'LICENSE' in the root folder of
this software module.
*****************************************************************************/
#ifndef _MACSEC_CMD_DECLARE_H
#define _MACSEC_CMD_DECLARE_H
int gsw_macsec_reg_read(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_reg_write(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_init(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_exit(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_sa_rd(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_sptag(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_mtinfo(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_get_mtinfo(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_get_sptag(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_get_rmon(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_dbg_rmon_enc(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_dbg_rmon_dec(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_dbg_init_enc(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_rmon_clr(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_flow_rd(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_dbg_init_dis(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_sa_dbg(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_dbg_info(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_testcase_kat1(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_teststs_kat1(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_testcase_kat2(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_teststs_kat2(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_testcase_kat3(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_teststs_kat3(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_cpsts(int argc, char *argv[], void *fd, int numPar);
int gsw_macsec_print_pdata(int argc, char *argv[], void *fd, int numPar);
#endif /* _MACSEC_CMD_DECLARE_H*/
src/gsw_tbl.c 100644 → 100755
This diff is collapsed.
src/gsw_tbl.h 100644 → 100755
......@@ -17,6 +17,8 @@
#endif
extern const GSW_CommandTable_t cmdTable[];
extern const GSW_CommandTable_t cmdTableMacsec[];
//#ifdef SWITCHAPI_HELP_TEXT
extern const char *HelpText[];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment