X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-private.h;h=85cc8f979b0a9a0597af5735733437de12f66715;hb=1744ef90110e99efc5b3c10953ff664b7276517c;hp=4c8594c72452a2c7903cd4070b7863af12801dc7;hpb=fb69c64c020b7469771b183d2add600cd2108583;p=deb_libnfs.git diff --git a/include/libnfs-private.h b/include/libnfs-private.h index 4c8594c..85cc8f9 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -45,6 +45,10 @@ struct rpc_context { int is_udp; struct sockaddr *udp_dest; int is_broadcast; + + /* track the address we connect to so we can auto-reconnect on session failure */ + struct sockaddr_storage s; + int auto_reconnect; }; struct rpc_pdu { @@ -85,3 +89,6 @@ int rpc_set_udp_destination(struct rpc_context *rpc, char *addr, int port, int i struct rpc_context *rpc_init_udp_context(void); struct sockaddr *rpc_get_recv_sockaddr(struct rpc_context *rpc); +void rpc_set_autoreconnect(struct rpc_context *rpc); +void rpc_unset_autoreconnect(struct rpc_context *rpc); +