smb_xdr_utils.c revision 1fcced4c370617db71610fecffd5451a5894ca5e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KERNEL
#include <string.h>
#include <strings.h>
#endif /* _KERNEL */
{
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
/*
* Encode an opipe header structure into a buffer.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
* Decode an XDR buffer into an opipe header structure.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
/*
* Encode an smb_netuserinfo_t into a buffer.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
* Decode an XDR buffer into an smb_netuserinfo_t.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
{
return (FALSE);
return (FALSE);
} else {
return (FALSE);
}
return (TRUE);
}
/*
*/
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
/*
* Encode an smb_netconnectinfo_t into a buffer.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
* Decode an XDR buffer into an smb_netconnectinfo_t.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
*/
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
/*
* Encode an smb_netfileinfo_t into a buffer.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
* Decode an XDR buffer into an smb_netfileinfo_t.
*/
int
{
int rc = 0;
rc = -1;
xdr_destroy(&xdrs);
return (rc);
}
/*
*/
{
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
}
{
return (FALSE);
}
return (FALSE);
}
return (TRUE);
}
{
return (FALSE);
}
return (TRUE);
}
{
return (FALSE);
}
return (FALSE);
}
return (TRUE);
}
{
return (FALSE);
}
return (FALSE);
}
return (TRUE);
}