smb_smb.c (75374) | smb_smb.c (87192) |
---|---|
1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/netsmb/smb_smb.c 75374 2001-04-10 07:59:06Z bp $ | 32 * $FreeBSD: head/sys/netsmb/smb_smb.c 87192 2001-12-02 08:47:29Z bp $ |
33 */ 34/* 35 * various SMB requests. Most of the routines merely packs data into mbufs. 36 */ 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> --- 28 unchanged lines hidden (view full) --- 69 {-1, NULL} 70}; 71 72#define SMB_DIALECT_MAX (sizeof(smb_dialects) / sizeof(struct smb_dialect) - 2) 73 74static int 75smb_smb_nomux(struct smb_vc *vcp, struct smb_cred *scred, const char *name) 76{ | 33 */ 34/* 35 * various SMB requests. Most of the routines merely packs data into mbufs. 36 */ 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> --- 28 unchanged lines hidden (view full) --- 69 {-1, NULL} 70}; 71 72#define SMB_DIALECT_MAX (sizeof(smb_dialects) / sizeof(struct smb_dialect) - 2) 73 74static int 75smb_smb_nomux(struct smb_vc *vcp, struct smb_cred *scred, const char *name) 76{ |
77 if (scred->scr_p == vcp->vc_iod->iod_p) | 77 if (scred->scr_td->td_proc == vcp->vc_iod->iod_p) |
78 return 0; 79 SMBERROR("wrong function called(%s)\n", name); 80 return EINVAL; 81} 82 83int 84smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) 85{ --- 575 unchanged lines hidden --- | 78 return 0; 79 SMBERROR("wrong function called(%s)\n", name); 80 return EINVAL; 81} 82 83int 84smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) 85{ --- 575 unchanged lines hidden --- |