From 2a31f35936698c504c863702ebb675ac9dfe47e1 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 6 Jan 2012 06:53:46 -0500 Subject: [PATCH] rx: add and export a public keepalive toggle make enabling and disabling keepalives a public function. export the function Change-Id: Ia553d91488511edc0b483d95326f14ac0e315332 Reviewed-on: http://gerrit.openafs.org/6517 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- src/libafsrpc/afsrpc.def | 3 ++- src/rx/rx.c | 14 ++++++++++++++ src/rx/rx_prototypes.h | 2 ++ src/shlibafsrpc/libafsrpc.map | 2 ++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/libafsrpc/afsrpc.def b/src/libafsrpc/afsrpc.def index 45f502e09..a178e2aba 100755 --- a/src/libafsrpc/afsrpc.def +++ b/src/libafsrpc/afsrpc.def @@ -326,7 +326,8 @@ EXPORTS rx_GetCallAbortCode @332 rx_SetCallAbortCode @333 rx_RecordCallStatistics @334 - + rx_KeepAliveOn @335 + rx_KeepAliveOff @336 ; for performance testing rx_TSFPQGlobSize @2001 DATA diff --git a/src/rx/rx.c b/src/rx/rx.c index c84884d08..5857061eb 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -6515,6 +6515,20 @@ rxi_KeepAliveOn(struct rx_call *call) rxi_ScheduleKeepAliveEvent(call); } +/* + * Solely in order that callers not need to include rx_call.h + */ +void +rx_KeepAliveOff(struct rx_call *call) +{ + rxi_KeepAliveOff(call); +} +void +rx_KeepAliveOn(struct rx_call *call) +{ + rxi_KeepAliveOn(call); +} + void rxi_GrowMTUOn(struct rx_call *call) { diff --git a/src/rx/rx_prototypes.h b/src/rx/rx_prototypes.h index c36ed4493..4d7a2c704 100644 --- a/src/rx/rx_prototypes.h +++ b/src/rx/rx_prototypes.h @@ -159,6 +159,8 @@ extern void rxi_ChallengeEvent(struct rxevent *event, void *conn, /* struct rx_connection *conn */ void *arg1, int atries); extern void rxi_ChallengeOn(struct rx_connection *conn); +extern void rx_KeepAliveOn(struct rx_call *call); +extern void rx_KeepAliveOff(struct rx_call *call); extern int rxs_Release(struct rx_securityClass *aobj); #ifndef KERNEL extern void rx_PrintTheseStats(FILE * file, struct rx_statistics *s, int size, diff --git a/src/shlibafsrpc/libafsrpc.map b/src/shlibafsrpc/libafsrpc.map index 21680fe84..88556c4d7 100755 --- a/src/shlibafsrpc/libafsrpc.map +++ b/src/shlibafsrpc/libafsrpc.map @@ -167,6 +167,8 @@ rx_ConnError; rx_ConnectionOf; rx_RecordCallStatistics; + rx_KeepAliveOn; + rx_KeepAliveOff; local: *; }; -- 2.39.5