Merge "clat: make sure the tun device doesn't yet exist"
This commit is contained in:
@@ -233,7 +233,7 @@ static jint com_android_server_connectivity_ClatCoordinator_createTunInterface(J
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct ifreq ifr = {
|
struct ifreq ifr = {
|
||||||
.ifr_flags = IFF_TUN,
|
.ifr_flags = static_cast<short>(IFF_TUN | IFF_TUN_EXCL),
|
||||||
};
|
};
|
||||||
strlcpy(ifr.ifr_name, v4interface.c_str(), sizeof(ifr.ifr_name));
|
strlcpy(ifr.ifr_name, v4interface.c_str(), sizeof(ifr.ifr_name));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user