diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lockd/lockd.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 41d7a8e61cea..964e6c93830f 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -40,7 +40,7 @@ struct nlm_host { | |||
40 | struct hlist_node h_hash; /* doubly linked list */ | 40 | struct hlist_node h_hash; /* doubly linked list */ |
41 | struct sockaddr_storage h_addr; /* peer address */ | 41 | struct sockaddr_storage h_addr; /* peer address */ |
42 | size_t h_addrlen; | 42 | size_t h_addrlen; |
43 | struct sockaddr_in h_saddr; /* our address (optional) */ | 43 | struct sockaddr_storage h_srcaddr; /* our address (optional) */ |
44 | struct rpc_clnt * h_rpcclnt; /* RPC client to talk to peer */ | 44 | struct rpc_clnt * h_rpcclnt; /* RPC client to talk to peer */ |
45 | char * h_name; /* remote hostname */ | 45 | char * h_name; /* remote hostname */ |
46 | u32 h_version; /* interface version */ | 46 | u32 h_version; /* interface version */ |
@@ -64,7 +64,7 @@ struct nlm_host { | |||
64 | struct nsm_handle * h_nsmhandle; /* NSM status handle */ | 64 | struct nsm_handle * h_nsmhandle; /* NSM status handle */ |
65 | 65 | ||
66 | char h_addrbuf[48], /* address eyecatchers */ | 66 | char h_addrbuf[48], /* address eyecatchers */ |
67 | h_saddrbuf[48]; | 67 | h_srcaddrbuf[48]; |
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct nsm_handle { | 70 | struct nsm_handle { |
@@ -90,6 +90,16 @@ static inline struct sockaddr *nlm_addr(const struct nlm_host *host) | |||
90 | return (struct sockaddr *)&host->h_addr; | 90 | return (struct sockaddr *)&host->h_addr; |
91 | } | 91 | } |
92 | 92 | ||
93 | static inline struct sockaddr_in *nlm_srcaddr_in(const struct nlm_host *host) | ||
94 | { | ||
95 | return (struct sockaddr_in *)&host->h_srcaddr; | ||
96 | } | ||
97 | |||
98 | static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host) | ||
99 | { | ||
100 | return (struct sockaddr *)&host->h_srcaddr; | ||
101 | } | ||
102 | |||
93 | /* | 103 | /* |
94 | * Map an fl_owner_t into a unique 32-bit "pid" | 104 | * Map an fl_owner_t into a unique 32-bit "pid" |
95 | */ | 105 | */ |