Commit a842e31a authored by Rohan's avatar Rohan Committed by Rohan

IE UE IP Address - fix for bit s/d

parent e0101792
...@@ -728,6 +728,9 @@ int session_update_sm_context_procedure::run( ...@@ -728,6 +728,9 @@ int session_update_sm_context_procedure::run(
// local_fteid.from_core_fteid(qos_flow.qos_flow.dl_fteid); // local_fteid.from_core_fteid(qos_flow.qos_flow.dl_fteid);
if (sps->ipv4) { if (sps->ipv4) {
ue_ip_address.v4 = 1; ue_ip_address.v4 = 1;
// Bit 3 – S/D: TS 29.244 R16, 8.2.62 In the PDI IE, if this bit is set to "0", this indicates a Source IP address;
// if this bit is set to "1", this indicates a Destination IP address.
ue_ip_address.sd = 1;
ue_ip_address.ipv4_address.s_addr = sps->ipv4_address.s_addr; ue_ip_address.ipv4_address.s_addr = sps->ipv4_address.s_addr;
} }
if (sps->ipv6) { if (sps->ipv6) {
...@@ -789,6 +792,9 @@ int session_update_sm_context_procedure::run( ...@@ -789,6 +792,9 @@ int session_update_sm_context_procedure::run(
if (sps->ipv4) { if (sps->ipv4) {
ue_ip_address.v4 = 1; ue_ip_address.v4 = 1;
// Bit 3 – S/D: TS 29.244 R16, 8.2.62 In the PDI IE, if this bit is set to "0", this indicates a Source IP address;
// if this bit is set to "1", this indicates a Destination IP address.
ue_ip_address.sd = 1;
ue_ip_address.ipv4_address.s_addr = sps->ipv4_address.s_addr; ue_ip_address.ipv4_address.s_addr = sps->ipv4_address.s_addr;
} }
if (sps->ipv6) { if (sps->ipv6) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment