Lines Matching refs:nodecon
173 struct cil_nodecon *nodecon = (struct cil_nodecon*)sort->array[i];
176 if (nodecon->addr->family == AF_INET) {
178 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v4, buf, INET_ADDRSTRLEN);
179 } else if (nodecon->addr->family == AF_INET6) {
181 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v6, buf, INET6_ADDRSTRLEN);
190 fprintf(file_arr[NETIFCONS], "nodecon %s ", buf);
193 if (nodecon->mask->family == AF_INET) {
195 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v4, buf, INET_ADDRSTRLEN);
196 } else if (nodecon->mask->family == AF_INET6) {
198 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v6, buf, INET6_ADDRSTRLEN);
210 cil_context_to_policy(file_arr, NETIFCONS, nodecon->context);
1342 rc = cil_nodecon_to_policy(file_arr, db->nodecon);