br_fdb.c (5d5eacb34c9e1fdc0a47b885d832eaa4de860dc7) | br_fdb.c (5e6d243587990a588143b9da3974833649595587) |
---|---|
1/* 2 * Forwarding database 3 * Linux ethernet bridge 4 * 5 * Authors: 6 * Lennert Buytenhek <buytenh@gnu.org> 7 * 8 * This program is free software; you can redistribute it and/or --- 678 unchanged lines hidden (view full) --- 687 688 for (i = 0; i < BR_HASH_SIZE; i++) { 689 struct net_bridge_fdb_entry *f; 690 691 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { 692 if (idx < cb->args[0]) 693 goto skip; 694 | 1/* 2 * Forwarding database 3 * Linux ethernet bridge 4 * 5 * Authors: 6 * Lennert Buytenhek <buytenh@gnu.org> 7 * 8 * This program is free software; you can redistribute it and/or --- 678 unchanged lines hidden (view full) --- 687 688 for (i = 0; i < BR_HASH_SIZE; i++) { 689 struct net_bridge_fdb_entry *f; 690 691 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { 692 if (idx < cb->args[0]) 693 goto skip; 694 |
695 if (filter_dev && (!f->dst || !f->dst->dev || 696 f->dst->dev != filter_dev)) 697 goto skip; | 695 if (filter_dev && 696 (!f->dst || f->dst->dev != filter_dev)) { 697 if (filter_dev != dev) 698 goto skip; 699 /* !f->dst is a speacial case for bridge 700 * It means the MAC belongs to the bridge 701 * Therefore need a little more filtering 702 * we only want to dump the !f->dst case 703 */ 704 if (f->dst) 705 goto skip; 706 } |
698 699 if (fdb_fill_info(skb, br, f, 700 NETLINK_CB(cb->skb).portid, 701 cb->nlh->nlmsg_seq, 702 RTM_NEWNEIGH, 703 NLM_F_MULTI) < 0) 704 break; 705skip: --- 302 unchanged lines hidden --- | 707 708 if (fdb_fill_info(skb, br, f, 709 NETLINK_CB(cb->skb).portid, 710 cb->nlh->nlmsg_seq, 711 RTM_NEWNEIGH, 712 NLM_F_MULTI) < 0) 713 break; 714skip: --- 302 unchanged lines hidden --- |