Searched refs:ipatoe (Results 1 – 2 of 2) sorted by relevance
/drivers/s390/net/ |
D | qeth_l3_sys.c | 369 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_show() local 373 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_dev_ipato_add_show() 377 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show() 380 entry_len = qeth_l3_ipaddr_to_string(proto, ipatoe->addr, in qeth_l3_dev_ipato_add_show() 392 "%s/%i\n", addr_str, ipatoe->mask_bits); in qeth_l3_dev_ipato_add_show() 439 struct qeth_ipato_entry *ipatoe; in qeth_l3_dev_ipato_add_store() local 448 ipatoe = kzalloc(sizeof(struct qeth_ipato_entry), GFP_KERNEL); in qeth_l3_dev_ipato_add_store() 449 if (!ipatoe) in qeth_l3_dev_ipato_add_store() 452 ipatoe->proto = proto; in qeth_l3_dev_ipato_add_store() 453 memcpy(ipatoe->addr, addr, (proto == QETH_PROT_IPV4) ? 4 : 16); in qeth_l3_dev_ipato_add_store() [all …]
|
D | qeth_l3_main.c | 89 struct qeth_ipato_entry *ipatoe; in qeth_l3_is_addr_covered_by_ipato() local 101 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() 102 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato() 104 qeth_l3_convert_addr_to_bits(ipatoe->addr, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato() 105 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato() 107 rc = !memcmp(addr_bits, ipatoe_bits, ipatoe->mask_bits); in qeth_l3_is_addr_covered_by_ipato() 517 struct qeth_ipato_entry *ipatoe, *tmp; in qeth_l3_clear_ipato_list() local 521 list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { in qeth_l3_clear_ipato_list() 522 list_del(&ipatoe->entry); in qeth_l3_clear_ipato_list() 523 kfree(ipatoe); in qeth_l3_clear_ipato_list() [all …]
|