noS1 woking with tun interfaces and basic simu
This commit is contained in:
@@ -236,7 +236,7 @@ int NAS_config(char *interfaceName, char *ipAddress, char *networkMask, char *br
|
||||
}
|
||||
|
||||
// non blocking full configuration of the interface (address, and the two lest octets of the address)
|
||||
int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifsuffix)
|
||||
int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
|
||||
{
|
||||
//char buf[5];
|
||||
char ipAddress[20];
|
||||
@@ -248,8 +248,8 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifsuffix
|
||||
sprintf(broadcastAddress, "10.0.%d.255", thirdOctet);
|
||||
|
||||
|
||||
sprintf(interfaceName, "%s%s%d", UE_NAS_USE_TUN?"oaitun_":"oip",
|
||||
UE_NAS_USE_TUN?ifsuffix:"",interface_id);
|
||||
sprintf(interfaceName, "%s%s%d", (UE_NAS_USE_TUN || ENB_NAS_USE_TUN)?"oaitun_":ifname,
|
||||
UE_NAS_USE_TUN?"ue": (ENB_NAS_USE_TUN?"enb":""),interface_id);
|
||||
|
||||
bringInterfaceUp(interfaceName, 0);
|
||||
// sets the machine address
|
||||
|
||||
Reference in New Issue
Block a user