Lines Matching refs:snp

1143 	struct smk_net4addr *snp;  in smk_write_net4addr()  local
1235 list_for_each_entry_rcu(snp, &smk_net4addr_list, list) { in smk_write_net4addr()
1236 if (snp->smk_host.s_addr == nsa && snp->smk_masks == masks) { in smk_write_net4addr()
1244 snp = kzalloc(sizeof(*snp), GFP_KERNEL); in smk_write_net4addr()
1245 if (snp == NULL) in smk_write_net4addr()
1249 snp->smk_host.s_addr = newname.sin_addr.s_addr; in smk_write_net4addr()
1250 snp->smk_mask.s_addr = mask.s_addr; in smk_write_net4addr()
1251 snp->smk_label = skp; in smk_write_net4addr()
1252 snp->smk_masks = masks; in smk_write_net4addr()
1253 smk_net4addr_insert(snp); in smk_write_net4addr()
1260 if (snp->smk_label != NULL) in smk_write_net4addr()
1262 &snp->smk_host, &snp->smk_mask, in smk_write_net4addr()
1266 snp->smk_label = skp; in smk_write_net4addr()
1276 &snp->smk_host, &snp->smk_mask, PF_INET, in smk_write_net4addr()
1277 snp->smk_label->smk_secid, &audit_info); in smk_write_net4addr()
1406 struct smk_net6addr *snp; in smk_write_net6addr() local
1508 list_for_each_entry_rcu(snp, &smk_net6addr_list, list) { in smk_write_net6addr()
1509 if (mask != snp->smk_masks) in smk_write_net6addr()
1513 snp->smk_host.s6_addr16[i]) { in smk_write_net6addr()
1522 snp = kzalloc(sizeof(*snp), GFP_KERNEL); in smk_write_net6addr()
1523 if (snp == NULL) in smk_write_net6addr()
1526 snp->smk_host = newname; in smk_write_net6addr()
1527 snp->smk_mask = fullmask; in smk_write_net6addr()
1528 snp->smk_masks = mask; in smk_write_net6addr()
1529 snp->smk_label = skp; in smk_write_net6addr()
1530 smk_net6addr_insert(snp); in smk_write_net6addr()
1533 snp->smk_label = skp; in smk_write_net6addr()