no prefix in tap iface name
This commit is contained in:
parent
ce06064fcf
commit
e644f35cce
3 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
13
patches/tap-name-no-prefix.patch
Normal file
13
patches/tap-name-no-prefix.patch
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue