Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2d5a7fe
RDKB-58910, RDKB-60010 : Move the WAN IPV6 configuration from brlan0
S-Parthiban-Selvaraj Sep 18, 2025
4c17c54
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
GoutamD2905 Sep 18, 2025
bfa213f
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
jonathanwu-csv Nov 7, 2025
7ea7a04
RDKB-60010 : Remove sky specific from the NTP script
jonathanwu-csv Nov 24, 2025
c4fbe7e
Revert "RDKB-60010 : Remove sky specific from the NTP script"
jonathanwu-csv Nov 25, 2025
d1d4535
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
jonathanwu-csv Nov 25, 2025
b8b390e
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Jan 15, 2026
9ba634c
revert to older commit to understand the changes
S-Parthiban-Selvaraj Jan 15, 2026
89263a8
Remvoing the use of brlan0 for the Sky platforms
S-Parthiban-Selvaraj Jan 16, 2026
ea15cda
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Feb 23, 2026
3f261cf
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Apr 2, 2026
ccb687c
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Apr 14, 2026
76bfd5a
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Apr 15, 2026
f40ee81
removing LANIPV6Support dependancy
S-Parthiban-Selvaraj Apr 21, 2026
d8dd8ab
Merge branch 'feature/wan_Ipv6_address_from_IAPD' of ssh://github.com…
S-Parthiban-Selvaraj Apr 21, 2026
0fe1fd2
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj Apr 24, 2026
e27b67e
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
S-Parthiban-Selvaraj May 6, 2026
3c07f54
Merge branch 'develop' into feature/wan_Ipv6_address_from_IAPD
snayak002c May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ DHCP_CONF=/etc/dnsmasq.conf
DHCP_STATIC_HOSTS_FILE=/etc/dhcp_static_hosts
DHCP_OPTIONS_FILE=/var/dhcp_options
SelfHealSupport=`sysevent get SelfhelpWANConnectionDiagSupport`
# LANIPV6Support only used for identifying the ULA usage
LANIPV6Support=`sysevent get LANIPv6GUASupport`
if [ "$BOX_TYPE" = "HUB4" ] || [ "$BOX_TYPE" = "SR300" ] || [ "$BOX_TYPE" = "SE501" ] || [ "$BOX_TYPE" = "SR213" ] || [ "$SelfHealSupport" = "true" ]; then
LOCAL_DHCP_CONF=/tmp/dnsmasq.conf
Expand Down
71 changes: 3 additions & 68 deletions source/scripts/init/service.d/service_ntpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ NTP_CONF_TMP=/tmp/ntp.conf
NTP_CONF_QUICK_SYNC=/tmp/ntp_quick_sync.conf
LOCKFILE=/var/tmp/service_ntpd.pid
BIN=ntpd
WAN_IPv6_UP=0
QUICK_SYNC_PID=""
QUICK_SYNC_DONE=0

Expand Down Expand Up @@ -171,33 +170,7 @@ wan_wait ()
#Make sure WAN interface has an IPv4 or IPv6 address before telling NTP to listen on Interface
WAN_IPv4=`ifconfig -a "$WAN_INTERFACE" | grep inet | grep -v inet6 | tr -s " " | cut -d ":" -f2 | cut -d " " -f1 | head -n1`

