/net/netlabel/ |
D | netlabel_domainhash.c | 89 kfree(ptr->domain); in netlbl_domhsh_free_entry() 136 static struct netlbl_dom_map *netlbl_domhsh_search(const char *domain, in netlbl_domhsh_search() argument 143 if (domain != NULL) { in netlbl_domhsh_search() 144 bkt = netlbl_domhsh_hash(domain); in netlbl_domhsh_search() 149 strcmp(iter->domain, domain) == 0) in netlbl_domhsh_search() 170 static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain, in netlbl_domhsh_search_def() argument 175 entry = netlbl_domhsh_search(domain, family); in netlbl_domhsh_search_def() 220 entry->domain ? entry->domain : "(default)"); in netlbl_domhsh_audit_add() 425 if (entry->domain != NULL) in netlbl_domhsh_add() 426 entry_old = netlbl_domhsh_search(entry->domain, entry->family); in netlbl_domhsh_add() [all …]
|
D | netlabel_domainhash.h | 59 char *domain; member 78 int netlbl_domhsh_remove_af4(const char *domain, 82 int netlbl_domhsh_remove_af6(const char *domain, 86 int netlbl_domhsh_remove(const char *domain, u16 family, 89 struct netlbl_dom_map *netlbl_domhsh_getentry(const char *domain, u16 family); 90 struct netlbl_dommap_def *netlbl_domhsh_getentry_af4(const char *domain, 93 struct netlbl_dommap_def *netlbl_domhsh_getentry_af6(const char *domain, 95 int netlbl_domhsh_remove_af6(const char *domain,
|
D | netlabel_kapi.c | 56 int netlbl_cfg_map_del(const char *domain, in netlbl_cfg_map_del() argument 63 return netlbl_domhsh_remove(domain, family, audit_info); in netlbl_cfg_map_del() 67 return netlbl_domhsh_remove_af4(domain, addr, mask, in netlbl_cfg_map_del() 71 return netlbl_domhsh_remove_af6(domain, addr, mask, in netlbl_cfg_map_del() 95 int netlbl_cfg_unlbl_map_add(const char *domain, in netlbl_cfg_unlbl_map_add() argument 110 if (domain != NULL) { in netlbl_cfg_unlbl_map_add() 111 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_unlbl_map_add() 112 if (entry->domain == NULL) in netlbl_cfg_unlbl_map_add() 183 kfree(entry->domain); in netlbl_cfg_unlbl_map_add() 324 const char *domain, in netlbl_cfg_cipsov4_map_add() argument [all …]
|
D | netlabel_mgmt.c | 93 entry->domain = kmalloc(tmp_size, GFP_KERNEL); in netlbl_mgmt_add_common() 94 if (entry->domain == NULL) { in netlbl_mgmt_add_common() 98 nla_strlcpy(entry->domain, in netlbl_mgmt_add_common() 263 kfree(entry->domain); in netlbl_mgmt_add_common() 291 if (entry->domain != NULL) { in netlbl_mgmt_listentry() 293 NLBL_MGMT_A_DOMAIN, entry->domain); in netlbl_mgmt_listentry() 454 char *domain; in netlbl_mgmt_remove() local 462 domain = nla_data(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_remove() 463 return netlbl_domhsh_remove(domain, AF_UNSPEC, &audit_info); in netlbl_mgmt_remove()
|
/net/tipc/ |
D | addr.c | 40 bool tipc_in_scope(bool legacy_format, u32 domain, u32 addr) in tipc_in_scope() argument 42 if (!domain || (domain == addr)) in tipc_in_scope() 46 if (domain == tipc_cluster_mask(addr)) /* domain <Z.C.0> */ in tipc_in_scope() 48 if (domain == (addr & TIPC_ZONE_CLUSTER_MASK)) /* domain <Z.C.0> */ in tipc_in_scope() 50 if (domain == (addr & TIPC_ZONE_MASK)) /* domain <Z.0.0> */ in tipc_in_scope()
|
D | monitor.c | 77 struct tipc_mon_domain *domain; member 186 struct tipc_mon_domain *dom_aft = peer->domain; in mon_identify_lost_members() 218 struct tipc_mon_domain *dom = peer->domain; in mon_apply_domain() 244 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain() 335 kfree(peer->domain); in tipc_mon_remove_peer() 346 kfree(peer->domain); in tipc_mon_remove_peer() 347 peer->domain = NULL; in tipc_mon_remove_peer() 423 dom = peer->domain; in tipc_mon_peer_down() 424 peer->domain = NULL; in tipc_mon_peer_down() 497 dom = peer->domain; in tipc_mon_rcv() [all …]
|
D | discover.c | 66 u32 domain; member 84 u32 dest_domain = b->domain; in tipc_disc_init_msg() 242 if (!tipc_in_scope(legacy, b->domain, src)) in tipc_disc_rcv() 299 if (tipc_node(d->domain) && d->num_nodes) { in tipc_disc_timeout() 368 d->domain = b->domain; in tipc_disc_create() 406 d->domain = b->domain; in tipc_disc_reset()
|
D | name_table.h | 113 u32 type, u32 domain); 116 bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 domain,
|
D | addr.h | 85 bool tipc_in_scope(bool legacy_format, u32 domain, u32 addr);
|
D | bearer.c | 314 b->domain = disc_domain; in tipc_enable_bearer() 929 u32 domain = 0; in __tipc_nl_bearer_enable() local 949 domain = nla_get_u32(attrs[TIPC_NLA_BEARER_DOMAIN]); in __tipc_nl_bearer_enable() 963 return tipc_enable_bearer(net, bearer, domain, prio, attrs); in __tipc_nl_bearer_enable()
|
D | bearer.h | 163 u32 domain; member
|
D | socket.c | 698 addr->addr.name.domain = 0; in tipc_getname() 1362 dnode = dest->addr.name.domain; in __tipc_sendmsg() 1566 srcaddr->sock.addr.name.domain = 0; in tipc_sk_set_orig_addr() 1578 srcaddr->member.addr.name.domain = 0; in tipc_sk_set_orig_addr()
|
/net/unix/ |
D | Kconfig | 7 tristate "Unix domain sockets" 9 If you say Y here, you will include support for Unix domain sockets;
|