/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_info.c | 125 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 D | smb_util.c | 909 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 D | smb_domain.c | 473 (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 D | libsmb.h | 280 #define SMB_SAMACCT_MAXLEN (NETBIOS_NAME_SZ + 1) 625 char di_nbname[NETBIOS_NAME_SZ]; 781 char nic_nbname[NETBIOS_NAME_SZ];
|
H A D | smb_cfg.c | 884 NETBIOS_NAME_SZ); in smb_config_getdomaininfo()
|
H A D | smb_nic.c | 188 nb_hostname, NETBIOS_NAME_SZ - 1) == 0) in smb_nic_getnum()
|
/titanic_41/usr/src/common/smbsrv/ |
H A D | smb_netbios_util.c | 171 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 D | smbns_netbios_cache.c | 37 #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 D | smbns_netbios.h | 175 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 D | smbns_netlogon.c | 277 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_query() 360 char hostname[NETBIOS_NAME_SZ]; in smb_netlogon_samlogon()
|
H A D | smbns_ksetpwd.c | 510 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 D | smbns_browser.c | 59 char hi_nbname[NETBIOS_NAME_SZ]; 1162 NETBIOS_NAME_SZ); in smb_browser_init()
|
H A D | smbns_ads.c | 1669 char nbname[NETBIOS_NAME_SZ]; in smb_ads_get_default_comp_dn()
|
/titanic_41/usr/src/uts/common/smbsrv/ |
H A D | netrauth.h | 95 char server[NETBIOS_NAME_SZ * 2]; 96 char hostname[NETBIOS_NAME_SZ * 2];
|
H A D | netbios.h | 65 #define NETBIOS_NAME_SZ 16 macro
|
H A D | smbinfo.h | 134 char skc_nbdomain[NETBIOS_NAME_SZ];
|
H A D | smb_ioctl.h | 170 char nbdomain[NETBIOS_NAME_SZ];
|
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netr_auth.c | 93 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 D | netr_logon.c | 151 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 D | samr_svc.c | 352 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 D | dfs.c | 75 static char dfs_nbname[NETBIOS_NAME_SZ]; 162 (void) strlcpy(dfs_nbname, di.di_nbname, NETBIOS_NAME_SZ); in dfs_init()
|
H A D | smb_logon.c | 614 char nbname[NETBIOS_NAME_SZ]; in smb_token_setup_local()
|
H A D | smb_share.c | 2257 NETBIOS_NAME_SZ) != 0) in smb_shr_expand_subs()
|
H A D | srvsvc_svc.c | 1680 char hostname[NETBIOS_NAME_SZ]; in srvsvc_s_NetServerGetInfo()
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_session.c | 185 char client_name[NETBIOS_NAME_SZ]; in smb_session_request()
|