)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"115ab12f77bdc31fb59b996752af134f11f081e7","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"dco: don\u0027t use NetLink to exchange control packets"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Using NetLink has proved to be overkill and performance critical."},{"line_number":10,"context_line":"The amount of control traffic can also easily overrun the NetLink buffer"},{"line_number":11,"context_line":"when a server has enough clients connected."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dcecb920_efee7082","line":9,"updated":"2023-02-22 14:13:47.000000000","message":"performance critical in what way? Too slow?","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"abd6adc6c5429ba1082b1a9779c52031642c16be","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"dco: don\u0027t use NetLink to exchange control packets"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Using NetLink has proved to be overkill and performance critical."},{"line_number":10,"context_line":"The amount of control traffic can also easily overrun the NetLink buffer"},{"line_number":11,"context_line":"when a server has enough clients connected."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"8d2aaad2_c5cda243","line":9,"in_reply_to":"1634caf7_aa66705e","updated":"2023-03-02 13:06:33.000000000","message":"Done","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"eebbe8007afbc3841fa06d71927e6b221e530825","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"dco: don\u0027t use NetLink to exchange control packets"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Using NetLink has proved to be overkill and performance critical."},{"line_number":10,"context_line":"The amount of control traffic can also easily overrun the NetLink buffer"},{"line_number":11,"context_line":"when a server has enough clients connected."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1634caf7_aa66705e","line":9,"in_reply_to":"dcecb920_efee7082","updated":"2023-02-22 19:28:34.000000000","message":"as in \"userspace is unable to parse them all fast enough and we fill the buffer and get screwed\"","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"b94f39dbf5780f2693cfcf2e38a3da47f5e9cc5b","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"68f86a0b_13b09ae2","updated":"2023-02-22 12:49:47.000000000","message":"Please, have a look!","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"57e5de9a91551de87f2e613f5d848e5a4f7a2bd2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"7808f097_0aeea245","in_reply_to":"68f86a0b_13b09ae2","updated":"2023-02-22 14:01:06.000000000","message":"Ack","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"09be6ac028610cd8d2b314080aff7d1e7982a94a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"637de774_47f1e81c","updated":"2023-03-09 15:54:14.000000000","message":"now with even more nice approval.","commit_id":"e8b6040b603727a9b70cb53a3fb778db2130bad1"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"a7235bc00d6d83a609e55fce663a24bca0e128bb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"8270001c_f38f1d19","updated":"2023-03-09 15:30:36.000000000","message":"something nice","commit_id":"e8b6040b603727a9b70cb53a3fb778db2130bad1"}],"src/openvpn/dco.c":[{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"57e5de9a91551de87f2e613f5d848e5a4f7a2bd2","unresolved":true,"context_lines":[{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    c-\u003ec2.tls_multi-\u003edco_peer_id \u003d peer_id;"},{"line_number":609,"context_line":""},{"line_number":610,"context_line":"    if (c-\u003emode \u003d\u003d CM_CHILD_TCP)"},{"line_number":611,"context_line":"    {"},{"line_number":612,"context_line":"        multi_tcp_dereference_instance(m-\u003emtcp, mi);"},{"line_number":613,"context_line":"        if (close(sd))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"e0cfc9cc_eca41b81","side":"PARENT","line":610,"updated":"2023-02-22 14:01:06.000000000","message":"so this is not needed anymore?","commit_id":"45a1cb2ad85a50feded10dad706132bd8a7f6133"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bb6669ae192e0faea1b6330b4ad628aaff0411da","unresolved":false,"context_lines":[{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    c-\u003ec2.tls_multi-\u003edco_peer_id \u003d peer_id;"},{"line_number":609,"context_line":""},{"line_number":610,"context_line":"    if (c-\u003emode \u003d\u003d CM_CHILD_TCP)"},{"line_number":611,"context_line":"    {"},{"line_number":612,"context_line":"        multi_tcp_dereference_instance(m-\u003emtcp, mi);"},{"line_number":613,"context_line":"        if (close(sd))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"fc5ad728_ffd38692","side":"PARENT","line":610,"in_reply_to":"2d766614_d91bd79b","updated":"2023-03-02 12:09:16.000000000","message":"Ack","commit_id":"45a1cb2ad85a50feded10dad706132bd8a7f6133"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"fdf6187750c82bc8da7efa4d4e921b8a054d7525","unresolved":true,"context_lines":[{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    c-\u003ec2.tls_multi-\u003edco_peer_id \u003d peer_id;"},{"line_number":609,"context_line":""},{"line_number":610,"context_line":"    if (c-\u003emode \u003d\u003d CM_CHILD_TCP)"},{"line_number":611,"context_line":"    {"},{"line_number":612,"context_line":"        multi_tcp_dereference_instance(m-\u003emtcp, mi);"},{"line_number":613,"context_line":"        if (close(sd))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"2d766614_d91bd79b","side":"PARENT","line":610,"in_reply_to":"e0cfc9cc_eca41b81","updated":"2023-02-22 14:04:11.000000000","message":"correct. this was about closing the socket in userspace and preventing openvpn from touching it any longer. However, we now need openvpn to continue sending/receiving control packets.","commit_id":"45a1cb2ad85a50feded10dad706132bd8a7f6133"}],"src/openvpn/dco_linux.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"bb6669ae192e0faea1b6330b4ad628aaff0411da","unresolved":true,"context_lines":[{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    tt-\u003eactual_name \u003d string_alloc(dev, NULL);"},{"line_number":477,"context_line":"    uint8_t *dcobuf \u003d malloc(65536);"},{"line_number":478,"context_line":"    buf_set_write(\u0026tt-\u003edco.dco_packet_in, dcobuf, 65536);"},{"line_number":479,"context_line":"    tt-\u003edco.dco_message_peer_id \u003d -1;"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"    ovpn_dco_register(\u0026tt-\u003edco);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ebae0cf4_d4fd20c6","side":"PARENT","line":478,"updated":"2023-03-02 12:09:16.000000000","message":"Are you sure about removing this one? The other messages still have a slim potential to cause the same issue like with control messages. I would keep this, just to be safe.","commit_id":"b8eddda8524bf6f164361667bfce6bbb3fac846b"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"7d5d9dea0d17f6b381b71c1947b3513492983b33","unresolved":false,"context_lines":[{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    tt-\u003eactual_name \u003d string_alloc(dev, NULL);"},{"line_number":477,"context_line":"    uint8_t *dcobuf \u003d malloc(65536);"},{"line_number":478,"context_line":"    buf_set_write(\u0026tt-\u003edco.dco_packet_in, dcobuf, 65536);"},{"line_number":479,"context_line":"    tt-\u003edco.dco_message_peer_id \u003d -1;"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"    ovpn_dco_register(\u0026tt-\u003edco);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"0f5a23d4_3602e9c5","side":"PARENT","line":478,"in_reply_to":"ccc1443a_d6f01e86","updated":"2023-03-02 13:02:51.000000000","message":"oops yeah, looked not closely enough and commented on the wrong thing. my bad","commit_id":"b8eddda8524bf6f164361667bfce6bbb3fac846b"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"f230e34d4cc03829e929db6c6ca5e40d2637f73c","unresolved":true,"context_lines":[{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    tt-\u003eactual_name \u003d string_alloc(dev, NULL);"},{"line_number":477,"context_line":"    uint8_t *dcobuf \u003d malloc(65536);"},{"line_number":478,"context_line":"    buf_set_write(\u0026tt-\u003edco.dco_packet_in, dcobuf, 65536);"},{"line_number":479,"context_line":"    tt-\u003edco.dco_message_peer_id \u003d -1;"},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"    ovpn_dco_register(\u0026tt-\u003edco);"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ccc1443a_d6f01e86","side":"PARENT","line":478,"in_reply_to":"ebae0cf4_d4fd20c6","updated":"2023-03-02 12:18:36.000000000","message":"the dco_packet_in object is used only to store the content of control packets. now that control packets are not going through netlink this buffer is just unused.","commit_id":"b8eddda8524bf6f164361667bfce6bbb3fac846b"}],"src/openvpn/forward.c":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"eccf513603dee9f3710f13873b30ca5a39c63f5a","unresolved":true,"context_lines":[{"line_number":1699,"context_line":" *"},{"line_number":1700,"context_line":" * Hide that complexity (...especially if more platforms show up"},{"line_number":1701,"context_line":" * in the future...) in a small inline function."},{"line_number":1702,"context_line":" */"},{"line_number":1703,"context_line":"static inline bool"},{"line_number":1704,"context_line":"should_use_dco_socket(struct link_socket *ls)"},{"line_number":1705,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"79ae6092_3d114668","side":"PARENT","line":1702,"updated":"2023-03-09 14:04:30.000000000","message":"Maybe move that comment (the part that still applies) to the new socket_is_dco_win method?","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"68b85d5c6ff254e3fb51e76202292f56fd388d43","unresolved":true,"context_lines":[{"line_number":1699,"context_line":" *"},{"line_number":1700,"context_line":" * Hide that complexity (...especially if more platforms show up"},{"line_number":1701,"context_line":" * in the future...) in a small inline function."},{"line_number":1702,"context_line":" */"},{"line_number":1703,"context_line":"static inline bool"},{"line_number":1704,"context_line":"should_use_dco_socket(struct link_socket *ls)"},{"line_number":1705,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"edcaa03e_7d307609","side":"PARENT","line":1702,"in_reply_to":"79ae6092_3d114668","updated":"2023-03-09 14:21:34.000000000","message":"hmm I\u0027d add a different working because it is not about where to send control packets, but just checking if DCO is enabled on a link or not. but yeah, we could definitely add some doc to socket_is_dco_win","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b7994711a566ddf7cc9877e2ca9ed13f07447b8d","unresolved":false,"context_lines":[{"line_number":1699,"context_line":" *"},{"line_number":1700,"context_line":" * Hide that complexity (...especially if more platforms show up"},{"line_number":1701,"context_line":" * in the future...) in a small inline function."},{"line_number":1702,"context_line":" */"},{"line_number":1703,"context_line":"static inline bool"},{"line_number":1704,"context_line":"should_use_dco_socket(struct link_socket *ls)"},{"line_number":1705,"context_line":"{"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"247c9792_e7b2c3b6","side":"PARENT","line":1702,"in_reply_to":"edcaa03e_7d307609","updated":"2023-03-09 14:32:02.000000000","message":"Ack","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"}],"src/openvpn/ovpn_dco_linux.h":[{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"eccf513603dee9f3710f13873b30ca5a39c63f5a","unresolved":true,"context_lines":[{"line_number":27,"context_line":"\t/**"},{"line_number":28,"context_line":"\t * @OVPN_CMD_NEW_PEER: Configure peer with its crypto keys"},{"line_number":29,"context_line":"\t */"},{"line_number":30,"context_line":"\tOVPN_CMD_NEW_PEER,"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"\t/**"},{"line_number":33,"context_line":"\t * @OVPN_CMD_SET_PEER: Tweak parameters for an existing peer"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"7e5b2aa7_22504803","line":30,"updated":"2023-03-09 14:04:30.000000000","message":"Didn\u0027t you want to add a length field for the residual TCP buffer and just 0 here to avoid another API revision?","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"68b85d5c6ff254e3fb51e76202292f56fd388d43","unresolved":true,"context_lines":[{"line_number":27,"context_line":"\t/**"},{"line_number":28,"context_line":"\t * @OVPN_CMD_NEW_PEER: Configure peer with its crypto keys"},{"line_number":29,"context_line":"\t */"},{"line_number":30,"context_line":"\tOVPN_CMD_NEW_PEER,"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"\t/**"},{"line_number":33,"context_line":"\t * @OVPN_CMD_SET_PEER: Tweak parameters for an existing peer"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"be25a0d8_f403b236","line":30,"in_reply_to":"7e5b2aa7_22504803","updated":"2023-03-09 14:21:34.000000000","message":"nah, adding a field does not break the API. We can add it later as it fixes a separate issue.","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b7994711a566ddf7cc9877e2ca9ed13f07447b8d","unresolved":false,"context_lines":[{"line_number":27,"context_line":"\t/**"},{"line_number":28,"context_line":"\t * @OVPN_CMD_NEW_PEER: Configure peer with its crypto keys"},{"line_number":29,"context_line":"\t */"},{"line_number":30,"context_line":"\tOVPN_CMD_NEW_PEER,"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"\t/**"},{"line_number":33,"context_line":"\t * @OVPN_CMD_SET_PEER: Tweak parameters for an existing peer"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"9b1a1741_9fe75f0a","line":30,"in_reply_to":"be25a0d8_f403b236","updated":"2023-03-09 14:32:02.000000000","message":"Ack","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"}],"src/openvpn/socket.h":[{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"57e5de9a91551de87f2e613f5d848e5a4f7a2bd2","unresolved":true,"context_lines":[{"line_number":1035,"context_line":"                           struct link_socket_actual *from)"},{"line_number":1036,"context_line":"{"},{"line_number":1037,"context_line":"    sockethandle_t sh \u003d { .s \u003d sock-\u003esd };"},{"line_number":1038,"context_line":"    //if (sock-\u003edco_installed)"},{"line_number":1039,"context_line":"    if (true)"},{"line_number":1040,"context_line":"    {"},{"line_number":1041,"context_line":"        *from \u003d sock-\u003einfo.lsa-\u003eactual;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"871d14ee_962cbbe7","line":1038,"updated":"2023-02-22 14:01:06.000000000","message":"I don\u0027t think this and other similar changes are correct, since we need a way to know if we deal with DCO handle or socket descriptor.","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"0a8fd5f1b6641381345658e5daaeacb506b04209","unresolved":false,"context_lines":[{"line_number":1035,"context_line":"                           struct link_socket_actual *from)"},{"line_number":1036,"context_line":"{"},{"line_number":1037,"context_line":"    sockethandle_t sh \u003d { .s \u003d sock-\u003esd };"},{"line_number":1038,"context_line":"    //if (sock-\u003edco_installed)"},{"line_number":1039,"context_line":"    if (true)"},{"line_number":1040,"context_line":"    {"},{"line_number":1041,"context_line":"        *from \u003d sock-\u003einfo.lsa-\u003eactual;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"49479f46_972c2c71","line":1038,"in_reply_to":"29ae9c61_d0c825d1","updated":"2023-03-08 23:03:53.000000000","message":"Done","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"fdf6187750c82bc8da7efa4d4e921b8a054d7525","unresolved":true,"context_lines":[{"line_number":1035,"context_line":"                           struct link_socket_actual *from)"},{"line_number":1036,"context_line":"{"},{"line_number":1037,"context_line":"    sockethandle_t sh \u003d { .s \u003d sock-\u003esd };"},{"line_number":1038,"context_line":"    //if (sock-\u003edco_installed)"},{"line_number":1039,"context_line":"    if (true)"},{"line_number":1040,"context_line":"    {"},{"line_number":1041,"context_line":"        *from \u003d sock-\u003einfo.lsa-\u003eactual;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"87321c21_ee4bdeae","line":1038,"in_reply_to":"871d14ee_962cbbe7","updated":"2023-02-22 14:04:11.000000000","message":"I agree. they are wrong. I just wanted to ghighlight that something needs to be done","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"abe816d1beefd6c88ffc640fe13b3e6eef83184f","unresolved":true,"context_lines":[{"line_number":1035,"context_line":"                           struct link_socket_actual *from)"},{"line_number":1036,"context_line":"{"},{"line_number":1037,"context_line":"    sockethandle_t sh \u003d { .s \u003d sock-\u003esd };"},{"line_number":1038,"context_line":"    //if (sock-\u003edco_installed)"},{"line_number":1039,"context_line":"    if (true)"},{"line_number":1040,"context_line":"    {"},{"line_number":1041,"context_line":"        *from \u003d sock-\u003einfo.lsa-\u003eactual;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"cf739971_f55971f9","line":1038,"in_reply_to":"87321c21_ee4bdeae","updated":"2023-02-28 23:23:02.000000000","message":"@lstipakov any suggestion about how to tackle this without reintroducing this sock wide variable?","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000008,"name":"Lev Stipakov","display_name":"Lev Stipakov","email":"lstipakov@gmail.com","username":"stipa"},"change_message_id":"ebfd86a1759b7c2572357c758e18b709b8e40845","unresolved":true,"context_lines":[{"line_number":1035,"context_line":"                           struct link_socket_actual *from)"},{"line_number":1036,"context_line":"{"},{"line_number":1037,"context_line":"    sockethandle_t sh \u003d { .s \u003d sock-\u003esd };"},{"line_number":1038,"context_line":"    //if (sock-\u003edco_installed)"},{"line_number":1039,"context_line":"    if (true)"},{"line_number":1040,"context_line":"    {"},{"line_number":1041,"context_line":"        *from \u003d sock-\u003einfo.lsa-\u003eactual;"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"29ae9c61_d0c825d1","line":1038,"in_reply_to":"cf739971_f55971f9","updated":"2023-03-03 11:13:06.000000000","message":"See https://github.com/lstipakov/openvpn/commit/3cc06ec4e925892ebcc0522a84b9e9e28f9a80d2","commit_id":"0d4e786aaa48e5a70df479602d4d522a41770af6"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"eccf513603dee9f3710f13873b30ca5a39c63f5a","unresolved":true,"context_lines":[{"line_number":1181,"context_line":"{"},{"line_number":1182,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || sock-\u003edco_installed)"},{"line_number":1183,"context_line":"    {"},{"line_number":1184,"context_line":"        /* unified UDPv4 and UDPv6 and DCO (kernel adds size header) */"},{"line_number":1185,"context_line":"        return link_socket_write_udp(sock, buf, to);"},{"line_number":1186,"context_line":"    }"},{"line_number":1187,"context_line":"    else if (proto_is_tcp(sock-\u003einfo.proto)) /* unified TCPv4 and TCPv6 */"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"4472fe5d_39cf056b","side":"PARENT","line":1184,"updated":"2023-03-09 14:04:30.000000000","message":"But here we remove the comment, even though it is also true here.","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"68b85d5c6ff254e3fb51e76202292f56fd388d43","unresolved":true,"context_lines":[{"line_number":1181,"context_line":"{"},{"line_number":1182,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || sock-\u003edco_installed)"},{"line_number":1183,"context_line":"    {"},{"line_number":1184,"context_line":"        /* unified UDPv4 and UDPv6 and DCO (kernel adds size header) */"},{"line_number":1185,"context_line":"        return link_socket_write_udp(sock, buf, to);"},{"line_number":1186,"context_line":"    }"},{"line_number":1187,"context_line":"    else if (proto_is_tcp(sock-\u003einfo.proto)) /* unified TCPv4 and TCPv6 */"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"fdce9d57_fe86f5e0","side":"PARENT","line":1184,"in_reply_to":"4472fe5d_39cf056b","updated":"2023-03-09 14:21:34.000000000","message":"again, why do we talk about size header if this is UDP?","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"31f77f3e88c9573387ff4ca5c43efca4ea9588e8","unresolved":false,"context_lines":[{"line_number":1181,"context_line":"{"},{"line_number":1182,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || sock-\u003edco_installed)"},{"line_number":1183,"context_line":"    {"},{"line_number":1184,"context_line":"        /* unified UDPv4 and UDPv6 and DCO (kernel adds size header) */"},{"line_number":1185,"context_line":"        return link_socket_write_udp(sock, buf, to);"},{"line_number":1186,"context_line":"    }"},{"line_number":1187,"context_line":"    else if (proto_is_tcp(sock-\u003einfo.proto)) /* unified TCPv4 and TCPv6 */"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"1357b934_a0d12dbd","side":"PARENT","line":1184,"in_reply_to":"6956503d_6dfb58db","updated":"2023-03-09 15:02:36.000000000","message":"Ack","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"94cff27ac38a4623177efe4ac9365ae59c306ee0","unresolved":true,"context_lines":[{"line_number":1181,"context_line":"{"},{"line_number":1182,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || sock-\u003edco_installed)"},{"line_number":1183,"context_line":"    {"},{"line_number":1184,"context_line":"        /* unified UDPv4 and UDPv6 and DCO (kernel adds size header) */"},{"line_number":1185,"context_line":"        return link_socket_write_udp(sock, buf, to);"},{"line_number":1186,"context_line":"    }"},{"line_number":1187,"context_line":"    else if (proto_is_tcp(sock-\u003einfo.proto)) /* unified TCPv4 and TCPv6 */"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"6956503d_6dfb58db","side":"PARENT","line":1184,"in_reply_to":"f7ee8257_3b07557c","updated":"2023-03-09 14:37:36.000000000","message":"not anymore on linux as packets are just left untouched.","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b7994711a566ddf7cc9877e2ca9ed13f07447b8d","unresolved":true,"context_lines":[{"line_number":1181,"context_line":"{"},{"line_number":1182,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || sock-\u003edco_installed)"},{"line_number":1183,"context_line":"    {"},{"line_number":1184,"context_line":"        /* unified UDPv4 and UDPv6 and DCO (kernel adds size header) */"},{"line_number":1185,"context_line":"        return link_socket_write_udp(sock, buf, to);"},{"line_number":1186,"context_line":"    }"},{"line_number":1187,"context_line":"    else if (proto_is_tcp(sock-\u003einfo.proto)) /* unified TCPv4 and TCPv6 */"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"f7ee8257_3b07557c","side":"PARENT","line":1184,"in_reply_to":"fdce9d57_fe86f5e0","updated":"2023-03-09 14:32:02.000000000","message":"when we have TCP we need to add the size header but in the DCO case, the kernel does that for us.","commit_id":"6f261673dee26ae8cfdf58f77038098d4f81d84a"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"eccf513603dee9f3710f13873b30ca5a39c63f5a","unresolved":true,"context_lines":[{"line_number":206,"context_line":"#define SF_PORT_SHARE (1\u003c\u003c2)"},{"line_number":207,"context_line":"#define SF_HOST_RANDOMIZE (1\u003c\u003c3)"},{"line_number":208,"context_line":"#define SF_GETADDRINFO_DGRAM (1\u003c\u003c4)"},{"line_number":209,"context_line":"#define SF_DCO_WIN (1\u003c\u003c5)"},{"line_number":210,"context_line":"    unsigned int sockflags;"},{"line_number":211,"context_line":"    int mark;"},{"line_number":212,"context_line":"    const char *bind_dev;"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"f0531361_fcbd90ef","line":209,"updated":"2023-03-09 14:04:30.000000000","message":"Is using a flag really better than a bool here?","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b7994711a566ddf7cc9877e2ca9ed13f07447b8d","unresolved":false,"context_lines":[{"line_number":206,"context_line":"#define SF_PORT_SHARE (1\u003c\u003c2)"},{"line_number":207,"context_line":"#define SF_HOST_RANDOMIZE (1\u003c\u003c3)"},{"line_number":208,"context_line":"#define SF_GETADDRINFO_DGRAM (1\u003c\u003c4)"},{"line_number":209,"context_line":"#define SF_DCO_WIN (1\u003c\u003c5)"},{"line_number":210,"context_line":"    unsigned int sockflags;"},{"line_number":211,"context_line":"    int mark;"},{"line_number":212,"context_line":"    const char *bind_dev;"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"97dc5bba_a14de127","line":209,"in_reply_to":"af827c3f_5e4fc158","updated":"2023-03-09 14:32:02.000000000","message":"Ack","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"68b85d5c6ff254e3fb51e76202292f56fd388d43","unresolved":true,"context_lines":[{"line_number":206,"context_line":"#define SF_PORT_SHARE (1\u003c\u003c2)"},{"line_number":207,"context_line":"#define SF_HOST_RANDOMIZE (1\u003c\u003c3)"},{"line_number":208,"context_line":"#define SF_GETADDRINFO_DGRAM (1\u003c\u003c4)"},{"line_number":209,"context_line":"#define SF_DCO_WIN (1\u003c\u003c5)"},{"line_number":210,"context_line":"    unsigned int sockflags;"},{"line_number":211,"context_line":"    int mark;"},{"line_number":212,"context_line":"    const char *bind_dev;"}],"source_content_type":"text/x-csrc","patch_set":4,"id":"af827c3f_5e4fc158","line":209,"in_reply_to":"f0531361_fcbd90ef","updated":"2023-03-09 14:21:34.000000000","message":"this is Lev\u0027s doing :-D\nTechnically we already have the socketflags bitfield, so re-using it is not a bad idea and it is less invasive compared to adding a member that is used by one platform only.","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"eccf513603dee9f3710f13873b30ca5a39c63f5a","unresolved":true,"context_lines":[{"line_number":1066,"context_line":"{"},{"line_number":1067,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || socket_is_dco_win(sock))"},{"line_number":1068,"context_line":"    /* unified UDPv4 and UDPv6, for DCO the kernel"},{"line_number":1069,"context_line":"     * will strip the length header */"},{"line_number":1070,"context_line":"    {"},{"line_number":1071,"context_line":"        int res;"},{"line_number":1072,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"b7557dab_78851b42","line":1069,"updated":"2023-03-09 14:04:30.000000000","message":"here the comment is kept (since it is still true)","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"94cff27ac38a4623177efe4ac9365ae59c306ee0","unresolved":true,"context_lines":[{"line_number":1066,"context_line":"{"},{"line_number":1067,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || socket_is_dco_win(sock))"},{"line_number":1068,"context_line":"    /* unified UDPv4 and UDPv6, for DCO the kernel"},{"line_number":1069,"context_line":"     * will strip the length header */"},{"line_number":1070,"context_line":"    {"},{"line_number":1071,"context_line":"        int res;"},{"line_number":1072,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"f80fb018_e8c00ace","line":1069,"in_reply_to":"3f58627e_3e6501af","updated":"2023-03-09 14:37:36.000000000","message":"aaah makes sense now. However, now the length header has to be set/unset by userland, because control packets are left untouched by DCO-linux","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"68b85d5c6ff254e3fb51e76202292f56fd388d43","unresolved":true,"context_lines":[{"line_number":1066,"context_line":"{"},{"line_number":1067,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || socket_is_dco_win(sock))"},{"line_number":1068,"context_line":"    /* unified UDPv4 and UDPv6, for DCO the kernel"},{"line_number":1069,"context_line":"     * will strip the length header */"},{"line_number":1070,"context_line":"    {"},{"line_number":1071,"context_line":"        int res;"},{"line_number":1072,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"c793d3d9_3d0bef67","line":1069,"in_reply_to":"b7557dab_78851b42","updated":"2023-03-09 14:21:34.000000000","message":"I am confused. this is UDP, how come we talk about length header?","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"b7994711a566ddf7cc9877e2ca9ed13f07447b8d","unresolved":true,"context_lines":[{"line_number":1066,"context_line":"{"},{"line_number":1067,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || socket_is_dco_win(sock))"},{"line_number":1068,"context_line":"    /* unified UDPv4 and UDPv6, for DCO the kernel"},{"line_number":1069,"context_line":"     * will strip the length header */"},{"line_number":1070,"context_line":"    {"},{"line_number":1071,"context_line":"        int res;"},{"line_number":1072,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"3f58627e_3e6501af","line":1069,"in_reply_to":"c793d3d9_3d0bef67","updated":"2023-03-09 14:32:02.000000000","message":"Basically in this codepath it is basically more like read_packet_with_header vs read_packet_without_header but we call them udp and tcp here. And therefore use the udp path even for tcp when dco is enabled since that header is already removed.","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"},{"author":{"_account_id":1000007,"name":"Antonio Quartulli","display_name":"Antonio Quartulli","email":"antonio@mandelbit.com","username":"ordex"},"change_message_id":"31f77f3e88c9573387ff4ca5c43efca4ea9588e8","unresolved":false,"context_lines":[{"line_number":1066,"context_line":"{"},{"line_number":1067,"context_line":"    if (proto_is_udp(sock-\u003einfo.proto) || socket_is_dco_win(sock))"},{"line_number":1068,"context_line":"    /* unified UDPv4 and UDPv6, for DCO the kernel"},{"line_number":1069,"context_line":"     * will strip the length header */"},{"line_number":1070,"context_line":"    {"},{"line_number":1071,"context_line":"        int res;"},{"line_number":1072,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":4,"id":"757247af_5fb67f04","line":1069,"in_reply_to":"f80fb018_e8c00ace","updated":"2023-03-09 15:02:36.000000000","message":"Ack","commit_id":"64323794e0f9ed7bff4b735dc5f9a6bb843a18ba"}]}
