BUGFIX(GTP-U): Add missing ip rules in order to have point to point connection

This commit is contained in:
Imad ALAWE
2017-01-25 13:59:47 +01:00
committed by Frédéric Leroy
parent b3ded7799a
commit 8bff2cff3e
6 changed files with 19 additions and 16 deletions
+3
View File
@@ -1886,6 +1886,9 @@ oai_shutdown (void)
for (int i = 0; i < NUMBER_OF_eNB_MAX + NUMBER_OF_UE_MAX; i++)
if (oai_emulation.info.oai_ifup[i] == 1) {
char interfaceName[8];
char command_line[100];
sprintf(command_line, "while ip rule del table %d; do true; done",i+201);
system(command_line);
snprintf (interfaceName, sizeof(interfaceName), "oai%d", i);
bringInterfaceUp (interfaceName, 0);
}