Deleted Added
full compact
lock_proc.c (86319) lock_proc.c (92909)
1/* $NetBSD: lock_proc.c,v 1.7 2000/10/11 20:23:56 is Exp $ */
1/* $NetBSD: lock_proc.c,v 1.7 2000/10/11 20:23:56 is Exp $ */
2/* $FreeBSD: head/usr.sbin/rpc.lockd/lock_proc.c 86319 2001-11-13 11:24:23Z alfred $ */
2/* $FreeBSD: head/usr.sbin/rpc.lockd/lock_proc.c 92909 2002-03-21 22:52:45Z alfred $ */
3/*
4 * Copyright (c) 1995
5 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 45 unchanged lines hidden (view full) ---

56#include "lockd.h"
57#include <rpcsvc/nlm_prot.h>
58#include "lockd_lock.h"
59
60
61#define CLIENT_CACHE_SIZE 64 /* No. of client sockets cached */
62#define CLIENT_CACHE_LIFETIME 120 /* In seconds */
63
3/*
4 * Copyright (c) 1995
5 * A.R. Gordon (andrew.gordon@net-tel.co.uk). All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 45 unchanged lines hidden (view full) ---

56#include "lockd.h"
57#include <rpcsvc/nlm_prot.h>
58#include "lockd_lock.h"
59
60
61#define CLIENT_CACHE_SIZE 64 /* No. of client sockets cached */
62#define CLIENT_CACHE_LIFETIME 120 /* In seconds */
63
64static void log_from_addr __P((char *, struct svc_req *));
65static void log_netobj __P((netobj *obj));
66static int addrcmp __P((struct sockaddr *, struct sockaddr *));
64static void log_from_addr(char *, struct svc_req *);
65static void log_netobj(netobj *obj);
66static int addrcmp(struct sockaddr *, struct sockaddr *);
67
68/* log_from_addr ----------------------------------------------------------- */
69/*
70 * Purpose: Log name of function called and source address
71 * Returns: Nothing
72 * Notes: Extracts the source address from the transport handle
73 * passed in as part of the called procedure specification
74 */

--- 281 unchanged lines hidden (view full) ---

356 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
357 success, clnt_sperrno(success));
358 }
359}
360
361/*
362 * converts a struct nlm_lock to struct nlm4_lock
363 */
67
68/* log_from_addr ----------------------------------------------------------- */
69/*
70 * Purpose: Log name of function called and source address
71 * Returns: Nothing
72 * Notes: Extracts the source address from the transport handle
73 * passed in as part of the called procedure specification
74 */

--- 281 unchanged lines hidden (view full) ---

356 syslog(LOG_DEBUG, "clnt_call returns %d(%s)",
357 success, clnt_sperrno(success));
358 }
359}
360
361/*
362 * converts a struct nlm_lock to struct nlm4_lock
363 */
364static void nlmtonlm4 __P((struct nlm_lock *, struct nlm4_lock *));
364static void nlmtonlm4(struct nlm_lock *, struct nlm4_lock *);
365static void
366nlmtonlm4(arg, arg4)
367 struct nlm_lock *arg;
368 struct nlm4_lock *arg4;
369{
370 memcpy(arg4, arg, sizeof(nlm_lock));
371 arg4->l_offset = arg->l_offset;
372 arg4->l_len = arg->l_len;

--- 1017 unchanged lines hidden ---
365static void
366nlmtonlm4(arg, arg4)
367 struct nlm_lock *arg;
368 struct nlm4_lock *arg4;
369{
370 memcpy(arg4, arg, sizeof(nlm_lock));
371 arg4->l_offset = arg->l_offset;
372 arg4->l_len = arg->l_len;

--- 1017 unchanged lines hidden ---