Lines Matching refs:param
254 srvsvc_NetConnectEnum_t *param = arg; in srvsvc_s_NetConnectEnum() local
266 qualifier = (char *)param->qualifier; in srvsvc_s_NetConnectEnum()
273 param->total_entries = srvsvc_open_connections(qualtype, qualifier); in srvsvc_s_NetConnectEnum()
274 if (param->total_entries == 0) { in srvsvc_s_NetConnectEnum()
275 bzero(param, sizeof (srvsvc_NetConnectEnum_t)); in srvsvc_s_NetConnectEnum()
276 param->status = ERROR_SUCCESS; in srvsvc_s_NetConnectEnum()
282 se.se_level = param->info.level; in srvsvc_s_NetConnectEnum()
283 se.se_ntotal = param->total_entries; in srvsvc_s_NetConnectEnum()
286 if (param->pref_max_len == SMB_SRVSVC_MAXPREFLEN || in srvsvc_s_NetConnectEnum()
287 param->pref_max_len > SMB_SRVSVC_MAXBUFLEN) in srvsvc_s_NetConnectEnum()
290 se.se_prefmaxlen = param->pref_max_len; in srvsvc_s_NetConnectEnum()
292 if (param->resume_handle) { in srvsvc_s_NetConnectEnum()
293 se.se_resume = *param->resume_handle; in srvsvc_s_NetConnectEnum()
295 *param->resume_handle = 0; in srvsvc_s_NetConnectEnum()
298 switch (param->info.level) { in srvsvc_s_NetConnectEnum()
300 status = srvsvc_netconnectenum_level0(mxa, &se, param); in srvsvc_s_NetConnectEnum()
303 status = srvsvc_netconnectenum_level1(mxa, &se, param); in srvsvc_s_NetConnectEnum()
321 status = srvsvc_netconnectenum_common(mxa, ¶m->info, ns, &se); in srvsvc_s_NetConnectEnum()
327 if (param->resume_handle && in srvsvc_s_NetConnectEnum()
328 param->pref_max_len != SMB_SRVSVC_MAXPREFLEN) { in srvsvc_s_NetConnectEnum()
329 if (se.se_resume < param->total_entries) { in srvsvc_s_NetConnectEnum()
330 *param->resume_handle = se.se_resume; in srvsvc_s_NetConnectEnum()
335 param->status = status; in srvsvc_s_NetConnectEnum()
339 bzero(param, sizeof (srvsvc_NetConnectEnum_t)); in srvsvc_s_NetConnectEnum()
340 param->status = status; in srvsvc_s_NetConnectEnum()
350 srvsvc_NetConnectEnum_t *param) in srvsvc_netconnectenum_level0() argument
359 param->info.ru.info0 = info0; in srvsvc_netconnectenum_level0()
385 srvsvc_NetConnectEnum_t *param) in srvsvc_netconnectenum_level1() argument
394 param->info.ru.info1 = info1; in srvsvc_netconnectenum_level1()
595 struct mslm_NetFileEnum *param = arg; in srvsvc_s_NetFileEnum() local
600 bzero(param, sizeof (struct mslm_NetFileEnum)); in srvsvc_s_NetFileEnum()
601 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetFileEnum()
605 if ((param->total_entries = srvsvc_open_files()) == 0) { in srvsvc_s_NetFileEnum()
606 bzero(param, sizeof (struct mslm_NetFileEnum)); in srvsvc_s_NetFileEnum()
607 param->status = ERROR_SUCCESS; in srvsvc_s_NetFileEnum()
613 se.se_level = param->info.switch_value; in srvsvc_s_NetFileEnum()
614 se.se_ntotal = param->total_entries; in srvsvc_s_NetFileEnum()
617 if (param->pref_max_len == SMB_SRVSVC_MAXPREFLEN || in srvsvc_s_NetFileEnum()
618 param->pref_max_len > SMB_SRVSVC_MAXBUFLEN) in srvsvc_s_NetFileEnum()
621 se.se_prefmaxlen = param->pref_max_len; in srvsvc_s_NetFileEnum()
623 if (param->resume_handle) { in srvsvc_s_NetFileEnum()
624 se.se_resume = *param->resume_handle; in srvsvc_s_NetFileEnum()
626 *param->resume_handle = 0; in srvsvc_s_NetFileEnum()
629 switch (param->info.switch_value) { in srvsvc_s_NetFileEnum()
631 status = srvsvc_NetFileEnum2(mxa, param, &se); in srvsvc_s_NetFileEnum()
635 status = srvsvc_NetFileEnum3(mxa, param, &se); in srvsvc_s_NetFileEnum()
648 bzero(param, sizeof (struct mslm_NetFileEnum)); in srvsvc_s_NetFileEnum()
649 param->status = status; in srvsvc_s_NetFileEnum()
653 if (param->resume_handle && in srvsvc_s_NetFileEnum()
654 param->pref_max_len != SMB_SRVSVC_MAXPREFLEN) { in srvsvc_s_NetFileEnum()
655 if (se.se_resume < param->total_entries) { in srvsvc_s_NetFileEnum()
656 *param->resume_handle = se.se_resume; in srvsvc_s_NetFileEnum()
661 param->status = status; in srvsvc_s_NetFileEnum()
675 srvsvc_NetFileEnum2(ndr_xa_t *mxa, struct mslm_NetFileEnum *param, in srvsvc_NetFileEnum2() argument
684 param->info.ru.info2 = NDR_NEW(mxa, struct mslm_NetFileInfo2); in srvsvc_NetFileEnum2()
685 if (param->info.ru.info2 == NULL) in srvsvc_NetFileEnum2()
701 param->info.ru.info2->fi2 = fi2; in srvsvc_NetFileEnum2()
722 param->info.ru.info2->entries_read = entries_read; in srvsvc_NetFileEnum2()
737 srvsvc_NetFileEnum3(ndr_xa_t *mxa, struct mslm_NetFileEnum *param, in srvsvc_NetFileEnum3() argument
746 param->info.ru.info3 = NDR_NEW(mxa, struct mslm_NetFileInfo3); in srvsvc_NetFileEnum3()
747 if (param->info.ru.info3 == NULL) in srvsvc_NetFileEnum3()
764 param->info.ru.info3->fi3 = fi3; in srvsvc_NetFileEnum3()
791 param->info.ru.info3->entries_read = entries_read; in srvsvc_NetFileEnum3()
792 param->total_entries = entries_read; in srvsvc_NetFileEnum3()
832 struct mslm_NetFileClose *param = arg; in srvsvc_s_NetFileClose() local
837 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetFileClose()
841 rc = smb_kmod_file_close(param->file_id); in srvsvc_s_NetFileClose()
845 param->status = errmap[i].nerr; in srvsvc_s_NetFileClose()
850 param->status = ERROR_INTERNAL_ERROR; in srvsvc_s_NetFileClose()
862 struct mlsm_NetShareGetInfo *param = arg; in srvsvc_s_NetShareGetInfo() local
880 status = smb_shr_get((char *)param->netname, &si); in srvsvc_s_NetShareGetInfo()
882 bzero(param, sizeof (struct mlsm_NetShareGetInfo)); in srvsvc_s_NetShareGetInfo()
883 param->status = status; in srvsvc_s_NetShareGetInfo()
889 bzero(param, sizeof (struct mlsm_NetShareGetInfo)); in srvsvc_s_NetShareGetInfo()
890 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetShareGetInfo()
899 bzero(param, sizeof (struct mlsm_NetShareGetInfo)); in srvsvc_s_NetShareGetInfo()
900 param->status = ERROR_NOT_ENOUGH_MEMORY; in srvsvc_s_NetShareGetInfo()
904 switch (param->level) { in srvsvc_s_NetShareGetInfo()
908 param->result.ru.info0 = info0; in srvsvc_s_NetShareGetInfo()
916 param->result.ru.info1 = info1; in srvsvc_s_NetShareGetInfo()
930 param->result.ru.info2 = info2; in srvsvc_s_NetShareGetInfo()
939 param->result.ru.info501 = info501; in srvsvc_s_NetShareGetInfo()
963 param->result.ru.info502 = info502; in srvsvc_s_NetShareGetInfo()
988 param->result.ru.info503 = info503; in srvsvc_s_NetShareGetInfo()
994 param->result.ru.info1004 = info1004; in srvsvc_s_NetShareGetInfo()
1000 param->result.ru.info1005 = info1005; in srvsvc_s_NetShareGetInfo()
1006 param->result.ru.info1006 = info1006; in srvsvc_s_NetShareGetInfo()
1021 param->result.ru.info1501 = info1501; in srvsvc_s_NetShareGetInfo()
1030 bzero(param, sizeof (struct mlsm_NetShareGetInfo)); in srvsvc_s_NetShareGetInfo()
1032 param->result.switch_value = param->level; in srvsvc_s_NetShareGetInfo()
1034 param->status = status; in srvsvc_s_NetShareGetInfo()
1079 struct mlsm_NetShareSetInfo *param = arg; in srvsvc_s_NetShareSetInfo() local
1103 if (smb_shr_get((char *)param->netname, &si) != NERR_Success) { in srvsvc_s_NetShareSetInfo()
1108 if (param->result.ru.nullptr == NULL) { in srvsvc_s_NetShareSetInfo()
1115 switch (param->level) { in srvsvc_s_NetShareSetInfo()
1117 info0 = (struct mslm_NetShareInfo_0 *)param->result.ru.info0; in srvsvc_s_NetShareSetInfo()
1123 info1 = (struct mslm_NetShareInfo_1 *)param->result.ru.info1; in srvsvc_s_NetShareSetInfo()
1131 info2 = (struct mslm_NetShareInfo_2 *)param->result.ru.info2; in srvsvc_s_NetShareSetInfo()
1141 param->result.ru.info501; in srvsvc_s_NetShareSetInfo()
1153 param->result.ru.info502; in srvsvc_s_NetShareSetInfo()
1164 param->result.ru.info503; in srvsvc_s_NetShareSetInfo()
1175 param->result.ru.info1004; in srvsvc_s_NetShareSetInfo()
1182 param->result.ru.info1005; in srvsvc_s_NetShareSetInfo()
1197 param->result.ru.info1501; in srvsvc_s_NetShareSetInfo()
1215 bzero(param, sizeof (struct mlsm_NetShareSetInfo)); in srvsvc_s_NetShareSetInfo()
1217 param->parm_err = (native_os == NATIVE_OS_WIN95) ? 0 : &parm_err; in srvsvc_s_NetShareSetInfo()
1218 param->status = status; in srvsvc_s_NetShareSetInfo()
1398 struct mslm_NetSessionEnum *param = arg; in srvsvc_s_NetSessionEnum() local
1416 param->result.level = param->level; in srvsvc_s_NetSessionEnum()
1417 param->result.bufptr.p = info; in srvsvc_s_NetSessionEnum()
1419 if ((param->total_entries = srvsvc_open_sessions()) == 0) { in srvsvc_s_NetSessionEnum()
1420 param->resume_handle = NULL; in srvsvc_s_NetSessionEnum()
1421 param->status = ERROR_SUCCESS; in srvsvc_s_NetSessionEnum()
1427 se.se_level = param->level; in srvsvc_s_NetSessionEnum()
1428 se.se_ntotal = param->total_entries; in srvsvc_s_NetSessionEnum()
1431 if (param->resume_handle) { in srvsvc_s_NetSessionEnum()
1432 se.se_resume = *param->resume_handle; in srvsvc_s_NetSessionEnum()
1434 *param->resume_handle = 0; in srvsvc_s_NetSessionEnum()
1437 switch (param->level) { in srvsvc_s_NetSessionEnum()
1459 bzero(param, sizeof (struct mslm_NetSessionEnum)); in srvsvc_s_NetSessionEnum()
1460 param->status = ERROR_INVALID_LEVEL; in srvsvc_s_NetSessionEnum()
1480 if (param->resume_handle && in srvsvc_s_NetSessionEnum()
1481 param->pref_max_len != SMB_SRVSVC_MAXPREFLEN) { in srvsvc_s_NetSessionEnum()
1482 if (se.se_resume < param->total_entries) { in srvsvc_s_NetSessionEnum()
1483 *param->resume_handle = se.se_resume; in srvsvc_s_NetSessionEnum()
1488 param->total_entries = info->entriesread; in srvsvc_s_NetSessionEnum()
1489 param->status = status; in srvsvc_s_NetSessionEnum()
1493 bzero(param, sizeof (struct mslm_NetSessionEnum)); in srvsvc_s_NetSessionEnum()
1494 param->status = status; in srvsvc_s_NetSessionEnum()
1656 struct mslm_NetSessionDel *param = arg; in srvsvc_s_NetSessionDel() local
1661 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetSessionDel()
1665 rc = smb_kmod_session_close((char *)param->unc_clientname, in srvsvc_s_NetSessionDel()
1666 (char *)param->username); in srvsvc_s_NetSessionDel()
1670 param->status = errmap[i].nerr; in srvsvc_s_NetSessionDel()
1675 param->status = ERROR_INTERNAL_ERROR; in srvsvc_s_NetSessionDel()
1682 struct mslm_NetServerGetInfo *param = arg; in srvsvc_s_NetServerGetInfo() local
1694 bzero(param, sizeof (struct mslm_NetServerGetInfo)); in srvsvc_s_NetServerGetInfo()
1705 switch (param->level) { in srvsvc_s_NetServerGetInfo()
1717 param->result.bufptr.bufptr100 = info100; in srvsvc_s_NetServerGetInfo()
1738 param->result.bufptr.bufptr101 = info101; in srvsvc_s_NetServerGetInfo()
1771 param->result.bufptr.bufptr102 = info102; in srvsvc_s_NetServerGetInfo()
1780 param->result.bufptr.bufptr502 = info502; in srvsvc_s_NetServerGetInfo()
1784 param->result.level = param->level; in srvsvc_s_NetServerGetInfo()
1785 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetServerGetInfo()
1795 param->result.bufptr.bufptr503 = info503; in srvsvc_s_NetServerGetInfo()
1799 param->result.level = param->level; in srvsvc_s_NetServerGetInfo()
1800 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetServerGetInfo()
1805 bzero(¶m->result, in srvsvc_s_NetServerGetInfo()
1807 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetServerGetInfo()
1811 param->result.level = param->level; in srvsvc_s_NetServerGetInfo()
1812 param->status = ERROR_SUCCESS; in srvsvc_s_NetServerGetInfo()
1850 struct mslm_NetRemoteTOD *param = arg; in srvsvc_s_NetRemoteTOD() local
1862 bzero(param, sizeof (struct mslm_NetRemoteTOD)); in srvsvc_s_NetRemoteTOD()
1884 param->bufptr = tod; in srvsvc_s_NetRemoteTOD()
1885 param->status = ERROR_SUCCESS; in srvsvc_s_NetRemoteTOD()
1900 struct mslm_NetNameValidate *param = arg; in srvsvc_s_NetNameValidate() local
1905 if ((name = (char *)param->pathname) == NULL) { in srvsvc_s_NetNameValidate()
1906 param->status = ERROR_INVALID_PARAMETER; in srvsvc_s_NetNameValidate()
1910 switch (param->type) { in srvsvc_s_NetNameValidate()
1913 maxlen = (param->flags & NAMEFLAG_LM2) ? in srvsvc_s_NetNameValidate()
1917 param->status = ERROR_INVALID_NAME; in srvsvc_s_NetNameValidate()
1921 param->status = smb_name_validate_share(name); in srvsvc_s_NetNameValidate()
1926 param->status = smb_name_validate_account(name); in srvsvc_s_NetNameValidate()
1930 param->status = smb_name_validate_nbdomain(name); in srvsvc_s_NetNameValidate()
1934 param->status = smb_name_validate_workgroup(name); in srvsvc_s_NetNameValidate()
1945 param->status = ERROR_NOT_SUPPORTED; in srvsvc_s_NetNameValidate()
1949 param->status = ERROR_INVALID_PARAMETER; in srvsvc_s_NetNameValidate()
1972 struct mslm_NetShareAdd *param = arg; in srvsvc_s_NetShareAdd() local
1984 bzero(param, sizeof (struct mslm_NetShareAdd)); in srvsvc_s_NetShareAdd()
1985 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetShareAdd()
1989 switch (param->level) { in srvsvc_s_NetShareAdd()
1991 info2 = (struct mslm_NetShareInfo_2 *)param->info.un.info2; in srvsvc_s_NetShareAdd()
1996 param->info.un.info502; in srvsvc_s_NetShareAdd()
2002 bzero(param, sizeof (struct mslm_NetShareAdd)); in srvsvc_s_NetShareAdd()
2003 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetShareAdd()
2008 bzero(param, sizeof (struct mslm_NetShareAdd)); in srvsvc_s_NetShareAdd()
2009 param->status = NERR_NetNameNotFound; in srvsvc_s_NetShareAdd()
2014 bzero(param, sizeof (struct mslm_NetShareAdd)); in srvsvc_s_NetShareAdd()
2015 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetShareAdd()
2031 bzero(param, sizeof (struct mslm_NetShareAdd)); in srvsvc_s_NetShareAdd()
2032 param->status = parm_stat; in srvsvc_s_NetShareAdd()
2033 param->parm_err in srvsvc_s_NetShareAdd()
2038 param->status = srvsvc_sa_add((char *)info2->shi2_netname, realpath, in srvsvc_s_NetShareAdd()
2040 if (param->status == NERR_Success) { in srvsvc_s_NetShareAdd()
2046 param->parm_err = (native_os == NATIVE_OS_WIN95) ? 0 : &parm_err; in srvsvc_s_NetShareAdd()
2092 struct mslm_NetShareEnum *param = arg; in srvsvc_s_NetShareEnum() local
2099 bzero(param, sizeof (struct mslm_NetShareEnum)); in srvsvc_s_NetShareEnum()
2100 param->status = ERROR_NOT_ENOUGH_MEMORY; in srvsvc_s_NetShareEnum()
2106 param->result.level = param->level; in srvsvc_s_NetShareEnum()
2107 param->result.bufptr.p = infonres; in srvsvc_s_NetShareEnum()
2111 se.se_level = param->level; in srvsvc_s_NetShareEnum()
2115 if (param->prefmaxlen == SMB_SRVSVC_MAXPREFLEN || in srvsvc_s_NetShareEnum()
2116 param->prefmaxlen > SMB_SRVSVC_MAXBUFLEN) in srvsvc_s_NetShareEnum()
2119 se.se_prefmaxlen = param->prefmaxlen; in srvsvc_s_NetShareEnum()
2121 if (param->resume_handle) { in srvsvc_s_NetShareEnum()
2122 se.se_resume = *param->resume_handle; in srvsvc_s_NetShareEnum()
2124 *param->resume_handle = 0; in srvsvc_s_NetShareEnum()
2127 switch (param->level) { in srvsvc_s_NetShareEnum()
2154 bzero(param, sizeof (struct mslm_NetShareEnum)); in srvsvc_s_NetShareEnum()
2155 param->status = status; in srvsvc_s_NetShareEnum()
2160 param->status = ERROR_SUCCESS; in srvsvc_s_NetShareEnum()
2164 if (param->resume_handle && in srvsvc_s_NetShareEnum()
2165 param->prefmaxlen != SMB_SRVSVC_MAXPREFLEN) { in srvsvc_s_NetShareEnum()
2167 *param->resume_handle = se.se_resume; in srvsvc_s_NetShareEnum()
2172 param->totalentries = se.se_ntotal; in srvsvc_s_NetShareEnum()
2173 param->status = status; in srvsvc_s_NetShareEnum()
2197 struct mslm_NetShareEnum *param = arg; in srvsvc_s_NetShareEnumSticky() local
2204 bzero(param, sizeof (struct mslm_NetShareEnum)); in srvsvc_s_NetShareEnumSticky()
2205 param->status = ERROR_NOT_ENOUGH_MEMORY; in srvsvc_s_NetShareEnumSticky()
2211 param->result.level = param->level; in srvsvc_s_NetShareEnumSticky()
2212 param->result.bufptr.p = infonres; in srvsvc_s_NetShareEnumSticky()
2216 se.se_level = param->level; in srvsvc_s_NetShareEnumSticky()
2220 if (param->prefmaxlen == SMB_SRVSVC_MAXPREFLEN || in srvsvc_s_NetShareEnumSticky()
2221 param->prefmaxlen > SMB_SRVSVC_MAXBUFLEN) in srvsvc_s_NetShareEnumSticky()
2224 se.se_prefmaxlen = param->prefmaxlen; in srvsvc_s_NetShareEnumSticky()
2226 if (param->resume_handle) { in srvsvc_s_NetShareEnumSticky()
2227 se.se_resume = *param->resume_handle; in srvsvc_s_NetShareEnumSticky()
2229 *param->resume_handle = 0; in srvsvc_s_NetShareEnumSticky()
2232 switch (param->level) { in srvsvc_s_NetShareEnumSticky()
2256 bzero(param, sizeof (struct mslm_NetShareEnum)); in srvsvc_s_NetShareEnumSticky()
2257 param->status = status; in srvsvc_s_NetShareEnumSticky()
2262 param->status = ERROR_SUCCESS; in srvsvc_s_NetShareEnumSticky()
2266 if (param->resume_handle && in srvsvc_s_NetShareEnumSticky()
2267 param->prefmaxlen != SMB_SRVSVC_MAXPREFLEN) { in srvsvc_s_NetShareEnumSticky()
2269 *param->resume_handle = se.se_resume; in srvsvc_s_NetShareEnumSticky()
2274 param->totalentries = se.se_ntotal; in srvsvc_s_NetShareEnumSticky()
2275 param->status = status; in srvsvc_s_NetShareEnumSticky()
2833 struct mslm_NetShareCheck *param = arg; in srvsvc_s_NetShareCheck() local
2838 if (param->path == NULL) { in srvsvc_s_NetShareCheck()
2839 param->stype = STYPE_DISKTREE; in srvsvc_s_NetShareCheck()
2840 param->status = NERR_NetNameNotFound; in srvsvc_s_NetShareCheck()
2844 (void) strsubst((char *)param->path, '/', '\\'); in srvsvc_s_NetShareCheck()
2855 if (smb_strcasecmp(path, (char *)param->path, 0) == 0) { in srvsvc_s_NetShareCheck()
2856 param->stype = (si->shr_type & STYPE_MASK); in srvsvc_s_NetShareCheck()
2857 param->status = NERR_Success; in srvsvc_s_NetShareCheck()
2862 param->stype = STYPE_DISKTREE; in srvsvc_s_NetShareCheck()
2863 param->status = NERR_NetNameNotFound; in srvsvc_s_NetShareCheck()
2880 struct mslm_NetShareDel *param = arg; in srvsvc_s_NetShareDel() local
2884 smb_shr_is_restricted((char *)param->netname)) { in srvsvc_s_NetShareDel()
2885 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetShareDel()
2889 if (smb_shr_get((char *)param->netname, &si) == NERR_Success) { in srvsvc_s_NetShareDel()
2891 param->status = NERR_IsDfsShare; in srvsvc_s_NetShareDel()
2896 param->status = srvsvc_sa_delete((char *)param->netname); in srvsvc_s_NetShareDel()
2912 struct mslm_NetGetFileSecurity *param = arg; in srvsvc_s_NetGetFileSecurity() local
2914 param->length = 0; in srvsvc_s_NetGetFileSecurity()
2915 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetGetFileSecurity()
2931 struct mslm_NetSetFileSecurity *param = arg; in srvsvc_s_NetSetFileSecurity() local
2933 param->status = ERROR_ACCESS_DENIED; in srvsvc_s_NetSetFileSecurity()