Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's the rtnetlink behavior if adding or removing ethernet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentoorock
n00b
n00b


Joined: 12 Mar 2017
Posts: 2

PostPosted: Sun Mar 12, 2017 5:33 pm    Post subject: What's the rtnetlink behavior if adding or removing ethernet Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Sun Mar 12, 2017 9:33 pm    Post subject: Reply with quote

The presence and contents of /usr/src/linux/net/bridge/br_netlink.c suggests that it does.
Back to top
View user's profile Send private message
gentoorock
n00b
n00b


Joined: 12 Mar 2017
Posts: 2

PostPosted: Mon Mar 13, 2017 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum