As Stephen mentioned, we need to monitor the mdb changes in user-space, so add notifications via netlink too.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -125,6 +125,10 @@ enum { · 124 unmodified lines | ||
| 125 | 125 | RTM_GETNETCONF = 82, |
| 126 | 126 | #define RTM_GETNETCONF RTM_GETNETCONF |
| 127 | 127 | |
| 128 | + RTM_NEWMDB = 84, | |
| 129 | +#define RTM_NEWMDB RTM_NEWMDB | |
| 130 | + RTM_DELMDB = 85, | |
| 131 | +#define RTM_DELMDB RTM_DELMDB | |
| 128 | 132 | RTM_GETMDB = 86, |
| 129 | 133 | #define RTM_GETMDB RTM_GETMDB |
| 130 | 134 | |
| @@ -607,6 +611,8 @@ enum rtnetlink_groups { · 476 unmodified lines | ||
| 607 | 611 | #define RTNLGRP_IPV4_NETCONF RTNLGRP_IPV4_NETCONF |
| 608 | 612 | RTNLGRP_IPV6_NETCONF, |
| 609 | 613 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF |
| 614 | + RTNLGRP_MDB, | |
| 615 | +#define RTNLGRP_MDB RTNLGRP_MDB | |
| 610 | 616 | __RTNLGRP_MAX |
| 611 | 617 | }; |
| 612 | 618 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) |