From: Andrew Deason Date: Thu, 12 May 2011 15:57:09 +0000 (-0500) Subject: viced: Enable NAT ping on hosts X-Git-Tag: upstream/1.8.0_pre1^2~3748 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aafdc08cfc49da4c23ecd91f9e690fd70e95df55;p=packages%2Fo%2Fopenafs.git 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 --- 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);