From aafdc08cfc49da4c23ecd91f9e690fd70e95df55 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 12 May 2011 10:57:09 -0500 Subject: [PATCH] viced: Enable NAT ping on hosts Turn on NAT ping on the Rx connection for the callback channel for hosts. This should help improve behavior for clients behind NATs and stateful firewalls, even for clients that predate NAT ping functionality. Change-Id: I0f8e801c2225560192de9c09bfa06d0387e29af3 Reviewed-on: http://gerrit.openafs.org/4646 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear --- src/viced/host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/viced/host.c b/src/viced/host.c index 55daa8ea8..cf559e2ac 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -745,6 +745,7 @@ h_SetupCallbackConn_r(struct host * host) rx_NewConnection(host->host, host->port, 1, sc, 0); rx_SetConnDeadTime(host->callback_rxcon, 50); rx_SetConnHardDeadTime(host->callback_rxcon, AFS_HARDDEADTIME); + rx_SetConnSecondsUntilNatPing(host->callback_rxcon, 20); } /* h_Lookup_r @@ -1730,6 +1731,7 @@ h_GetHost_r(struct rx_connection *tcon) cb_in = rx_NewConnection(haddr, hport, 1, sc, 0); rx_SetConnDeadTime(cb_in, 50); rx_SetConnHardDeadTime(cb_in, AFS_HARDDEADTIME); + rx_SetConnSecondsUntilNatPing(cb_in, 20); code = RXAFSCB_TellMeAboutYourself(cb_in, &interf, &caps); -- 2.39.5