Add new mdb attributes (MDBE_ATTR_SOURCE for setting, MDBA_MDB_EATTR_SOURCE for dumping) to allow add/del and dump of mdb entries with a source address (S,G). New S,G entries are created with filter mode of MCAST_INCLUDE. The same attributes are used for IPv4 and IPv6, they're validated and parsed based on their protocol. S,G host joined entries which are added by user are not allowed yet.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -457,6 +457,7 @@ enum { · 456 unmodified lines | ||
| 457 | 457 | MDBA_MDB_EATTR_TIMER, |
| 458 | 458 | MDBA_MDB_EATTR_SRC_LIST, |
| 459 | 459 | MDBA_MDB_EATTR_GROUP_MODE, |
| 460 | + MDBA_MDB_EATTR_SOURCE, | |
| 460 | 461 | __MDBA_MDB_EATTR_MAX |
| 461 | 462 | }; |
| 462 | 463 | #define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) |
| @@ -542,6 +543,7 @@ enum { · 79 unmodified lines | ||
| 542 | 543 | */ |
| 543 | 544 | enum { |
| 544 | 545 | MDBE_ATTR_UNSPEC, |
| 546 | + MDBE_ATTR_SOURCE, | |
| 545 | 547 | __MDBE_ATTR_MAX, |
| 546 | 548 | }; |
| 547 | 549 | #define MDBE_ATTR_MAX (__MDBE_ATTR_MAX - 1) |