repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New version 1.1
[deb_libnfs.git]
/
include
/
libnfs-private.h
diff --git
a/include/libnfs-private.h
b/include/libnfs-private.h
index 85cc8f979b0a9a0597af5735733437de12f66715..a8f5d26247ea7e3d494e59a0283b4733de4e7efa 100644
(file)
--- a/
include/libnfs-private.h
+++ b/
include/libnfs-private.h
@@
-17,6
+17,12
@@
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
+struct rpc_fragment {
+ struct rpc_fragment *next;
+ size_t size;
+ char *data;
+};
+
struct rpc_context {
int fd;
int is_connected;
struct rpc_context {
int fd;
int is_connected;
@@
-49,6
+55,9
@@
struct rpc_context {
/* track the address we connect to so we can auto-reconnect on session failure */
struct sockaddr_storage s;
int auto_reconnect;
/* track the address we connect to so we can auto-reconnect on session failure */
struct sockaddr_storage s;
int auto_reconnect;
+
+ /* fragment reassembly */
+ struct rpc_fragment *fragments;
};
struct rpc_pdu {
};
struct rpc_pdu {
@@
-92,3
+101,6
@@
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);
void rpc_set_autoreconnect(struct rpc_context *rpc);
void rpc_unset_autoreconnect(struct rpc_context *rpc);
+int rpc_add_fragment(struct rpc_context *rpc, char *data, size_t size);
+void rpc_free_all_fragments(struct rpc_context *rpc);
+