History log of /external/iproute2/bridge/mdb.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d45bf3bafa6960720193dbf57042a3b43b73868 15-Oct-2015 Wilson Kok <wkok@cumulusnetworks.com> bridge: add calls to fflush in fdb and mdb print functions

This patch adds fflush in fdb and mdb print functions

Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
/external/iproute2/bridge/mdb.c
90d73159d9a326fa59c5e340ae3489f63ec49b3e 30-Jul-2015 Nikolay Aleksandrov <nikolay@cumulusnetworks.com> bridge: mdb: add deleted when monitoring delmdb event

Before this patch both addmdb and delmdb events were printed the same,
now we'll get a "Deleted" string in front when delmdb is received.
Before:
$ bridge mdb add dev br0 port eth3 grp 239.0.0.1
(monitor) dev br0 port eth3 grp 239.0.0.1 temp
$ bridge mdb del dev br0 port eth3 grp 239.0.0.1
(monitor) dev br0 port eth3 grp 239.0.0.1 temp
^^ No way to differentiate between both events.

After:
$ bridge mdb add dev br0 port eth3 grp 239.0.0.1
(monitor) dev br0 port eth3 grp 239.0.0.1 temp
$ bridge mdb del dev br0 port eth3 grp 239.0.0.1
(monitor) Deleted dev br0 port eth3 grp 239.0.0.1 temp

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
/external/iproute2/bridge/mdb.c
6aac8617139a96a124d63aeae843b73c38f88fc5 15-Jul-2015 Nikolay Aleksandrov <nikolay@cumulusnetworks.com> bridge: mdb: add support for vlans

This patch allows the user to specify the vlan of the mdb group being
added or deleted and adds support for displaying the vlan when
dumping mdb information or monitoring it. It also updates the man page
to reflect the new "vid" argument for mdb.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
/external/iproute2/bridge/mdb.c
6b4867e62175ca0635f8cf6b22f882272d5a2219 27-Jul-2015 Nikolay Aleksandrov <nikolay@cumulusnetworks.com> bridge: mdb: add support for router add/del notifications monitoring

This patch adds support for ADDMDB/DELMDB notifications about router ports
which have been added or deleted/expired respectively.

Example output:
$ bridge -s monitor mdb
Deleted router port dev eth3 master br0
router port dev eth3 master br0

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
/external/iproute2/bridge/mdb.c
c079e121a73af5eb49e003b13607e8a690331df6 27-May-2015 Stephen Hemminger <shemming@brocade.com> libnetlink: add size argument to rtnl_talk

There have been several instances where response from kernel
has overrun the stack buffer from the caller. Avoid future problems
by passing a size argument.

Also drop the unused peer and group arguments to rtnl_talk.
/external/iproute2/bridge/mdb.c
42ecedd4bae534fc688194a795eb4548c6530cda 18-Mar-2015 Roopa Prabhu <roopa@cumulusnetworks.com> fix ip -force -batch to continue on errors

This patch replaces exits with returns in several
iproute2 commands. This fixes `ip -batch -force`
to not exit but continue on errors.

$cat c.txt
route del 1.2.3.0/24 dev eth0
route del 1.2.4.0/24 dev eth0
route del 1.2.5.0/24 dev eth0
route add 1.2.3.0/24 dev eth0

$ip -force -batch c.txt
RTNETLINK answers: No such process
Command failed c.txt:2
RTNETLINK answers: No such process
Command failed c.txt:3

Reported-by: Sven-Haegar Koch <haegar@sdinet.de>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
/external/iproute2/bridge/mdb.c
9dca899b2d97163f18b66c21b5e7acec893b0fa4 04-Jun-2014 Andreas Henriksson <andreas@fatal.se> bridge: Make filter_index match in signedness

Michael Tautschnig wrote:

During a rebuild [...]. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
gcc bridge.o fdb.o monitor.o link.o mdb.o vlan.o ../lib/libnetlink.a ../lib/libutil.a ../lib/libnetlink.a ../lib/libutil.a -o bridge
file link.c line 18: error: conflicting types for variable "filter_index"
old definition in module fdb file fdb.c line 29
signed int
new definition in module link file link.c line 18
unsigned int
<builtin>: recipe for target 'bridge' failed
make[3]: *** [bridge] Error 64
make[3]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-iproute2/iproute2-3.14.0/bridge'
Makefile:45: recipe for target 'all' failed

While practical constraints may limit the value of filter_index to remain within
the bounds of a positive signed int, there is certainly no such guarantee here.
Also, a plain majority vote suggests that this really just a wrong declaration
in link.c as several declarations of filter_index as signed int exist.

[...]

My followup on this was:

I think the majority is wrong.

filter_index is assigned exclusively from if_nametoindex or ll_name_to_index
which both return unsigned int.

Changing it to unsigned everywhere seems better.

This has been minimally tested by using the bridge tool
to add vids and showing available vids on different devices.

Reported-by: Michael Tautschnig <mt@debian.org>
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
/external/iproute2/bridge/mdb.c
0ff8f578ed58c13de33a32016a6995e4c7d941a1 20-Dec-2012 Cong Wang <amwang@redhat.com> bridge: make `bridge mdb` output consistent with input

bridge -> dev
group -> grp

Signed-off-by: Cong Wang <amwang@redhat.com>
/external/iproute2/bridge/mdb.c
d8b75d1ad22b3bc6e07b9547599baf9adc0d7cf4 20-Dec-2012 Cong Wang <amwang@redhat.com> bridge: distinguish permanent and temporary mdb entries

This patch adds a flag to mdb entries so that we can distinguish
permanent entries with temporary ones.

Signed-off-by: Cong Wang <amwang@redhat.com>
/external/iproute2/bridge/mdb.c
4a4ee61699b8b3ee05fa97f1e90305e4676cf4ec 11-Dec-2012 Cong Wang <amwang@redhat.com> iproute2: add support to monitor mdb entries too

This patch implements `bridge monitor mdb`.

Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <amwang@redhat.com>
/external/iproute2/bridge/mdb.c
9dca676721215f82327c9f4b6630a6a37bbd60a4 11-Dec-2012 Cong Wang <amwang@redhat.com> iproute2: implement add/del mdb entry

This patch implements:

bridge mdb { add | del } dev DEV port PORT grp GROUP

Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <amwang@redhat.com>
/external/iproute2/bridge/mdb.c
e06c7f7e2ec2ab17dd9a6ed92b9d1a8bc250eff9 12-Dec-2012 Cong Wang <amwang@redhat.com> iproute2: add mdb sub-command to bridge

Sample output:

# ./bridge/bridge mdb show dev br0
bridge br0 port eth1 group 224.8.8.9
bridge br0 port eth0 group 224.8.8.8

# ./bridge/bridge -d mdb show dev br0
bridge br0 port eth1 group 224.8.8.9
bridge br0 port eth0 group 224.8.8.8
router ports on br0: eth0

Signed-off-by: Cong Wang <amwang@redhat.com>
/external/iproute2/bridge/mdb.c