[qca-nss-cleints] Use standard enum/const type
Fixed critical issues in map-t client module.
Change-Id: I0704a93685e96b504536e671545742878fac680c
Signed-off-by: ratheesh kannoth <rkannoth@codeaurora.org>
diff --git a/map/map-t/nss_connmgr_map_t.c b/map/map-t/nss_connmgr_map_t.c
index 1d6fe2a..94cc726 100644
--- a/map/map-t/nss_connmgr_map_t.c
+++ b/map/map-t/nss_connmgr_map_t.c
@@ -332,13 +332,13 @@
* Validate local rule parameters
*/
switch (rule_pair->local.style) {
- case NSS_MAP_T_STYLES_MAP_T:
+ case NAT46_XLATE_MAP:
if (!nss_connmgr_mapt_validate_rule_style_mapt(dev, &rule_pair->local, rule_num, true, stats)) {
return false;
}
break;
- case NSS_MAP_T_STYLES_RFC6052:
+ case NAT46_XLATE_RFC6052:
if (!nss_connmgr_mapt_validate_rule_style_rfc6052(dev, &rule_pair->local, rule_num, true, stats)) {
return false;
}
@@ -353,13 +353,13 @@
* Validate remote rule parameters
*/
switch (rule_pair->remote.style) {
- case NSS_MAP_T_STYLES_MAP_T:
+ case NAT46_XLATE_MAP:
if (!nss_connmgr_mapt_validate_rule_style_mapt(dev, &rule_pair->remote, rule_num, false, stats)) {
return false;
}
break;
- case NSS_MAP_T_STYLES_RFC6052:
+ case NAT46_XLATE_RFC6052:
if (!nss_connmgr_mapt_validate_rule_style_rfc6052(dev, &rule_pair->remote, rule_num, false, stats)) {
return false;
}
@@ -796,7 +796,7 @@
*/
static int nss_connmgr_map_t_dev_down(struct net_device *dev)
{
- uint32_t if_number;
+ int if_number;
nss_tx_status_t status;
struct nss_map_t_msg maptmsg;
struct nss_map_t_instance_rule_deconfig_msg *maptcfg;