Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2021 09:17:14 GMT
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c1ce6196d289 - stable/13 - Allow to specify debugnet fib in sysctl/tunable.
Message-ID:  <202104290917.13T9HE71032556@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=c1ce6196d289d6ca2a46f600d28da129b7cecaae

commit c1ce6196d289d6ca2a46f600d28da129b7cecaae
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2021-04-05 19:48:07 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2021-04-29 08:47:31 +0000

    Allow to specify debugnet fib in sysctl/tunable.
    
    Differential Revision:  https://reviews.freebsd.org/D29593
    Reviewed by:            donner
    MFC after:              2 weeks
    
    (cherry picked from commit caf2f62765f9087a6e0002b1c47c3c6f65a8ae0b)
---
 sys/net/debugnet.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys/net/debugnet.c b/sys/net/debugnet.c
index 3930a87d46dc..bb59ff33a93f 100644
--- a/sys/net/debugnet.c
+++ b/sys/net/debugnet.c
@@ -91,6 +91,10 @@ int debugnet_nretries = 10;
 SYSCTL_INT(_net_debugnet, OID_AUTO, nretries, CTLFLAG_RWTUN,
     &debugnet_nretries, 0,
     "Number of retransmit attempts before giving up");
+int debugnet_fib = RT_DEFAULT_FIB;
+SYSCTL_INT(_net_debugnet, OID_AUTO, fib, CTLFLAG_RWTUN,
+    &debugnet_fib, 0,
+    "Fib to use when sending dump");
 
 static bool g_debugnet_pcb_inuse;
 static struct debugnet_pcb g_dnet_pcb;
@@ -658,7 +662,7 @@ debugnet_connect(const struct debugnet_conn_params *dcp,
 		};
 
 		CURVNET_SET(vnet0);
-		nh = fib4_lookup_debugnet(RT_DEFAULT_FIB, dest_sin.sin_addr, 0,
+		nh = fib4_lookup_debugnet(debugnet_fib, dest_sin.sin_addr, 0,
 		    NHR_NONE);
 		CURVNET_RESTORE();
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104290917.13T9HE71032556>