Re: [PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-10-02 Thread Roopa Prabhu
On Tue, Oct 1, 2019 at 7:59 AM Stephen Hemminger wrote: > > On Mon, 30 Sep 2019 21:52:22 -0700 > Roopa Prabhu wrote: > > > + > > + if (sscanf(addr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", > > +abuf, abuf+1, abuf+2, > > +abuf+3, abuf+4, abuf+5) != 6) { > > +

Re: [PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-10-01 Thread Stephen Hemminger
On Mon, 30 Sep 2019 21:52:22 -0700 Roopa Prabhu wrote: > + > + if (sscanf(addr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", > +abuf, abuf+1, abuf+2, > +abuf+3, abuf+4, abuf+5) != 6) { > + fprintf(stderr, "Invalid mac address %s\n", addr); > + retur

[PATCH iproute2 net-next v3 1/2] bridge: fdb get support

2019-09-30 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to lookup a bridge fdb entry using recently added support in the kernel using RTM_GETNEIGH (and AF_BRIDGE family). example: $bridge fdb get 02:02:00:00:00:03 dev test-dummy0 vlan 1002 02:02:00:00:00:03 dev test-dummy0 vlan 1002 master bridge Signed-off