Create tun_if module for TUN interface handling

Move openair3/RRC/NAS/nas_config.c to common/utils/tun_if.c, and remove
the former from all targets.
This commit is contained in:
Robert Schmidt
2024-08-02 15:31:04 +02:00
parent 39e7839f19
commit 89d89a7564
12 changed files with 32 additions and 40 deletions
+2 -2
View File
@@ -78,7 +78,7 @@
#include "T.h"
#include "LTE_MeasResults.h"
#include "RRC/NAS/nas_config.h"
#include "common/utils/tun_if.h"
#include "rrc_eNB_S1AP.h"
#include "rrc_eNB_GTPV1U.h"
@@ -5257,7 +5257,7 @@ rrc_eNB_process_RRCConnectionReconfigurationComplete(
ctxt_pP->module_id);
char ip[20];
snprintf(ip, sizeof(ip), "10.0.%d.%d", ctxt_pP->module_id + 1, ctxt_pP->module_id + 1);
oip_ifup = nas_config(ctxt_pP->module_id, ip, NULL, "oaitun_oai");
oip_ifup = tun_config(ctxt_pP->module_id, ip, NULL, "oaitun_oai");
if (oip_ifup == 0) { // interface is up --> send a config the DRB
module_id_t ue_module_id;