Skip to content

Commit 7b599ff

Browse files
committed
Co-pilot and Reviewer-s review comment addressed
1 parent d979af5 commit 7b599ff

File tree

9 files changed

+12
-15
lines changed

9 files changed

+12
-15
lines changed

source/firewall/firewall_ipv6.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,11 @@ void do_ipv6_filter_table(FILE *fp){
862862
}
863863
#endif /*_HUB4_PRODUCT_REQ_*/
864864

865-
#if defined(CISCO_CONFIG_DHCPV6_PREFIX_DELEGATION) && !defined(_CBR_PRODUCT_REQ_)
865+
#if defined(CISCO_CONFIG_DHCPV6_PREFIX_DELEGATION) && ! defined(_CBR_PRODUCT_REQ_)
866866
/*Add a simple logic here to make traffic allowed for lan interfaces
867867
* exclude primary lan*/
868868
prepare_ipv6_multinet(fp);
869-
#endif
869+
#endif
870870
#if !defined(_XER5_PRODUCT_REQ_) && !defined (_SCER11BEL_PRODUCT_REQ_) && !defined(_COSA_QCA_ARM_) //wan0 is not applicable for XER5
871871
/* not allow ping wan0 from brlan0 */
872872
int i;
@@ -1717,8 +1717,8 @@ void do_ipv6_filter_table(FILE *fp){
17171717
FIREWALL_DEBUG("Exiting prepare_ipv6_firewall \n");
17181718
}
17191719

