]> err.no Git - linux-2.6/blobdiff - include/linux/sunrpc/svcsock.h
[PATCH] knfsd: SUNRPC: Cache remote peer's address in svc_sock
[linux-2.6] / include / linux / sunrpc / svcsock.h
index cef11a6e81e958130db3ed2942e03388f7d54801..cccea0a0feb48e83923cc10df72cd1b26133f244 100644 (file)
@@ -57,12 +57,15 @@ struct svc_sock {
 
        /* cache of various info for TCP sockets */
        void                    *sk_info_authunix;
+
+       struct sockaddr_storage sk_remote;      /* remote peer's address */
+       int                     sk_remotelen;   /* length of address */
 };
 
 /*
  * Function prototypes.
  */
-int            svc_makesock(struct svc_serv *, int, unsigned short);
+int            svc_makesock(struct svc_serv *, int, unsigned short, int flags);
 void           svc_close_socket(struct svc_sock *);
 int            svc_recv(struct svc_rqst *, long);
 int            svc_send(struct svc_rqst *);