aboutsummaryrefslogtreecommitdiffstats
path: root/src/nSocket/nstack_rd/nstack_rd.c
diff options
context:
space:
mode:
authorRahul Gupta <rahul.g.chimera@gmail.com>2018-06-26 11:19:13 +0530
committerRahul Gupta <rahul.g.chimera@gmail.com>2018-06-26 11:19:13 +0530
commit82b5e45ebf316afd7daa97d9f9b7b75636fb4e64 (patch)
treefabed7d2c0cc187206b2f2e768a4afaafa046bd8 /src/nSocket/nstack_rd/nstack_rd.c
parent24cbcfaa6fa1121dec1a029a1df114f065341156 (diff)
Spell correction
Change-Id: Icc062e358398ecf0fc46b7a55ce1c37a71aee650 Signed-off-by: Rahul Gupta <rahul.g.chimera@gmail.com>
Diffstat (limited to 'src/nSocket/nstack_rd/nstack_rd.c')
-rw-r--r--src/nSocket/nstack_rd/nstack_rd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/nSocket/nstack_rd/nstack_rd.c b/src/nSocket/nstack_rd/nstack_rd.c
index ee598ad..eb38bca 100644
--- a/src/nSocket/nstack_rd/nstack_rd.c
+++ b/src/nSocket/nstack_rd/nstack_rd.c
@@ -62,12 +62,12 @@ rd_data_proc g_rd_cpy[RD_DATA_TYPE_MAX] = {
},
};
-rd_data_defaut_ip g_defualt_ip_config[] = {
+rd_data_defaut_ip g_default_ip_config[] = {
{{"127.0.0.1"}, {RD_LINUX_PLANENAME}, 32},
{{"0.0.0.0"}, {RD_LINUX_PLANENAME}, 32},
};
-rd_data_defaut_protocol g_defualt_protcol[] = {
+rd_data_defaut_protocol g_default_protcol[] = {
{0xf001, {RD_STACKX_PLANENAME}},
};
@@ -122,9 +122,9 @@ nstack_rd_get_stackid (nstack_rd_key * pkey, int *stackid)
*stackid = item.stack_id;
return NSTACK_RD_SUCCESS;
}
- if (g_rd_cpy[type].rd_item_defualt)
+ if (g_rd_cpy[type].rd_item_default)
{
- *stackid = g_rd_cpy[type].rd_item_defualt ((void *) pkey);
+ *stackid = g_rd_cpy[type].rd_item_default ((void *) pkey);
}
else
{
@@ -137,7 +137,7 @@ nstack_rd_get_stackid (nstack_rd_key * pkey, int *stackid)
/*****************************************************************************
* Prototype : nstack_rd_sys_default
-* Description : sys defualt rd info,
+* Description : sys default rd info,
* Input : None
* Output : None
* Return Value : int
@@ -152,12 +152,12 @@ nstack_rd_sys_default ()
rd_data_defaut_protocol *pprotodata = NULL;
int icnt = 0, iindex = 0;
- /*get the ip defualt route */
+ /*get the ip default route */
for (icnt = 0;
- icnt < sizeof (g_defualt_ip_config) / sizeof (rd_data_defaut_ip);
+ icnt < sizeof (g_default_ip_config) / sizeof (rd_data_defaut_ip);
icnt++)
{
- pdata = &g_defualt_ip_config[icnt];
+ pdata = &g_default_ip_config[icnt];
for (iindex = 0; iindex < g_rd_map_num; iindex++)
{
if (0 ==
@@ -186,12 +186,12 @@ nstack_rd_sys_default ()
(RD_DATA_TYPE_IP), &item);
}
- /*get the protocol defualt route */
+ /*get the protocol default route */
(void) MEMSET_S (&item, sizeof (item), 0, sizeof (item));
for (icnt = 0;
- icnt < sizeof (g_defualt_protcol) / sizeof (rd_data_defaut_ip); icnt++)
+ icnt < sizeof (g_default_protcol) / sizeof (rd_data_defaut_ip); icnt++)
{
- pprotodata = &g_defualt_protcol[icnt];
+ pprotodata = &g_default_protcol[icnt];
for (iindex = 0; iindex < g_rd_map_num; iindex++)
{
if (0 ==
@@ -346,7 +346,7 @@ nstack_rd_sys ()
return NSTACK_RD_FAIL;
}
- /*insert defualt rd info */
+ /*insert default rd info */
nstack_rd_sys_default ();
/*get from config file */