Gert Doering has submitted this change. ( 
https://gerrit.openvpn.net/c/openvpn/+/2142?usp=email )

Change subject: comp: use the wire byte when escaping v2 uncompressed packets
......................................................................

comp: use the wire byte when escaping v2 uncompressed packets

compv2_escape_data_ifneeded() wrote COMP_ALGV2_UNCOMPRESSED (the
algorithm id, 10) instead of COMP_ALGV2_UNCOMPRESSED_BYTE (0) after
the 0x50 indicator. Receivers reject that header, so packets whose
first byte is 0x50 were dropped with stub-v2 and lz4-v2, e.g. tap
frames to a MAC address starting with 0x50.

Broken since a75bb2e4 ("Implement the compression V2 data format for
stub and lz4.").

Change-Id: I784f3ffe17ecadabf96caad11fe9f774aa00b7cc
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Arne Schwabe <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2142
Message-Id: <[email protected]>
URL: 
https://www.mail-archive.com/[email protected]/msg40883.html
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpn/comp.c
1 file changed, 1 insertion(+), 1 deletion(-)




diff --git a/src/openvpn/comp.c b/src/openvpn/comp.c
index 387a7c4..513a766 100644
--- a/src/openvpn/comp.c
+++ b/src/openvpn/comp.c
@@ -100,7 +100,7 @@

     head = BPTR(buf);
     head[0] = COMP_ALGV2_INDICATOR_BYTE;
-    head[1] = COMP_ALGV2_UNCOMPRESSED;
+    head[1] = COMP_ALGV2_UNCOMPRESSED_BYTE;
 }



--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2142?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I784f3ffe17ecadabf96caad11fe9f774aa00b7cc
Gerrit-Change-Number: 2142
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to