• Nikolay Aleksandrov's avatar
    bridge: mdb: add deleted when monitoring delmdb event · 90d73159
    Nikolay Aleksandrov authored
    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: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
    90d73159
mdb.c 6.41 KB