no prefix in tap iface name

This commit is contained in:
sagar 2025-07-14 21:28:28 +00:00
parent ce06064fcf
commit e644f35cce
3 changed files with 14 additions and 1 deletions

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [ ./ipb-profile-key.patch ];
patches = [ ./patches/ipb-profile-key.patch ./patches/tap-name-no-prefix.patch ];
nativeBuildInputs = with pkgs; [
cmake

View file

@ -0,0 +1,13 @@
diff --git a/src/Cedar/VLanUnix.c b/src/Cedar/VLanUnix.c
index 784bd74..127d15e 100644
--- a/src/Cedar/VLanUnix.c
+++ b/src/Cedar/VLanUnix.c
@@ -339,7 +339,7 @@ void GenerateTunName(char *name, char *prefix, char *tun_name, size_t tun_name_l
StrCpy(instance_name_lower, sizeof(instance_name_lower), name);
Trim(instance_name_lower);
StrLower(instance_name_lower);
- Format(tun_name, tun_name_len, "%s_%s", prefix, instance_name_lower);
+ Format(tun_name, tun_name_len, "%s", instance_name_lower);
tun_name[15] = 0;
}