Unlike IPv4 this code notifies on all cases where mpls routes are added or removed and it never automatically removes routes. Avoiding both the userspace confusion that is caused by omitting route updates and the possibility of a flood of netlink traffic when an interface goes doew. For now reserved labels are handled automatically and userspace is not notified.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -631,6 +631,8 @@ enum rtnetlink_groups { · 630 unmodified lines | |||
| 631 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF | 631 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF |
| 632 | RTNLGRP_MDB, | 632 | RTNLGRP_MDB, |
| 633 | #define RTNLGRP_MDB RTNLGRP_MDB | 633 | #define RTNLGRP_MDB RTNLGRP_MDB |
| 634 | RTNLGRP_MPLS_ROUTE, | ||
| 635 | #define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE | ||
| 634 | __RTNLGRP_MAX | 636 | __RTNLGRP_MAX |
| 635 | }; | 637 | }; |
| 636 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) | 638 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) |