da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER END
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Use is subject to license terms.
a90cf9f29973990687fa61de9f1f6ea22e924e40Gordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The echo request is used to test the connection to the server,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and to see if the server is still responding. The tid is ignored,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * so this request may be sent to the server even if there are no
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * tree connections to the server.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Each response echoes the data sent, though ByteCount may indicate
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * no data. If echo-count is zero, no response is sent.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw unsigned short i;
7f3ef643e446c82e27a9386991b140b128baf22cGordon Ross * Don't let the client fool us into doing
7f3ef643e446c82e27a9386991b140b128baf22cGordon Ross * more work than is "reasonable".
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States data = smb_srm_zalloc(sr, nbytes);
7f3ef643e446c82e27a9386991b140b128baf22cGordon Ross * According to [MS-CIFS] 3.3.5.32 echo is
7f3ef643e446c82e27a9386991b140b128baf22cGordon Ross * subject to cancellation.