Lines Matching refs:ml
3615 struct packet_mclist *ml; in packet_dev_mclist_delete() local
3617 while ((ml = *mlp) != NULL) { in packet_dev_mclist_delete()
3618 if (ml->ifindex == dev->ifindex) { in packet_dev_mclist_delete()
3619 packet_dev_mc(dev, ml, -1); in packet_dev_mclist_delete()
3620 *mlp = ml->next; in packet_dev_mclist_delete()
3621 kfree(ml); in packet_dev_mclist_delete()
3623 mlp = &ml->next; in packet_dev_mclist_delete()
3630 struct packet_mclist *ml, *i; in packet_mc_add() local
3651 for (ml = po->mclist; ml; ml = ml->next) { in packet_mc_add()
3652 if (ml->ifindex == mreq->mr_ifindex && in packet_mc_add()
3653 ml->type == mreq->mr_type && in packet_mc_add()
3654 ml->alen == mreq->mr_alen && in packet_mc_add()
3655 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_add()
3656 ml->count++; in packet_mc_add()
3684 struct packet_mclist *ml, **mlp; in packet_mc_drop() local
3688 for (mlp = &pkt_sk(sk)->mclist; (ml = *mlp) != NULL; mlp = &ml->next) { in packet_mc_drop()
3689 if (ml->ifindex == mreq->mr_ifindex && in packet_mc_drop()
3690 ml->type == mreq->mr_type && in packet_mc_drop()
3691 ml->alen == mreq->mr_alen && in packet_mc_drop()
3692 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_drop()
3693 if (--ml->count == 0) { in packet_mc_drop()
3695 *mlp = ml->next; in packet_mc_drop()
3696 dev = __dev_get_by_index(sock_net(sk), ml->ifindex); in packet_mc_drop()
3698 packet_dev_mc(dev, ml, -1); in packet_mc_drop()
3699 kfree(ml); in packet_mc_drop()
3711 struct packet_mclist *ml; in packet_flush_mclist() local
3717 while ((ml = po->mclist) != NULL) { in packet_flush_mclist()
3720 po->mclist = ml->next; in packet_flush_mclist()
3721 dev = __dev_get_by_index(sock_net(sk), ml->ifindex); in packet_flush_mclist()
3723 packet_dev_mc(dev, ml, -1); in packet_flush_mclist()
3724 kfree(ml); in packet_flush_mclist()