/* XDR the MSG_ACCEPTED part of a reply message union  */
static bool_t xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar)
/* XDR the MSG_ACCEPTED part of a reply message union  */
static bool_t xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar)
{
    if (!xdr_opaque_auth(xdrs, &(ar->ar_verf)))
        return (FALSE);
    if (!xdr_enum(xdrs, (enum_t *) & (ar->ar_stat)))
        return (FALSE);
    switch (ar->ar_stat) {
    case SUCCESS:
        return ((*(ar->ar_results.proc)) (xdrs, ar->ar_results.where));
    case PROG_MISMATCH:
        if (!xdr_u_long(xdrs, &(ar->ar_vers.low)))
            return (FALSE);
        return (xdr_u_long(xdrs, &(ar->ar_vers.high)));
    }
    return (TRUE);
}