2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * smb_netbios_cache_lookup 2N/A * Searches the name cache for the given entry, if found 2N/A * the entry will be locked before returning to caller 2N/A * so caller MUST unlock the entry after it's done with it. 2N/A /* Return our address */ 2N/A * smb_netbios_cache_lookup_addr 2N/A * lookup the given 'name' in the cache and then checks 2N/A * if the address also matches with the found entry. 2N/A * 'name' is supposed to contain only one address. 2N/A * The found entry will be locked before returning to caller 2N/A * so caller MUST unlock the entry after it's done with it. 2N/A /* note that entry lock isn't released here */ 2N/A /* No point in adding a name with IP address 255.255.255.255 */ 2N/A /* Name already exists */ 2N/A /* Was not primary: looks for others */ 2N/A * smb_netbios_cache_insert_list 2N/A * Insert a name with multiple addresses 2N/A * smb_netbios_cache_status 2N/A * Scan the name cache and gather status for 2N/A * Node Status response for names in the given scope 2N/A /* no room for adding next entry */ 2N/A * Returns TRUE when given name is added to the refresh queue 2N/A * smb_netbios_cache_refresh 2N/A * Scans the name cache and add all local unique names 2N/A * and non-local names the passed refresh queue. Non- 2N/A * local names will also be marked as deleted. 2N/A * NOTE that the caller MUST protect the queue using 2N/A do {
/* name loop */ 2N/A do {
/* address loop */ 2N/A * smb_netbios_cache_delete_locals 2N/A * Scans the name cache and add all local names to 2N/A * the passed delete queue. 2N/A * NOTE that the caller MUST protect the queue using 2N/A * smb_netbios_cache_count 2N/A * Returns the number of names in the cache 2N/A "Name",
"Type",
"Address",
"TTL");
2N/A "-------------------------------",
2N/A "------------------------------");
2N/A * smb_netbios_name_dup 2N/A * Duplicate the given name entry. If 'alladdr' is 0 only 2N/A * copy the primary address otherwise duplicate all the 2N/A * addresses. NOTE that the duplicate structure is not 2N/A * like a regular cache entry i.e. it's a contiguous block 2N/A * of memory and each addr structure doesn't have it's own 2N/A * allocated memory. So, the returned structure can be freed 2N/A /* LINTED - E_BAD_PTR_CAST_ALIGN */ 2N/A /* Names are the same, compare scopes */