Allow user to create, destroy, get and dump chain objects. Do that by extending rtnl commands by the chain-specific ones. User will now be able to explicitly create or destroy chains (so far this was done only automatically according the filter/act needs and refcounting). Also, the user will receive notification about any chain creation or destuction.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -150,6 +150,13 @@ enum { · 149 unmodified lines | ||
| 150 | 150 | RTM_NEWCACHEREPORT = 96, |
| 151 | 151 | #define RTM_NEWCACHEREPORT RTM_NEWCACHEREPORT |
| 152 | 152 | |
| 153 | + RTM_NEWCHAIN = 100, | |
| 154 | +#define RTM_NEWCHAIN RTM_NEWCHAIN | |
| 155 | + RTM_DELCHAIN, | |
| 156 | +#define RTM_DELCHAIN RTM_DELCHAIN | |
| 157 | + RTM_GETCHAIN, | |
| 158 | +#define RTM_GETCHAIN RTM_GETCHAIN | |
| 159 | + | |
| 153 | 160 | __RTM_MAX, |
| 154 | 161 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
| 155 | 162 | }; |