if [ "$BOX_TYPE" = "HUB4" ] || [ "$BOX_TYPE" = "SR300" ] || [ "$BOX_TYPE" = "SE501" ] || [ "$BOX_TYPE" = "SR213" ] || [ "$BOX_TYPE" = "WNXL11BWL" ] || [ "$LANIPV6Support" = "true" ]; then
CURRENT_WAN_IPV6_STATUS=`sysevent get ipv6_connection_state`
if [ "up" = "$CURRENT_WAN_IPV6_STATUS" ] ; then
ULAprefix=`sysevent get ula_address |cut -d ':' -f1`
if [ -z "$ULAprefix" ]; then
WAN_IPv6=`ifconfig "$NTPD_IPV6_INTERFACE" | grep inet6 | grep Global | awk '/inet6/{print $3}' | grep -v 'fdd7' | cut -d '/' -f1 | head -n1`
else
WAN_IPv6=`ifconfig "$NTPD_IPV6_INTERFACE" | grep inet6 | grep Global | awk '/inet6/{print $3}' | grep -v 'fdd7' | grep -v "$ULAprefix" | cut -d '/' -f1 | head -n1`
fi
WAN_IPv6_UP=1
# SHARMAN-2301
#This change is for UK MAP-T SR213. When NTP servers are IPv4 only and there is no IPv4 WAN IP on the interface we will use $NTPD_IPV6_INTERFACE(currently brlan0) ipv4 ip to sort ntpd daemon socket problems and routing.
if [ "$BOX_TYPE" = "SR213" ] || [ "$LANIPV6Support" == "true" ]; then
MAPT_STATS=$(sysevent get mapt_config_flag)
echo_t "SERVICE_NTPD : MAPT_STATS=$MAPT_STATS"
if [ x"$MAPT_STATS" = x"set" ]; then
IPV4_CONN_STATE=$(sysevent get ipv4_connection_state)
echo_t "SERVICE_NTPD : IPV4_CONN_STATE=$IPV4_CONN_STATE"
if [ x"$IPV4_CONN_STATE" != x"up" ]; then
WAN_IPv4=`ifconfig "$NTPD_IPV6_INTERFACE" | grep inet\ \addr | cut -d ':' -f2 |cut -d ' ' -f1`
fi
fi
fi
fi
else
WAN_IPv6=`ifconfig "$WAN_INTERFACE" | grep inet6 | grep Global | awk '/inet6/{print $3}' | cut -d '/' -f1 | head -n1`
fi
WAN_IPv6=`ifconfig "$WAN_INTERFACE" | grep inet6 | grep Global | awk '/inet6/{print $3}' | cut -d '/' -f1 | head -n1`

if [ -n "$WAN_IPv4" ] || [ -n "$WAN_IPv6" ]; then
if [ "$2" = "quickSync" ];then
Expand Down Expand Up @@ -572,19 +545,6 @@ service_start ()
echo "interface ignore wildcard" >> $NTP_CONF_TMP
echo "interface listen 127.0.0.1" >> $NTP_CONF_TMP
echo "interface listen ::1" >> $NTP_CONF_TMP
Comment thread
S-Parthiban-Selvaraj marked this conversation as resolved.
#SHARMAN-2301
#This change is for UK MAP-T SR213. Since we will not have any of the global IP on WAN interface, We need to add the IPv6 interface (currently brlan0) to the config file
if [ "$BOX_TYPE" = "SR213" ] || [ "$LANIPV6Support" = "true" ]; then
MAPT_STATS=$(sysevent get mapt_config_flag)
echo_t "SERVICE_NTPD : MAPT_STATS=$MAPT_STATS"
if [ x"$MAPT_STATS" = x"set" ]; then
IPV4_CONN_STATE=$(sysevent get ipv4_connection_state)
echo_t "SERVICE_NTPD : IPV4_CONN_STATE=$IPV4_CONN_STATE"
if [ x"$IPV4_CONN_STATE" != x"up" ]; then
echo "interface listen $NTPD_IPV6_INTERFACE" >> $NTP_CONF_TMP
fi
fi
fi

if [ -n "$WAN_IP" ]; then
echo "interface listen $WAN_IP" >> $NTP_CONF_TMP
Expand All @@ -593,21 +553,6 @@ service_start ()
fi
fi

if [ "$BOX_TYPE" = "HUB4" ] || [ "$BOX_TYPE" = "SR300" ] || [ "$BOX_TYPE" = "SE501" ] || [ "$BOX_TYPE" = "SR213" ] || [ "$BOX_TYPE" = "WNXL11BWL" ] || [ "$LANIPV6Support" = "true" ]; then
# SKYH4-2006: To listen v6 server, update the conf file after getting valid v6 IP(CURRENT_WAN_V6_PREFIX)
CURRENT_WAN_IPV6_STATUS=`sysevent get ipv6_connection_state`

if [ "up" = "$CURRENT_WAN_IPV6_STATUS" ] ; then
CURRENT_WAN_V6_PREFIX=`syscfg get ipv6_prefix_address`
if [ -n "$CURRENT_WAN_V6_PREFIX" ]; then
echo "interface listen $CURRENT_WAN_V6_PREFIX" >> $NTP_CONF_TMP
sysevent set ntp_ipv6_listen "set"
else
sysevent set ntp_ipv6_listen "unset"
fi
fi
fi

