Commit 2c5a5f9f authored by matzakos's avatar matzakos

Remove redundant second call for initialization of oai ue tun interface

parent d7ed6d62
...@@ -867,8 +867,6 @@ void *nas_nrue_task(void *args_p) ...@@ -867,8 +867,6 @@ void *nas_nrue_task(void *args_p)
if (*(payload_container + offset) == 0x29) { // PDU address IEI if (*(payload_container + offset) == 0x29) { // PDU address IEI
if ((*(payload_container+offset+1) == 0x05) && (*(payload_container +offset+2) == 0x01)) { // IPV4 if ((*(payload_container+offset+1) == 0x05) && (*(payload_container +offset+2) == 0x01)) { // IPV4
nas_getparams(); nas_getparams();
// FixME: seems wrong: pdcp_module_init has already created the interface
netlink_init_tun("ue", 1);
sprintf(baseNetAddress, "%d.%d", *(payload_container+offset+3), *(payload_container+offset+4)); sprintf(baseNetAddress, "%d.%d", *(payload_container+offset+3), *(payload_container+offset+4));
int third_octet = *(payload_container+offset+5); int third_octet = *(payload_container+offset+5);
int fourth_octet = *(payload_container+offset+6); int fourth_octet = *(payload_container+offset+6);
......
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