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; }