Home
last modified time | relevance | path

Searched refs:NETBIOS_NAME_SZ (Results 1 – 25 of 25) sorted by relevance

/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_info.c125 if (buflen >= NETBIOS_NAME_SZ) in smb_getnetbiosname()
126 buf[NETBIOS_NAME_SZ - 1] = '\0'; in smb_getnetbiosname()
542 char tmp_name[NETBIOS_NAME_SZ]; in smb_tonetbiosname()
543 smb_wchar_t wtmp_name[NETBIOS_NAME_SZ]; in smb_tonetbiosname()
548 rc = smb_mbstowcs(wtmp_name, (const char *)name, NETBIOS_NAME_SZ); in smb_tonetbiosname()
551 wtmp_name[NETBIOS_NAME_SZ - 1] = 0; in smb_tonetbiosname()
552 rc = ucstooem(tmp_name, wtmp_name, NETBIOS_NAME_SZ, in smb_tonetbiosname()
558 (void) memset(nb_name, ' ', NETBIOS_NAME_SZ - 1); in smb_tonetbiosname()
563 nb_name[NETBIOS_NAME_SZ - 1] = suffix; in smb_tonetbiosname()
H A Dsmb_util.c909 char netbiosname[NETBIOS_NAME_SZ]; in smb_name_validate_nbdomain()
917 if (len == 0 || len >= NETBIOS_NAME_SZ) in smb_name_validate_nbdomain()
923 if (smb_getnetbiosname(netbiosname, NETBIOS_NAME_SZ) == 0) { in smb_name_validate_nbdomain()
954 char netbiosname[NETBIOS_NAME_SZ]; in smb_name_validate_workgroup()
964 if (strlen(workgroup) >= NETBIOS_NAME_SZ) in smb_name_validate_workgroup()
967 if (smb_getnetbiosname(netbiosname, NETBIOS_NAME_SZ) == 0) { in smb_name_validate_workgroup()
H A Dsmb_domain.c473 (void) strlcpy(di->di_nbname, nb_domain, NETBIOS_NAME_SZ); in smb_domain_set_basic_info()
530 char hostname[NETBIOS_NAME_SZ]; in smb_domain_add_local()
537 if (smb_getnetbiosname(hostname, NETBIOS_NAME_SZ) != 0) { in smb_domain_add_local()
559 char nb_name[NETBIOS_NAME_SZ]; in smb_domain_add_primary()
570 rc = smb_config_getstr(SMB_CI_DOMAIN_NAME, nb_name, NETBIOS_NAME_SZ); in smb_domain_add_primary()
H A Dlibsmb.h280 #define SMB_SAMACCT_MAXLEN (NETBIOS_NAME_SZ + 1)
625 char di_nbname[NETBIOS_NAME_SZ];
781 char nic_nbname[NETBIOS_NAME_SZ];
H A Dsmb_cfg.c884 NETBIOS_NAME_SZ); in smb_config_getdomaininfo()
H A Dsmb_nic.c188 nb_hostname, NETBIOS_NAME_SZ - 1) == 0) in smb_nic_getnum()
/titanic_41/usr/src/common/smbsrv/
H A Dsmb_netbios_util.c171 for (len = 0; len < NETBIOS_NAME_SZ; len++) { in netbios_first_level_name_encode()
311 char name[NETBIOS_NAME_SZ]; in netbios_name_isvalid()
318 (void) strlcpy(out, name, NETBIOS_NAME_SZ); in netbios_name_isvalid()
/titanic_41/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c37 #define NETBIOS_HKEY_SZ (NETBIOS_NAME_SZ + NETBIOS_DOMAIN_NAME_MAX)
343 (void) memcpy(entry.name, name->name, NETBIOS_NAME_SZ); in smb_netbios_cache_insert_list()
412 if ((scan + NETBIOS_NAME_SZ + 2) >= scan_end) in smb_netbios_cache_status()
421 bcopy(name->name, scan, NETBIOS_NAME_SZ); in smb_netbios_cache_status()
422 scan += NETBIOS_NAME_SZ; in smb_netbios_cache_status()
745 (void) memcpy(dup->name, entry->name, NETBIOS_NAME_SZ); in smb_netbios_name_dup()
806 res = bcmp(key1, key2, NETBIOS_NAME_SZ); in smb_netbios_match()
809 res = strcmp(key1 + NETBIOS_NAME_SZ, key2 + NETBIOS_NAME_SZ); in smb_netbios_match()
819 (void) memcpy(key, name, NETBIOS_NAME_SZ); in smb_netbios_cache_key()
820 (void) memcpy(key + NETBIOS_NAME_SZ, scope, in smb_netbios_cache_key()
H A Dsmbns_netbios.h175 unsigned char name[NETBIOS_NAME_SZ];
629 (bcmp(name, "*\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", NETBIOS_NAME_SZ) == 0)
H A Dsmbns_netlogon.c277 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_query()
360 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_samlogon()
H A Dsmbns_ksetpwd.c510 char nbname[NETBIOS_NAME_SZ]; in smb_krb5_get_pn_by_id()
516 (void) smb_getnetbiosname(nbname, NETBIOS_NAME_SZ); in smb_krb5_get_pn_by_id()
H A Dsmbns_browser.c59 char hi_nbname[NETBIOS_NAME_SZ];
1162 NETBIOS_NAME_SZ); in smb_browser_init()
H A Dsmbns_ads.c1669 char nbname[NETBIOS_NAME_SZ]; in smb_ads_get_default_comp_dn()
/titanic_41/usr/src/uts/common/smbsrv/
H A Dnetrauth.h95 char server[NETBIOS_NAME_SZ * 2];
96 char hostname[NETBIOS_NAME_SZ * 2];
H A Dnetbios.h65 #define NETBIOS_NAME_SZ 16 macro
H A Dsmbinfo.h134 char skc_nbdomain[NETBIOS_NAME_SZ];
H A Dsmb_ioctl.h170 char nbdomain[NETBIOS_NAME_SZ];
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Dnetr_auth.c93 rc = smb_getnetbiosname(netr_info->hostname, NETBIOS_NAME_SZ); in netlogon_auth()
200 char account_name[NETBIOS_NAME_SZ * 2]; in netr_server_authenticate2()
490 char account_name[NETBIOS_NAME_SZ * 2]; in netr_server_password_set()
H A Dnetr_logon.c151 char server[NETBIOS_NAME_SZ * 2]; in netlogon_logon()
212 char nbdomain[NETBIOS_NAME_SZ]; in netr_setup_token()
317 arg.hostname = ndr_rpc_malloc(netr_handle, NETBIOS_NAME_SZ); in netr_server_samlogon()
324 if (smb_getnetbiosname((char *)arg.hostname, NETBIOS_NAME_SZ) != 0) { in netr_server_samlogon()
H A Dsamr_svc.c352 hostname = NDR_MALLOC(mxa, NETBIOS_NAME_SZ); in samr_s_enum_local_domains()
356 if (smb_getnetbiosname(hostname, NETBIOS_NAME_SZ) != 0) in samr_s_enum_local_domains()
441 char hostname[NETBIOS_NAME_SZ]; in samr_s_QueryDomainInfo()
H A Ddfs.c75 static char dfs_nbname[NETBIOS_NAME_SZ];
162 (void) strlcpy(dfs_nbname, di.di_nbname, NETBIOS_NAME_SZ); in dfs_init()
H A Dsmb_logon.c614 char nbname[NETBIOS_NAME_SZ]; in smb_token_setup_local()
H A Dsmb_share.c2257 NETBIOS_NAME_SZ) != 0) in smb_shr_expand_subs()
H A Dsrvsvc_svc.c1680 char hostname[NETBIOS_NAME_SZ]; in srvsvc_s_NetServerGetInfo()
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_session.c185 char client_name[NETBIOS_NAME_SZ]; in smb_session_request()