Lines Matching +full:server +full:- +full:side

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * General-purpose lockd include file.
41 * Lockd host handle (used both by the client and server personality).
54 h_server : 1, /* server side, not client side */
59 u32 h_state; /* pseudo-state counter */
79 * The largest string sm_addrbuf should hold is a full-size IPv6 address
81 * hold eight groups of colon-separated four-hex-digit numbers, a
104 return (struct sockaddr *)&host->h_addr; in nlm_addr()
109 return (struct sockaddr *)&host->h_srcaddr; in nlm_srcaddr()
113 * Map an fl_owner_t into a unique 32-bit "pid"
168 * This is a server block (i.e. a lock requested by some client which
172 /* timeout on non-blocking call: */
182 unsigned long b_when; /* next re-xmit */
274 * Server-side lock handling
293 * File handling for the server personality
312 return file->f_file[O_RDONLY] ? in nlmsvc_file_file()
313 file->f_file[O_RDONLY] : file->f_file[O_WRONLY]; in nlmsvc_file_file()
325 if (ntohs(sin->sin_port) > 1023) in __nlm_privileged_request4()
328 return ipv4_is_loopback(sin->sin_addr.s_addr); in __nlm_privileged_request4()
336 if (ntohs(sin6->sin6_port) > 1023) in __nlm_privileged_request6()
339 if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) in __nlm_privileged_request6()
340 return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); in __nlm_privileged_request6()
342 return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; in __nlm_privileged_request6()
361 switch (sap->sa_family) { in nlm_privileged_requester()
378 return file_inode(fl1->c.flc_file) == file_inode(fl2->c.flc_file) in nlm_compare_locks()
379 && fl1->c.flc_pid == fl2->c.flc_pid in nlm_compare_locks()
380 && fl1->c.flc_owner == fl2->c.flc_owner in nlm_compare_locks()
381 && fl1->fl_start == fl2->fl_start in nlm_compare_locks()
382 && fl1->fl_end == fl2->fl_end in nlm_compare_locks()
383 &&(fl1->c.flc_type == fl2->c.flc_type || fl2->c.flc_type == F_UNLCK); in nlm_compare_locks()