if [ "$MULTI_CORE" = "yes" ] && [ "$NTPD_IMMED_PEER_SYNC" != "true" ]; then
echo "interface listen $HOST_INTERFACE_IP" >> $NTP_CONF_TMP
fi
Expand All @@ -630,18 +575,8 @@ service_start ()
uptime_ms=$((uptime*1000))
echo_t "SERVICE_NTPD : Starting NTP Quick Sync" >> $NTPD_LOG_NAME
t2ValNotify "SYS_INFO_NTPSTART_split" $uptime_ms
if [ "$BOX_TYPE" = "HUB4" ] || [ "$BOX_TYPE" = "SR300" ] || [ "$BOX_TYPE" = "SE501" ] || [ "$BOX_TYPE" = "SR213" ] || [ "$BOX_TYPE" = "WNXL11BWL" ] || [ "$ntpHealthCheck" = "true" ]; then
if [ $WAN_IPv6_UP -eq 1 ]; then
$BIN -c $NTP_CONF_QUICK_SYNC --interface "$QUICK_SYNC_WAN_IP" -x -gq -l $NTPD_LOG_NAME &
QUICK_SYNC_PID=$!
else
$BIN -c $NTP_CONF_QUICK_SYNC --interface "$QUICK_SYNC_WAN_IP" -x -gq -4 -l $NTPD_LOG_NAME &
QUICK_SYNC_PID=$!
fi
else
$BIN -c $NTP_CONF_QUICK_SYNC --interface "$QUICK_SYNC_WAN_IP" -x -gq -l $NTPD_LOG_NAME &
QUICK_SYNC_PID=$!
fi
$BIN -c $NTP_CONF_QUICK_SYNC --interface "$QUICK_SYNC_WAN_IP" -x -gq -l $NTPD_LOG_NAME &
QUICK_SYNC_PID=$!
if [ -n "$QUICK_SYNC_PID" ];then
set_ntp_quicksync_status
fi
Expand Down
14 changes: 0 additions & 14 deletions source/scripts/init/service.d/service_sshd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,6 @@ do_start() {
commandString="$commandString -p [$CM_IPV6]:22"
fi
fi
elif [ "$BOX_TYPE" = "SCER11BEL" -a "$LANIPV6Support" = "true" ]; then
# In IPv6 only case (MAP-T), and if IPv6 GUA on LAN enabled case, use brlan0 interface to get v6 global address.
CM_IPV6=`ip -6 addr show dev brlan0 scope global | awk '/inet/{print $2}' | cut -d '/' -f1 | head -n1`
if [ ! -z "$CM_IPV6" ]; then
commandString="$commandString -p [$CM_IPV6]:22"
fi

# Check IPv4 address.
CM_IPV4=`ip -4 addr show dev $CMINTERFACE scope global | awk '/inet/{print $2}' | cut -d '/' -f1`
if [ ! -z "$CM_IPV4" ]; then
commandString="$commandString -p [$CM_IPV4]:22"
fi
elif [ "$BOX_TYPE" = "WNXL11BWL" ]; then
CM_IP=`ip -4 addr show dev $CMINTERFACE scope global | awk '/inet/{print $2}' | cut -d '/' -f1 | head -n1`
if [ ! -z $CM_IP ]; then
Expand Down Expand Up @@ -270,8 +258,6 @@ do_start() {
if ([ "$MANUFACTURE" = "Technicolor" ] || [ "$MODEL_NUM" = "SG417DBCT" ] || [ "$BOX_TYPE" = "WNXL11BWL" ]) ; then
echo_t "dropbear -E -s -K 60 -b /etc/sshbanner.txt ${commandString} -r ${DROPBEAR_PARAMS_1} -r ${DROPBEAR_PARAMS_2} -a -P ${PID_FILE}"
dropbear -E -s -b /etc/sshbanner.txt $commandString -r $DROPBEAR_PARAMS_1 -r $DROPBEAR_PARAMS_2 -a -P $PID_FILE -K 60 $USE_DEVKEYS 2>>$CONSOLEFILE
elif [ "$BOX_TYPE" = "SCER11BEL" -a "$LANIPV6Support" = "true" ]; then
dropbear -E -s -b /etc/sshbanner.txt $commandString -r $DROPBEAR_PARAMS_1 -r $DROPBEAR_PARAMS_2 -a -P $PID_FILE -K 60 $USE_DEVKEYS 2>>$CONSOLEFILE
else
dropbear -E -s -b /etc/sshbanner.txt -a -r $DROPBEAR_PARAMS_1 -r $DROPBEAR_PARAMS_2 -p [$CM_IP]:22 -P $PID_FILE $USE_DEVKEYS 2>>$CONSOLEFILE
Comment thread
S-Parthiban-Selvaraj marked this conversation as resolved.
fi
Expand Down
Loading