• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/netlabel/

Lines Matching defs:domain

4  * This file manages the domain hash table that NetLabel uses to determine
5 * which network labeling protocol to use for a given domain. The NetLabel
68 * netlbl_domhsh_free_entry - Frees a domain hash table entry
102 kfree(ptr->domain);
107 * netlbl_domhsh_hash - Hashing function for the domain hash table
108 * @domain: the domain name to hash
111 * This is the hashing function for the domain hash table, it returns the
112 * correct bucket number for the domain. The caller is responsibile for
132 * netlbl_domhsh_search - Search for a domain entry
133 * @domain: the domain
136 * Searches the domain hash table and returns a pointer to the hash table
142 static struct netlbl_dom_map *netlbl_domhsh_search(const char *domain)
148 if (domain != NULL) {
149 bkt = netlbl_domhsh_hash(domain);
152 if (iter->valid && strcmp(iter->domain, domain) == 0)
160 * netlbl_domhsh_search_def - Search for a domain entry
161 * @domain: the domain
165 * Searches the domain hash table and returns a pointer to the hash table
172 static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain)
176 entry = netlbl_domhsh_search(domain);
213 entry->domain ? entry->domain : "(default)");
254 * netlbl_domhsh_init - Init for the domain hash
258 * Initializes the domain hash table, should be called only by
293 * netlbl_domhsh_add - Adds a entry to the domain hash table
298 * Adds a new entry to the domain hash table and handles any updates to the
317 if (entry->domain != NULL)
318 entry_old = netlbl_domhsh_search(entry->domain);
320 entry_old = netlbl_domhsh_search_def(entry->domain);
324 if (entry->domain != NULL) {
325 u32 bkt = netlbl_domhsh_hash(entry->domain);
356 * the selectors do not exist in the existing domain map */
408 * netlbl_domhsh_add_default - Adds the default entry to the domain hash table
413 * Adds a new default entry to the domain hash table and handles any updates
425 * netlbl_domhsh_remove_entry - Removes a given entry from the domain table
430 * Removes an entry from the domain hash table and handles any updates to the
460 entry->domain ? entry->domain : "(default)",
491 * @domain: the domain
497 * Removes an individual address selector from a domain mapping and potentially
502 int netlbl_domhsh_remove_af4(const char *domain,
517 if (domain)
518 entry_map = netlbl_domhsh_search(domain);
520 entry_map = netlbl_domhsh_search_def(domain);
537 /* the domain mapping is empty so remove it from the mapping table */
557 * netlbl_domhsh_remove - Removes an entry from the domain hash table
558 * @domain: the domain to remove
562 * Removes an entry from the domain hash table and handles any updates to the
567 int netlbl_domhsh_remove(const char *domain, struct netlbl_audit *audit_info)
573 if (domain)
574 entry = netlbl_domhsh_search(domain);
576 entry = netlbl_domhsh_search_def(domain);
588 * Removes/resets the default entry for the domain hash table and handles any
599 * netlbl_domhsh_getentry - Get an entry from the domain hash table
600 * @domain: the domain name to search for
603 * Look through the domain hash table searching for an entry to match @domain,
608 struct netlbl_dom_map *netlbl_domhsh_getentry(const char *domain)
610 return netlbl_domhsh_search_def(domain);
614 * netlbl_domhsh_getentry_af4 - Get an entry from the domain hash table
615 * @domain: the domain name to search for
619 * Look through the domain hash table searching for an entry to match @domain
624 struct netlbl_domaddr4_map *netlbl_domhsh_getentry_af4(const char *domain,
630 dom_iter = netlbl_domhsh_search_def(domain);
646 * netlbl_domhsh_getentry_af6 - Get an entry from the domain hash table
647 * @domain: the domain name to search for
651 * Look through the domain hash table searching for an entry to match @domain
656 struct netlbl_domaddr6_map *netlbl_domhsh_getentry_af6(const char *domain,
662 dom_iter = netlbl_domhsh_search_def(domain);
678 * netlbl_domhsh_walk - Iterate through the domain mapping hash table
685 * Interate over the domain mapping hash table, skipping the first @skip_bkt