From 380cf5c603d7366630498d902d6268ca1f6b146b Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 6 Jun 2024 20:12:20 +0200 Subject: [PATCH] Remove routing table init in nas_config() The routing table is temporarily removed in this commit and introduced in one of the next commits. --- openair2/RRC/NAS/nas_config.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/openair2/RRC/NAS/nas_config.c b/openair2/RRC/NAS/nas_config.c index 087d3c81a0..461ed51ef4 100644 --- a/openair2/RRC/NAS/nas_config.c +++ b/openair2/RRC/NAS/nas_config.c @@ -221,24 +221,6 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, const char *if LOG_E(OIP,"Interface %s couldn't be configured (ip address %s, mask %s broadcast address %s)\n", interfaceName, ipAddress, netMask, broadcastAddress); - int res; - char command_line[500]; - res = sprintf(command_line, - "ip rule add from %s/32 table %d && " - "ip rule add to %s/32 table %d && " - "ip route add default dev %s%d table %d", - ipAddress, interface_id - 1 + 10000, - ipAddress, interface_id - 1 + 10000, - UE_NAS_USE_TUN ? "oaitun_ue" : "oip", - interface_id, interface_id - 1 + 10000); - - if (res < 0) { - LOG_E(OIP,"Could not create ip rule/route commands string\n"); - return res; - } - - background_system(command_line); - return returnValue; }