icwmpd: 9.0.9

This commit is contained in:
Suvendhu Hansa 2022-10-11 12:04:52 +00:00 committed by Vivek Kumar Dutta
parent 612ea61b0e
commit d0fe5d68e3
2 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=9.0.8
PKG_VERSION:=9.0.9
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git

View file

@ -77,7 +77,7 @@ convert_to_hex() {
OPTIND=1
while getopts ":" opt "-$optval"
do
temp=$(printf "%X" "'${OPTARG:-:}")
temp=$(printf "%02X" "'${OPTARG:-:}")
val="${val}:${temp}"
done
@ -133,14 +133,14 @@ configure_send_op125() {
opt125_len=$((opt125_len + 4))
fi
hex_opt125_len=$(printf "%X" "${opt125_len}")
hex_opt125_len=$(printf "%02X" "${opt125_len}")
opt125="${opt125}:${hex_opt125_len}"
hex_oui=$(convert_to_hex "${oui}")
if [ -z "${hex_oui}" ]; then
return 0
fi
hex_oui_len=$(printf "%X" "${oui_len}")
hex_oui_len=$(printf "%02X" "${oui_len}")
if [ "${uci}" = "network" ]; then
opt125="${opt125}:01:${hex_oui_len}${hex_oui}"
else
@ -152,7 +152,7 @@ configure_send_op125() {
return 0
fi
hex_serial_len=$(printf "%X" "${serial_len}")
hex_serial_len=$(printf "%02X" "${serial_len}")
if [ "${uci}" = "network" ]; then
opt125="${opt125}:02:${hex_serial_len}${hex_serial}"
else
@ -165,7 +165,7 @@ configure_send_op125() {
return 0
fi
hex_class_len=$(printf "%X" "${class_len}")
hex_class_len=$(printf "%02X" "${class_len}")
if [ "${uci}" = "network" ]; then
opt125="${opt125}:03:${hex_class_len}${hex_class}"
else