Skip to content
Open
Changes from all commits
Commits
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
7 changes: 3 additions & 4 deletions source/WanManager/wanmgr_net_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,6 @@ ANSC_STATUS WanManager_VerifyMAPTConfiguration(ipc_map_data_t *dhcp6cMAPTMsgBody
return ANSC_STATUS_FAILURE;
}

//The sharing ratio cannot be zero, a value of zero means the sharing ratio is 1
if (dhcp6cMAPTMsgBody->ratio == 0)
dhcp6cMAPTMsgBody->ratio = 1;

#ifdef FEATURE_MAPT_DEBUG
WanManager_UpdateMaptLogFile(dhcp6cMAPTMsgBody);
#endif
Expand Down Expand Up @@ -895,6 +891,9 @@ ANSC_STATUS WanManager_VerifyMAPTConfiguration(ipc_map_data_t *dhcp6cMAPTMsgBody
MaptConfig->isPSIDComputed = TRUE;
}

/* Ownership moved from DHCPManager: Compute ratio after psidLen is resolved */
dhcp6cMAPTMsgBody->ratio = (MaptConfig->psidLen > 0) ? (1 << MaptConfig->psidLen) : 1;
Comment thread
sivaraj-comcast marked this conversation as resolved.

inet_pton(AF_INET, dhcp6cMAPTMsgBody->ruleIPv4Prefix, &(result));

ipValue = htonl(result.s_addr) + ipv4IndexValue;
Expand Down