1720-
#if defined(CISCO_CONFIG_DHCPV6_PREFIX_DELEGATION) && !defined(_CBR_PRODUCT_REQ_)
1721-
int prepare_ipv6_multinet(FILE *fp)
1720+
#if defined(CISCO_CONFIG_DHCPV6_PREFIX_DELEGATION) && ! defined(_CBR_PRODUCT_REQ_)
1721+
static int prepare_ipv6_multinet(FILE *fp)
17221722
{
17231723
char active_insts[32] = {0};
17241724
char lan_pd_if[128] = {0};

source/scripts/init/c_registration/15_dhcpv6_server.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const char* SERVICE_CUSTOM_EVENTS_BUSINESS[] = {
7474
"dhcpv6_server-stop|/etc/utopia/service.d/service_dhcpv6_server_bci.sh",
7575
"dhcpv6_server-restart|/etc/utopia/service.d/service_dhcpv6_server_bci.sh",
7676
"ipv6_prefix_delegation|/etc/utopia/service.d/service_dhcpv6_server_bci.sh",
77-
"dhcpv6_option_changed|/etc/utopia/service.d/service_dhcpv6_server_bci.sh|NULL|"TUPLE_FLAG_EVENT,NULL
77+
"dhcpv6_option_changed|/etc/utopia/service.d/service_dhcpv6_server_bci.sh|NULL|"TUPLE_FLAG_EVENT,
78+
NULL
7879
};
7980
#else
8081
const char* SERVICE_CUSTOM_EVENTS[] = {

source/scripts/init/c_registration/20_routing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const char* SERVICE_CUSTOM_EVENTS_RESIDENTIAL[] = {
7070
"staticroute-restart|/etc/utopia/service.d/service_routed.sh|NULL|"TUPLE_FLAG_EVENT,
7171
#ifdef WAN_FAILOVER_SUPPORTED
7272
"routeset-ula|/usr/bin/service_routed|NULL|"TUPLE_FLAG_EVENT,
73-
"routeunset-ula|/usr/bin//service_routed|NULL|"TUPLE_FLAG_EVENT,
73+
"routeunset-ula|/usr/bin/service_routed|NULL|"TUPLE_FLAG_EVENT,
7474
#endif
7575
NULL
7676
};

source/scripts/init/c_registration/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ if ENABLE_HOTSPOT_SERVICE
133133
15_hotspot_SOURCES = 15_hotspot.c
134134
endif
135135
if ONESTACK_PRODUCT_REQ
136-
LDFLAGS += -lrdkb_feature_mode_gate -ldevicemode
136+
LDFLAGS += -lrdkb_feature_mode_gate
137137
endif

source/scripts/init/service.d/service_crond.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ service_start ()
120120
echo "1 */12 * * * /usr/ccsp/tad/FileHandle_Monitor.sh" >> $CRONTAB_FILE
121121

122122

123-
if [ "$MODEL_NUM" = "DPC3941B" ] || [ "$MODEL_NUM" = "DPC3939B" ] || [ "$MODEL_NUM" = "CGA4131COM" ] || [ "$MODEL_NUM" = "CGA4332COM" ] || [ "$MODEL_NUM" = "SG417DBCT" ]; then
123+
if [ "$MODEL_NUM" = "DPC3941B" ] || [ "$MODEL_NUM" = "DPC3939B" ] || [ "$MODEL_NUM" = "CGA4131COM" ] || [ "$MODEL_NUM" = "CGA4332COM" ]; then
124124
echo "*/15 * * * * /usr/ccsp/tad/log_staticIP_client_info.sh" >> $CRONTAB_FILE
125125
fi
126126

source/scripts/init/service.d/service_registration_functions.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ sm_register_one_event() {
306306
if [ "NULL" = "$SMR_EVENT" ] ; then
307307
return 0
308308
fi
309-
echo "[DEBUG] sm_rm_event ${SMR_SERVICE} ${SMR_EVENT_NAME}"
310309
# if this service has already registered for this event, then cancel the previous registration
311310
# this is probably overkill since we likely already called sm_unregister, but better safe than sorry
312311
sm_rm_event "${SMR_SERVICE}" "${SMR_EVENT_NAME}"
@@ -445,7 +444,6 @@ sm_register() {
445444
IFS=';'
446445
for custom in $SM_CUSTOM_EVENTS ; do
447446
if [ -n "$custom" ] && [ " " != "$custom" ] ; then
448-
echo "[DHCPV6][DEBUG] Registering custom event: '$custom' for service '$SM_SERVICE'"
449447
IFS=$SAVEIFS
450448
sm_register_one_event "$SM_SERVICE" "$custom"
451449
IFS=';'

source/service_ipv6/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/source/include \
2626
AM_LDFLAGS = -lccsp_common -lsecure_wrapper $(DBUS_LIBS)
2727

2828
if ONESTACK_PRODUCT_REQ
29-
AM_LDFLAGS += -ldevicemode -lonestack_syscfg -lonestack_log -lrdkb_feature_mode_gate
29+
AM_LDFLAGS += -lrdkb_feature_mode_gate
3030
endif
3131
service_ipv6_SOURCES = service_ipv6.c service_ipv6_main.c
3232

source/service_routed/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ service_routed_LDADD = $(top_builddir)/source/util/utils/libutopiautil.la \
4646
-ltelemetry_msgsender
4747
service_routed_LDFLAGS = -L${PKG_CONFIG_SYSROOT_DIR}${libdir}
4848
if ONESTACK_PRODUCT_REQ
49-
service_routed_LDFLAGS += -ldevicemode -lonestack_syscfg -lonestack_log -lrdkb_feature_mode_gate
49+
service_routed_LDFLAGS += -lrdkb_feature_mode_gate
5050
endif
5151
if CORE_NET_LIB_FEATURE_SUPPORT
5252
service_routed_LDFLAGS += -lnet

source/util/utils/Makefile.am

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ libutopiautil_la_CPPFLAGS = -I$(top_srcdir)/source/include \
2626
$(DBUS_CFLAGS)
2727

2828
libutopiautil_la_LDFLAGS = -lccsp_common $(DBUS_LIBS)
29-
if ONESTACK_PRODUCT_REQ
30-
libutopiautil_la_LDFLAGS += -ldevicemode -lonestack_syscfg -lonestack_log -lrdkb_feature_mode_gate
31-
endif
29+

0 commit comments

Comments
 (0)