Commit 238ffe40 authored by gauthier's avatar gauthier

PGW-C: Static IP address allocation

parent 92741a25
...@@ -542,9 +542,13 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ ...@@ -542,9 +542,13 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED; cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED;
cause.pce = 1; cause.pce = 1;
} }
// Static IP address allocation
} else if ((paa_res) && (paa.is_ip_assigned())) {
set_paa = true;
} }
} else { } else {
// TODO allocation via DHCP // TODO allocation via DHCP
Logger::pgwc_app().info( "TODO PAA via DHCP");
} }
} }
break; break;
...@@ -559,6 +563,9 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ ...@@ -559,6 +563,9 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED; cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED;
cause.pce = 1; cause.pce = 1;
} }
// Static IP address allocation
} else if ((paa_res) && (paa.is_ip_assigned())) {
set_paa = true;
} }
} }
break; break;
...@@ -573,6 +580,8 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ ...@@ -573,6 +580,8 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED; cause.cause_value = ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED;
cause.pce = 1; cause.pce = 1;
} }
} else if ((paa_res) && (paa.is_ip_assigned())) {
set_paa = true;
} }
} }
break; break;
......
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