Lines Matching defs:node

3  * Network node table
61 * sel_netnode_hashfn_ipv4 - IPv4 hashing function for the node table
65 * This is the IPv4 hashing function for the node interface table, it returns
77 * sel_netnode_hashfn_ipv6 - IPv6 hashing function for the node table
81 * This is the IPv6 hashing function for the node interface table, it returns
94 * sel_netnode_find - Search for a node record
99 * Search the network node table and return the record matching @addr. If an
106 struct sel_netnode *node;
120 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list)
121 if (node->nsec.family == family)
124 if (node->nsec.addr.ipv4 == *(const __be32 *)addr)
125 return node;
128 if (ipv6_addr_equal(&node->nsec.addr.ipv6,
130 return node;
138 * sel_netnode_insert - Insert a new node into the table
139 * @node: the new node record
142 * Add a new node record to the network address hash table.
145 static void sel_netnode_insert(struct sel_netnode *node)
149 switch (node->nsec.family) {
151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4);
154 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6);
163 list_add_rcu(&node->list, &sel_netnode_hash[idx].list);
181 * @sid: node SID
193 struct sel_netnode *node;
197 node = sel_netnode_find(addr, family);
198 if (node != NULL) {
199 *sid = node->nsec.sid;
231 pr_warn("SELinux: failure in %s(), unable to determine network node label\n",
240 * @sid: node SID
252 struct sel_netnode *node;
255 node = sel_netnode_find(addr, family);
256 if (node != NULL) {
257 *sid = node->nsec.sid;
276 struct sel_netnode *node, *node_tmp;
280 list_for_each_entry_safe(node, node_tmp,
282 list_del_rcu(&node->list);
283 kfree_rcu(node, rcu);