)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"71958b48a70604ca1ad4becd898b7824599df679","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"0cd39f37_94d83cc7","updated":"2025-10-28 17:32:29.000000000","message":"I don\u0027t think the logic is right now (neither before nor afterwards).  The commit message actually speaks about `link-mtu` but the code tests `tun_mtu_defined`.","commit_id":"61746cb96d2471a25678b94483a6c8302107585e"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"55b8bda369a9822c5dee6838da40025533fd936e","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"aee1338b_c61082c1","in_reply_to":"0cd39f37_94d83cc7","updated":"2025-10-28 22:47:16.000000000","message":"welcome to openvpn logic. link-mtu and tun-mtu are mutally exclusive. And you need to have link-mtu in the config to actually have a pushed cipher to change the MTU of the tun device.","commit_id":"61746cb96d2471a25678b94483a6c8302107585e"},{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"f4503a65cd8c2a2eb099806fa414f7ca9d9b3553","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"7654a378_7d8e80c5","in_reply_to":"aee1338b_c61082c1","updated":"2025-10-29 06:52:59.000000000","message":"Right, this is why the code should check for `link_mtu_defined` and not `tun_mtu_defined`.  Right?  `if (cipher \u0026\u0026 !link_mtu_defined) { skip this }`.\n\nBut you\u0027re right, I misread this - `tun_mtu_defined` implies `!link_mtu_defined`, so while I find the other one easier to follow (\"if link_mtu defined, tun_mtu is derived from cipher etc.\") the code is correct.","commit_id":"61746cb96d2471a25678b94483a6c8302107585e"}],"src/openvpn/push.c":[{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"71958b48a70604ca1ad4becd898b7824599df679","unresolved":true,"context_lines":[{"line_number":1043,"context_line":"            continue;"},{"line_number":1044,"context_line":"        }"},{"line_number":1045,"context_line":"        /* tun reopen only needed if cipher change can change tun MTU */"},{"line_number":1046,"context_line":"        if (strprefix(line, \"cipher \") \u0026\u0026 opt-\u003ece.tun_mtu_defined)"},{"line_number":1047,"context_line":"        {"},{"line_number":1048,"context_line":"            continue;"},{"line_number":1049,"context_line":"        }"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"d77bec25_18f7eaaa","line":1046,"updated":"2025-10-28 17:32:29.000000000","message":"I don\u0027t think this is actually correct - `--tun-mtu` is the *inner* MTU, and that never changes on `--cipher`.  So the original variant means \"if we have a configured tun-mtu, a cipher change will not affect this, so we don\u0027t care\".\n\nA more clear expression would be \"if a `--link-mtu` was defined and `--cipher changes` (because in that case, `--tun-mtu` would be recalculated - or would it?)\n\nMaybe that whole thing needs to go after the big mtu refactoring?","commit_id":"61746cb96d2471a25678b94483a6c8302107585e"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"55b8bda369a9822c5dee6838da40025533fd936e","unresolved":true,"context_lines":[{"line_number":1043,"context_line":"            continue;"},{"line_number":1044,"context_line":"        }"},{"line_number":1045,"context_line":"        /* tun reopen only needed if cipher change can change tun MTU */"},{"line_number":1046,"context_line":"        if (strprefix(line, \"cipher \") \u0026\u0026 opt-\u003ece.tun_mtu_defined)"},{"line_number":1047,"context_line":"        {"},{"line_number":1048,"context_line":"            continue;"},{"line_number":1049,"context_line":"        }"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"036771c8_d363c718","line":1046,"in_reply_to":"d77bec25_18f7eaaa","updated":"2025-10-28 22:47:16.000000000","message":"The question is more if we want to deprecate link-mtu and its weird behaviour.","commit_id":"61746cb96d2471a25678b94483a6c8302107585e"}]}
