View previous topic :: View next topic |
Author |
Message |
gentoorock n00b
Joined: 12 Mar 2017 Posts: 2
|
Posted: Sun Mar 12, 2017 5:33 pm Post subject: What's the rtnetlink behavior if adding or removing ethernet |
|
|
Hello All,
While I am studying on RTNETLINK, I understand that the kernel will send RTM_ADDLINK or RTM_DELLINK if interface is added/removed at kernel space. However, I have a question regarding to the RTNETLINK message if adding or removing ethernet to/from bridge? Since adding or removing ethernet to / from bridge is not actually adding or removing interface, is there any RTNETLINK message actually transferring in between? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Mar 12, 2017 9:33 pm Post subject: |
|
|
The presence and contents of /usr/src/linux/net/bridge/br_netlink.c suggests that it does. |
|
Back to top |
|
|
gentoorock n00b
Joined: 12 Mar 2017 Posts: 2
|
Posted: Mon Mar 13, 2017 8:33 am Post subject: |
|
|
Ant P. wrote: | The presence and contents of /usr/src/linux/net/bridge/br_netlink.c suggests that it does. |
Thanks for the help! However, is this the right behavior? Bridge is layer 2 concept but I suppose RTNETLINK is only handling above layer 3 event, or I might be wrong. Removing interface from bridge actually triggers the RTM_DELLINK so my routing daemon thought an interface is removed while it's actually not. |
|
Back to top |
|
|
|