57 lines
1.5 KiB
C
57 lines
1.5 KiB
C
#ifndef __RPCSVC_SPRAY_H__
|
|
#define __RPCSVC_SPRAY_H__
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#ident "$Revision: 1.6 $"
|
|
/*
|
|
*
|
|
* Copyright 1992, Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
|
|
* the contents of this file may not be disclosed to third parties, copied or
|
|
* duplicated in any form, in whole or in part, without the prior written
|
|
* permission of Silicon Graphics, Inc.
|
|
*
|
|
* RESTRICTED RIGHTS LEGEND:
|
|
* Use, duplication or disclosure by the Government is subject to restrictions
|
|
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
|
|
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
|
|
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
|
|
* rights reserved under the Copyright Laws of the United States.
|
|
*/
|
|
/* @(#)spray.h 1.2 88/05/08 4.0NFSSRC SMI */
|
|
|
|
/*
|
|
* Copyright (c) 1988 by Sun Microsystems, Inc.
|
|
* @(#) from SUN 1.5
|
|
*/
|
|
|
|
#define SPRAYPROG 100012
|
|
#define SPRAYPROC_SPRAY 1
|
|
#define SPRAYPROC_GET 2
|
|
#define SPRAYPROC_CLEAR 3
|
|
#define SPRAYVERS_ORIG 1
|
|
#define SPRAYVERS 1
|
|
|
|
#define SPRAYOVERHEAD 86 /* size of rpc packet when size=0 */
|
|
#define SPRAYMAX 8845 /* related to max udp packet of 9000 */
|
|
|
|
struct spraycumul {
|
|
unsigned counter;
|
|
struct timeval clock;
|
|
};
|
|
|
|
struct sprayarr {
|
|
int *data;
|
|
int lnth;
|
|
};
|
|
|
|
extern bool_t xdr_sprayarr(XDR *, struct sprayarr *);
|
|
extern bool_t xdr_spraycumul(XDR *, struct spraycumul *);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !__RPCSVC_SPRAY_H__ */
|