-
Notifications
You must be signed in to change notification settings - Fork 47
RDKB-58910, RDKB-60010 : Move the WAN IPV6 configuration from brlan0 #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
2d5a7fe
4c17c54
bfa213f
7ea7a04
c4fbe7e
d1d4535
b8b390e
9ba634c
89263a8
ea15cda
3f261cf
ccb687c
76bfd5a
f40ee81
d8dd8ab
0fe1fd2
e27b67e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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 | ||||||||||||||||
|
|
@@ -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 | ||||||||||||||||
|
||||||||||||||||
| 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 | |
| if [ -n "$CM_IP" ] ; then | |
| 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 | |
| else | |
| echo_t "[utopia]: CM_IP is empty; starting dropbear on localhost until a valid global address is available." | |
| dropbear -E -s -b /etc/sshbanner.txt -a -r $DROPBEAR_PARAMS_1 -r $DROPBEAR_PARAMS_2 -p 127.0.0.1:22 -P $PID_FILE $USE_DEVKEYS 2>>$CONSOLEFILE | |
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sysevent set ntp_ipv6_listenwas removed fromservice_start(), but theipv6_connection_state)handler later readsntp_ipv6_listento decide whether to restart NTP. With the flag never being set to "set", the condition can remain true and trigger unnecessary/repeated restarts even when the prefix is unchanged. Either restore updatingntp_ipv6_listen(set/unset) inservice_start()or remove/adjust the downstream logic to no longer depend on this flag.