Change in openvpn[master]: route: print net_gateway info instead of unset rgi/rgi6
A message that is not in the archive (sent off-list or not yet received): gerrit.1793619336000.I73cebcb7649e7c2bfdd29fee955b192f143a5ab9@gerrit.openvpn.net
Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
to review the following change.
Change subject: route: print net_gateway info instead of unset rgi/rgi6
......................................................................
route: print net_gateway info instead of unset rgi/rgi6
init_route_list() and init_route_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged. Print ngi/ngi6, which the surrounding block checks and exports.
Broken since 2777cdd3 ("route: handle default gateway (net_gateway) and nexthop towards VPN server separately").
---
M src/openvpn/route.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/86/2086/1
src/openvpn/route.c +2 -2
@@ -619,7 +619,7 @@ {setenv_route_addr (es,"net_gateway" , rl->ngi.gateway.addr,-1 );#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE , &rl->rgi,NULL ); +print_default_gateway (D_ROUTE , &rl->ngi,NULL );#endif } else
@@ -770,7 +770,7 @@ {setenv_str (es,"net_gateway_ipv6" ,print_in6_addr (rl6->ngi6.gateway.addr_ipv6,0 , &gc));#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE ,NULL , &rl6->rgi6); +print_default_gateway (D_ROUTE ,NULL , &rl6->ngi6);#endif } else
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Attention is currently required from: Arne Schwabe, Răzvan Cojocaru.
Gert Doering has posted comments on this change by Răzvan Cojocaru. ( https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email )
Change subject: route: print net_gateway info instead of unset rgi/rgi6
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Comment-Date: Mon, 02 Nov 2026 14:19:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
PATCH 1/1 route: print net_gateway info instead of unset rgi/rgi6
In reply to a message not in the archiveFrom: Razvan Cojocaru <[email protected]>
init_route_list() and init_route_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged. Print ngi/ngi6, which the surrounding block checks and exports.
Broken since 2777cdd3 ("route: handle default gateway (net_gateway) and nexthop towards VPN server separately").
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2086
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2086
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]>
src/openvpn/route.c +2 -2
@@ -619,7 +619,7 @@ {setenv_route_addr (es,"net_gateway" , rl->ngi.gateway.addr,-1 );#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE , &rl->rgi,NULL ); +print_default_gateway (D_ROUTE , &rl->ngi,NULL );#endif } else
@@ -770,7 +770,7 @@ {setenv_str (es,"net_gateway_ipv6" ,print_in6_addr (rl6->ngi6.gateway.addr_ipv6,0 , &gc));#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE ,NULL , &rl6->rgi6); +print_default_gateway (D_ROUTE ,NULL , &rl6->ngi6);#endif } else
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
[Openvpn-devel] [PATCH applied] Re: route: print net_gateway info instead of unset rgi/rgi6
Another nice finding... testing this on FreeBSD, with --verb 4, I get "no output regarding gateway at all" (so it's not really obvious that "something is missing here"). With the patch, I have them back...
2026-11-03 17:57:59 us=291394 ROUTE_GATEWAY x.x.x.30/255.255.255.224 IFACE=vtnet0 HWADDR=bc:24:11:bf:7a:d4 2026-11-03 17:57:59 us=291493 ROUTE6_GATEWAY 2001:608:x:x::ffff IFACE=vtnet0
Backporting to 2.7 needed a bit of manoevering around ENABLE_DEBUG :-) - but the actual offending line is the same.
Your patch has been applied to the master and release/2.7 branch (bugfix!).
commit 791eb227d912a77713245f33854bcfe84a2dcc9b (master) commit 54ab191c5171c52e13243af8cae5a850e83e7da6 (release/2.7)
Author: Razvan Cojocaru Date: Mon Nov 2 15:19:55 2026 +0100
route: print net_gateway info instead of unset rgi/rgi6
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2086
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg40495.html
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Attention is currently required from: Arne Schwabe, Răzvan Cojocaru.
Hello Arne Schwabe, Gert Doering,
I'd like you to reexamine a change. Please visit
https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
to look at the new patch set (#2).
The change is no longer submittable: checks~ChecksSubmitRule is unsatisfied now.
Change subject: route: print net_gateway info instead of unset rgi/rgi6
......................................................................
route: print net_gateway info instead of unset rgi/rgi6
init_route_list() and init_route_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged. Print ngi/ngi6, which the surrounding block checks and exports.
Broken since 2777cdd3 ("route: handle default gateway (net_gateway) and nexthop towards VPN server separately").
---
M src/openvpn/route.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/86/2086/2
src/openvpn/route.c +2 -2
@@ -619,7 +619,7 @@ {setenv_route_addr (es,"net_gateway" , rl->ngi.gateway.addr,-1 );#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE , &rl->rgi,NULL ); +print_default_gateway (D_ROUTE , &rl->ngi,NULL );#endif } else
@@ -770,7 +770,7 @@ {setenv_str (es,"net_gateway_ipv6" ,print_in6_addr (rl6->ngi6.gateway.addr_ipv6,0 , &gc));#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE ,NULL , &rl6->rgi6); +print_default_gateway (D_ROUTE ,NULL , &rl6->ngi6);#endif } else
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Răzvan Cojocaru <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Gert Doering has uploaded a new patch set (#3) to the change originally created by Răzvan Cojocaru. ( https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by Gert Doering
Change subject: route: print net_gateway info instead of unset rgi/rgi6
......................................................................
route: print net_gateway info instead of unset rgi/rgi6
init_route_list() and init_route_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged. Print ngi/ngi6, which the surrounding block checks and exports.
Broken since 2777cdd3 ("route: handle default gateway (net_gateway) and nexthop towards VPN server separately").
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2086
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg40495.html
---
M src/openvpn/route.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/86/2086/3
src/openvpn/route.c +2 -2
@@ -619,7 +619,7 @@ {setenv_route_addr (es,"net_gateway" , rl->ngi.gateway.addr,-1 );#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE , &rl->rgi,NULL ); +print_default_gateway (D_ROUTE , &rl->ngi,NULL );#endif } else
@@ -770,7 +770,7 @@ {setenv_str (es,"net_gateway_ipv6" ,print_in6_addr (rl6->ngi6.gateway.addr_ipv6,0 , &gc));#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE ,NULL , &rl6->rgi6); +print_default_gateway (D_ROUTE ,NULL , &rl6->ngi6);#endif } else
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 3
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Gert Doering has submitted this change. ( https://gerrit.openvpn.net/c/openvpn/+/2086?usp=email )
Change subject: route: print net_gateway info instead of unset rgi/rgi6
......................................................................
route: print net_gateway info instead of unset rgi/rgi6
init_route_list() and init_route_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged. Print ngi/ngi6, which the surrounding block checks and exports.
Broken since 2777cdd3 ("route: handle default gateway (net_gateway) and nexthop towards VPN server separately").
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2086
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg40495.html
---
M src/openvpn/route.c
1 file changed, 2 insertions(+), 2 deletions(-)
src/openvpn/route.c +2 -2
@@ -619,7 +619,7 @@ {setenv_route_addr (es,"net_gateway" , rl->ngi.gateway.addr,-1 );#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE , &rl->rgi,NULL ); +print_default_gateway (D_ROUTE , &rl->ngi,NULL );#endif } else
@@ -770,7 +770,7 @@ {setenv_str (es,"net_gateway_ipv6" ,print_in6_addr (rl6->ngi6.gateway.addr_ipv6,0 , &gc));#ifndef ENABLE_SMALL -print_default_gateway (D_ROUTE ,NULL , &rl6->rgi6); +print_default_gateway (D_ROUTE ,NULL , &rl6->ngi6);#endif } else
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2086?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: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 3
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel