Home | History | Annotate | Line # | Download | only in nlm
      1  1.2  pgoyette /*	$NetBSD: nlm_prot_xdr.c,v 1.2 2016/12/13 21:58:17 pgoyette Exp $	*/
      2  1.1  dholland /*
      3  1.1  dholland  * Please do not edit this file.
      4  1.1  dholland  * It was generated using rpcgen.
      5  1.1  dholland  */
      6  1.1  dholland 
      7  1.2  pgoyette #include <fs/nfs/nlm/nlm_prot.h>
      8  1.2  pgoyette 
      9  1.1  dholland #include <sys/cdefs.h>
     10  1.1  dholland #ifndef lint
     11  1.1  dholland /*static char sccsid[] = "from: @(#)nlm_prot.x 1.8 87/09/21 Copyr 1987 Sun Micro";*/
     12  1.1  dholland /*static char sccsid[] = "from: * @(#)nlm_prot.x	2.1 88/08/01 4.0 RPCSRC";*/
     13  1.1  dholland /* __RCSID("NetBSD: nlm_prot.x,v 1.6 2000/06/07 14:30:15 bouyer Exp "); */
     14  1.1  dholland #endif /* not lint */
     15  1.1  dholland /* __FBSDID("FreeBSD: head/sys/nlm/nlm_prot_xdr.c 177685 2008-03-28 09:50:32Z dfr "); */
     16  1.2  pgoyette __RCSID("$NetBSD: nlm_prot_xdr.c,v 1.2 2016/12/13 21:58:17 pgoyette Exp $");
     17  1.1  dholland 
     18  1.1  dholland bool_t
     19  1.1  dholland xdr_nlm_stats(XDR *xdrs, nlm_stats *objp)
     20  1.1  dholland {
     21  1.1  dholland 
     22  1.1  dholland 	if (!xdr_enum(xdrs, (enum_t *)objp))
     23  1.1  dholland 		return (FALSE);
     24  1.1  dholland 	return (TRUE);
     25  1.1  dholland }
     26  1.1  dholland 
     27  1.1  dholland bool_t
     28  1.1  dholland xdr_nlm_holder(XDR *xdrs, nlm_holder *objp)
     29  1.1  dholland {
     30  1.1  dholland 
     31  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
     32  1.1  dholland 		return (FALSE);
     33  1.1  dholland 	if (!xdr_int(xdrs, &objp->svid))
     34  1.1  dholland 		return (FALSE);
     35  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
     36  1.1  dholland 		return (FALSE);
     37  1.1  dholland 	if (!xdr_u_int(xdrs, &objp->l_offset))
     38  1.1  dholland 		return (FALSE);
     39  1.1  dholland 	if (!xdr_u_int(xdrs, &objp->l_len))
     40  1.1  dholland 		return (FALSE);
     41  1.1  dholland 	return (TRUE);
     42  1.1  dholland }
     43  1.1  dholland 
     44  1.1  dholland bool_t
     45  1.1  dholland xdr_nlm_testrply(XDR *xdrs, nlm_testrply *objp)
     46  1.1  dholland {
     47  1.1  dholland 
     48  1.1  dholland 	if (!xdr_nlm_stats(xdrs, &objp->stat))
     49  1.1  dholland 		return (FALSE);
     50  1.1  dholland 	switch (objp->stat) {
     51  1.1  dholland 	case nlm_denied:
     52  1.1  dholland 		if (!xdr_nlm_holder(xdrs, &objp->nlm_testrply_u.holder))
     53  1.1  dholland 			return (FALSE);
     54  1.1  dholland 		break;
     55  1.1  dholland 	default:
     56  1.1  dholland 		break;
     57  1.1  dholland 	}
     58  1.1  dholland 	return (TRUE);
     59  1.1  dholland }
     60  1.1  dholland 
     61  1.1  dholland bool_t
     62  1.1  dholland xdr_nlm_stat(XDR *xdrs, nlm_stat *objp)
     63  1.1  dholland {
     64  1.1  dholland 
     65  1.1  dholland 	if (!xdr_nlm_stats(xdrs, &objp->stat))
     66  1.1  dholland 		return (FALSE);
     67  1.1  dholland 	return (TRUE);
     68  1.1  dholland }
     69  1.1  dholland 
     70  1.1  dholland bool_t
     71  1.1  dholland xdr_nlm_res(XDR *xdrs, nlm_res *objp)
     72  1.1  dholland {
     73  1.1  dholland 
     74  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
     75  1.1  dholland 		return (FALSE);
     76  1.1  dholland 	if (!xdr_nlm_stat(xdrs, &objp->stat))
     77  1.1  dholland 		return (FALSE);
     78  1.1  dholland 	return (TRUE);
     79  1.1  dholland }
     80  1.1  dholland 
     81  1.1  dholland bool_t
     82  1.1  dholland xdr_nlm_testres(XDR *xdrs, nlm_testres *objp)
     83  1.1  dholland {
     84  1.1  dholland 
     85  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
     86  1.1  dholland 		return (FALSE);
     87  1.1  dholland 	if (!xdr_nlm_testrply(xdrs, &objp->stat))
     88  1.1  dholland 		return (FALSE);
     89  1.1  dholland 	return (TRUE);
     90  1.1  dholland }
     91  1.1  dholland 
     92  1.1  dholland bool_t
     93  1.1  dholland xdr_nlm_lock(XDR *xdrs, nlm_lock *objp)
     94  1.1  dholland {
     95  1.1  dholland 
     96  1.1  dholland 	if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
     97  1.1  dholland 		return (FALSE);
     98  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->fh))
     99  1.1  dholland 		return (FALSE);
    100  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
    101  1.1  dholland 		return (FALSE);
    102  1.1  dholland 	if (!xdr_int(xdrs, &objp->svid))
    103  1.1  dholland 		return (FALSE);
    104  1.1  dholland 	if (!xdr_u_int(xdrs, &objp->l_offset))
    105  1.1  dholland 		return (FALSE);
    106  1.1  dholland 	if (!xdr_u_int(xdrs, &objp->l_len))
    107  1.1  dholland 		return (FALSE);
    108  1.1  dholland 	return (TRUE);
    109  1.1  dholland }
    110  1.1  dholland 
    111  1.1  dholland bool_t
    112  1.1  dholland xdr_nlm_lockargs(XDR *xdrs, nlm_lockargs *objp)
    113  1.1  dholland {
    114  1.1  dholland 
    115  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    116  1.1  dholland 		return (FALSE);
    117  1.1  dholland 	if (!xdr_bool(xdrs, &objp->block))
    118  1.1  dholland 		return (FALSE);
    119  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    120  1.1  dholland 		return (FALSE);
    121  1.1  dholland 	if (!xdr_nlm_lock(xdrs, &objp->alock))
    122  1.1  dholland 		return (FALSE);
    123  1.1  dholland 	if (!xdr_bool(xdrs, &objp->reclaim))
    124  1.1  dholland 		return (FALSE);
    125  1.1  dholland 	if (!xdr_int(xdrs, &objp->state))
    126  1.1  dholland 		return (FALSE);
    127  1.1  dholland 	return (TRUE);
    128  1.1  dholland }
    129  1.1  dholland 
    130  1.1  dholland bool_t
    131  1.1  dholland xdr_nlm_cancargs(XDR *xdrs, nlm_cancargs *objp)
    132  1.1  dholland {
    133  1.1  dholland 
    134  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    135  1.1  dholland 		return (FALSE);
    136  1.1  dholland 	if (!xdr_bool(xdrs, &objp->block))
    137  1.1  dholland 		return (FALSE);
    138  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    139  1.1  dholland 		return (FALSE);
    140  1.1  dholland 	if (!xdr_nlm_lock(xdrs, &objp->alock))
    141  1.1  dholland 		return (FALSE);
    142  1.1  dholland 	return (TRUE);
    143  1.1  dholland }
    144  1.1  dholland 
    145  1.1  dholland bool_t
    146  1.1  dholland xdr_nlm_testargs(XDR *xdrs, nlm_testargs *objp)
    147  1.1  dholland {
    148  1.1  dholland 
    149  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    150  1.1  dholland 		return (FALSE);
    151  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    152  1.1  dholland 		return (FALSE);
    153  1.1  dholland 	if (!xdr_nlm_lock(xdrs, &objp->alock))
    154  1.1  dholland 		return (FALSE);
    155  1.1  dholland 	return (TRUE);
    156  1.1  dholland }
    157  1.1  dholland 
    158  1.1  dholland bool_t
    159  1.1  dholland xdr_nlm_unlockargs(XDR *xdrs, nlm_unlockargs *objp)
    160  1.1  dholland {
    161  1.1  dholland 
    162  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    163  1.1  dholland 		return (FALSE);
    164  1.1  dholland 	if (!xdr_nlm_lock(xdrs, &objp->alock))
    165  1.1  dholland 		return (FALSE);
    166  1.1  dholland 	return (TRUE);
    167  1.1  dholland }
    168  1.1  dholland 
    169  1.1  dholland bool_t
    170  1.1  dholland xdr_fsh_mode(XDR *xdrs, fsh_mode *objp)
    171  1.1  dholland {
    172  1.1  dholland 
    173  1.1  dholland 	if (!xdr_enum(xdrs, (enum_t *)objp))
    174  1.1  dholland 		return (FALSE);
    175  1.1  dholland 	return (TRUE);
    176  1.1  dholland }
    177  1.1  dholland 
    178  1.1  dholland bool_t
    179  1.1  dholland xdr_fsh_access(XDR *xdrs, fsh_access *objp)
    180  1.1  dholland {
    181  1.1  dholland 
    182  1.1  dholland 	if (!xdr_enum(xdrs, (enum_t *)objp))
    183  1.1  dholland 		return (FALSE);
    184  1.1  dholland 	return (TRUE);
    185  1.1  dholland }
    186  1.1  dholland 
    187  1.1  dholland bool_t
    188  1.1  dholland xdr_nlm_share(XDR *xdrs, nlm_share *objp)
    189  1.1  dholland {
    190  1.1  dholland 
    191  1.1  dholland 	if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
    192  1.1  dholland 		return (FALSE);
    193  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->fh))
    194  1.1  dholland 		return (FALSE);
    195  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
    196  1.1  dholland 		return (FALSE);
    197  1.1  dholland 	if (!xdr_fsh_mode(xdrs, &objp->mode))
    198  1.1  dholland 		return (FALSE);
    199  1.1  dholland 	if (!xdr_fsh_access(xdrs, &objp->access))
    200  1.1  dholland 		return (FALSE);
    201  1.1  dholland 	return (TRUE);
    202  1.1  dholland }
    203  1.1  dholland 
    204  1.1  dholland bool_t
    205  1.1  dholland xdr_nlm_shareargs(XDR *xdrs, nlm_shareargs *objp)
    206  1.1  dholland {
    207  1.1  dholland 
    208  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    209  1.1  dholland 		return (FALSE);
    210  1.1  dholland 	if (!xdr_nlm_share(xdrs, &objp->share))
    211  1.1  dholland 		return (FALSE);
    212  1.1  dholland 	if (!xdr_bool(xdrs, &objp->reclaim))
    213  1.1  dholland 		return (FALSE);
    214  1.1  dholland 	return (TRUE);
    215  1.1  dholland }
    216  1.1  dholland 
    217  1.1  dholland bool_t
    218  1.1  dholland xdr_nlm_shareres(XDR *xdrs, nlm_shareres *objp)
    219  1.1  dholland {
    220  1.1  dholland 
    221  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    222  1.1  dholland 		return (FALSE);
    223  1.1  dholland 	if (!xdr_nlm_stats(xdrs, &objp->stat))
    224  1.1  dholland 		return (FALSE);
    225  1.1  dholland 	if (!xdr_int(xdrs, &objp->sequence))
    226  1.1  dholland 		return (FALSE);
    227  1.1  dholland 	return (TRUE);
    228  1.1  dholland }
    229  1.1  dholland 
    230  1.1  dholland bool_t
    231  1.1  dholland xdr_nlm_notify(XDR *xdrs, nlm_notify *objp)
    232  1.1  dholland {
    233  1.1  dholland 
    234  1.1  dholland 	if (!xdr_string(xdrs, &objp->name, MAXNAMELEN))
    235  1.1  dholland 		return (FALSE);
    236  1.1  dholland 	if (!xdr_long(xdrs, &objp->state))
    237  1.1  dholland 		return (FALSE);
    238  1.1  dholland 	return (TRUE);
    239  1.1  dholland }
    240  1.1  dholland 
    241  1.1  dholland bool_t
    242  1.1  dholland xdr_nlm4_stats(XDR *xdrs, nlm4_stats *objp)
    243  1.1  dholland {
    244  1.1  dholland 
    245  1.1  dholland 	if (!xdr_enum(xdrs, (enum_t *)objp))
    246  1.1  dholland 		return (FALSE);
    247  1.1  dholland 	return (TRUE);
    248  1.1  dholland }
    249  1.1  dholland 
    250  1.1  dholland bool_t
    251  1.1  dholland xdr_nlm4_stat(XDR *xdrs, nlm4_stat *objp)
    252  1.1  dholland {
    253  1.1  dholland 
    254  1.1  dholland 	if (!xdr_nlm4_stats(xdrs, &objp->stat))
    255  1.1  dholland 		return (FALSE);
    256  1.1  dholland 	return (TRUE);
    257  1.1  dholland }
    258  1.1  dholland 
    259  1.1  dholland bool_t
    260  1.1  dholland xdr_nlm4_holder(XDR *xdrs, nlm4_holder *objp)
    261  1.1  dholland {
    262  1.1  dholland 
    263  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    264  1.1  dholland 		return (FALSE);
    265  1.1  dholland 	if (!xdr_uint32_t(xdrs, &objp->svid))
    266  1.1  dholland 		return (FALSE);
    267  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
    268  1.1  dholland 		return (FALSE);
    269  1.1  dholland 	if (!xdr_uint64_t(xdrs, &objp->l_offset))
    270  1.1  dholland 		return (FALSE);
    271  1.1  dholland 	if (!xdr_uint64_t(xdrs, &objp->l_len))
    272  1.1  dholland 		return (FALSE);
    273  1.1  dholland 	return (TRUE);
    274  1.1  dholland }
    275  1.1  dholland 
    276  1.1  dholland bool_t
    277  1.1  dholland xdr_nlm4_lock(XDR *xdrs, nlm4_lock *objp)
    278  1.1  dholland {
    279  1.1  dholland 
    280  1.1  dholland 	if (!xdr_string(xdrs, &objp->caller_name, MAXNAMELEN))
    281  1.1  dholland 		return (FALSE);
    282  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->fh))
    283  1.1  dholland 		return (FALSE);
    284  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
    285  1.1  dholland 		return (FALSE);
    286  1.1  dholland 	if (!xdr_uint32_t(xdrs, &objp->svid))
    287  1.1  dholland 		return (FALSE);
    288  1.1  dholland 	if (!xdr_uint64_t(xdrs, &objp->l_offset))
    289  1.1  dholland 		return (FALSE);
    290  1.1  dholland 	if (!xdr_uint64_t(xdrs, &objp->l_len))
    291  1.1  dholland 		return (FALSE);
    292  1.1  dholland 	return (TRUE);
    293  1.1  dholland }
    294  1.1  dholland 
    295  1.1  dholland bool_t
    296  1.1  dholland xdr_nlm4_share(XDR *xdrs, nlm4_share *objp)
    297  1.1  dholland {
    298  1.1  dholland 
    299  1.1  dholland 	if (!xdr_string(xdrs, &objp->caller_name, MAXNAMELEN))
    300  1.1  dholland 		return (FALSE);
    301  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->fh))
    302  1.1  dholland 		return (FALSE);
    303  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->oh))
    304  1.1  dholland 		return (FALSE);
    305  1.1  dholland 	if (!xdr_fsh_mode(xdrs, &objp->mode))
    306  1.1  dholland 		return (FALSE);
    307  1.1  dholland 	if (!xdr_fsh_access(xdrs, &objp->access))
    308  1.1  dholland 		return (FALSE);
    309  1.1  dholland 	return (TRUE);
    310  1.1  dholland }
    311  1.1  dholland 
    312  1.1  dholland bool_t
    313  1.1  dholland xdr_nlm4_testrply(XDR *xdrs, nlm4_testrply *objp)
    314  1.1  dholland {
    315  1.1  dholland 
    316  1.1  dholland 	if (!xdr_nlm4_stats(xdrs, &objp->stat))
    317  1.1  dholland 		return (FALSE);
    318  1.1  dholland 	switch (objp->stat) {
    319  1.1  dholland 	case nlm_denied:
    320  1.1  dholland 		if (!xdr_nlm4_holder(xdrs, &objp->nlm4_testrply_u.holder))
    321  1.1  dholland 			return (FALSE);
    322  1.1  dholland 		break;
    323  1.1  dholland 	default:
    324  1.1  dholland 		break;
    325  1.1  dholland 	}
    326  1.1  dholland 	return (TRUE);
    327  1.1  dholland }
    328  1.1  dholland 
    329  1.1  dholland bool_t
    330  1.1  dholland xdr_nlm4_testres(XDR *xdrs, nlm4_testres *objp)
    331  1.1  dholland {
    332  1.1  dholland 
    333  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    334  1.1  dholland 		return (FALSE);
    335  1.1  dholland 	if (!xdr_nlm4_testrply(xdrs, &objp->stat))
    336  1.1  dholland 		return (FALSE);
    337  1.1  dholland 	return (TRUE);
    338  1.1  dholland }
    339  1.1  dholland 
    340  1.1  dholland bool_t
    341  1.1  dholland xdr_nlm4_testargs(XDR *xdrs, nlm4_testargs *objp)
    342  1.1  dholland {
    343  1.1  dholland 
    344  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    345  1.1  dholland 		return (FALSE);
    346  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    347  1.1  dholland 		return (FALSE);
    348  1.1  dholland 	if (!xdr_nlm4_lock(xdrs, &objp->alock))
    349  1.1  dholland 		return (FALSE);
    350  1.1  dholland 	return (TRUE);
    351  1.1  dholland }
    352  1.1  dholland 
    353  1.1  dholland bool_t
    354  1.1  dholland xdr_nlm4_res(XDR *xdrs, nlm4_res *objp)
    355  1.1  dholland {
    356  1.1  dholland 
    357  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    358  1.1  dholland 		return (FALSE);
    359  1.1  dholland 	if (!xdr_nlm4_stat(xdrs, &objp->stat))
    360  1.1  dholland 		return (FALSE);
    361  1.1  dholland 	return (TRUE);
    362  1.1  dholland }
    363  1.1  dholland 
    364  1.1  dholland bool_t
    365  1.1  dholland xdr_nlm4_lockargs(XDR *xdrs, nlm4_lockargs *objp)
    366  1.1  dholland {
    367  1.1  dholland 
    368  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    369  1.1  dholland 		return (FALSE);
    370  1.1  dholland 	if (!xdr_bool(xdrs, &objp->block))
    371  1.1  dholland 		return (FALSE);
    372  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    373  1.1  dholland 		return (FALSE);
    374  1.1  dholland 	if (!xdr_nlm4_lock(xdrs, &objp->alock))
    375  1.1  dholland 		return (FALSE);
    376  1.1  dholland 	if (!xdr_bool(xdrs, &objp->reclaim))
    377  1.1  dholland 		return (FALSE);
    378  1.1  dholland 	if (!xdr_int(xdrs, &objp->state))
    379  1.1  dholland 		return (FALSE);
    380  1.1  dholland 	return (TRUE);
    381  1.1  dholland }
    382  1.1  dholland 
    383  1.1  dholland bool_t
    384  1.1  dholland xdr_nlm4_cancargs(XDR *xdrs, nlm4_cancargs *objp)
    385  1.1  dholland {
    386  1.1  dholland 
    387  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    388  1.1  dholland 		return (FALSE);
    389  1.1  dholland 	if (!xdr_bool(xdrs, &objp->block))
    390  1.1  dholland 		return (FALSE);
    391  1.1  dholland 	if (!xdr_bool(xdrs, &objp->exclusive))
    392  1.1  dholland 		return (FALSE);
    393  1.1  dholland 	if (!xdr_nlm4_lock(xdrs, &objp->alock))
    394  1.1  dholland 		return (FALSE);
    395  1.1  dholland 	return (TRUE);
    396  1.1  dholland }
    397  1.1  dholland 
    398  1.1  dholland bool_t
    399  1.1  dholland xdr_nlm4_unlockargs(XDR *xdrs, nlm4_unlockargs *objp)
    400  1.1  dholland {
    401  1.1  dholland 
    402  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    403  1.1  dholland 		return (FALSE);
    404  1.1  dholland 	if (!xdr_nlm4_lock(xdrs, &objp->alock))
    405  1.1  dholland 		return (FALSE);
    406  1.1  dholland 	return (TRUE);
    407  1.1  dholland }
    408  1.1  dholland 
    409  1.1  dholland bool_t
    410  1.1  dholland xdr_nlm4_shareargs(XDR *xdrs, nlm4_shareargs *objp)
    411  1.1  dholland {
    412  1.1  dholland 
    413  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    414  1.1  dholland 		return (FALSE);
    415  1.1  dholland 	if (!xdr_nlm4_share(xdrs, &objp->share))
    416  1.1  dholland 		return (FALSE);
    417  1.1  dholland 	if (!xdr_bool(xdrs, &objp->reclaim))
    418  1.1  dholland 		return (FALSE);
    419  1.1  dholland 	return (TRUE);
    420  1.1  dholland }
    421  1.1  dholland 
    422  1.1  dholland bool_t
    423  1.1  dholland xdr_nlm4_shareres(XDR *xdrs, nlm4_shareres *objp)
    424  1.1  dholland {
    425  1.1  dholland 
    426  1.1  dholland 	if (!xdr_netobj(xdrs, &objp->cookie))
    427  1.1  dholland 		return (FALSE);
    428  1.1  dholland 	if (!xdr_nlm4_stats(xdrs, &objp->stat))
    429  1.1  dholland 		return (FALSE);
    430  1.1  dholland 	if (!xdr_int(xdrs, &objp->sequence))
    431  1.1  dholland 		return (FALSE);
    432  1.1  dholland 	return (TRUE);
    433  1.1  dholland }
    434  1.1  dholland 
    435  1.1  dholland bool_t
    436  1.1  dholland xdr_nlm_sm_status(XDR *xdrs, nlm_sm_status *objp)
    437  1.1  dholland {
    438  1.1  dholland 
    439  1.1  dholland 	if (!xdr_string(xdrs, &objp->mon_name, LM_MAXSTRLEN))
    440  1.1  dholland 		return (FALSE);
    441  1.1  dholland 	if (!xdr_int(xdrs, &objp->state))
    442  1.1  dholland 		return (FALSE);
    443  1.1  dholland 	if (!xdr_opaque(xdrs, objp->priv, 16))
    444  1.1  dholland 		return (FALSE);
    445  1.1  dholland 	return (TRUE);
    446  1.1  dholland }
    447  1.1  dholland 
    448  1.1  dholland bool_t
    449  1.1  dholland xdr_nlm4_notify(XDR *xdrs, nlm4_notify *objp)
    450  1.1  dholland {
    451  1.1  dholland 
    452  1.1  dholland 	if (!xdr_string(xdrs, &objp->name, MAXNAMELEN))
    453  1.1  dholland 		return (FALSE);
    454  1.1  dholland 	if (!xdr_int32_t(xdrs, &objp->state))
    455  1.1  dholland 		return (FALSE);
    456  1.1  dholland 	return (TRUE);
    457  1.1  dholland }
    458