net: rtnetlink: add msg kind names
Add rtnl kind names instead of using raw values. We'll need to check for DEL kind later to validate bulk flag support. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ae10162c7e
commit
12dc5c2cb7
@ -13,6 +13,13 @@ enum rtnl_link_flags {
|
||||
RTNL_FLAG_DOIT_UNLOCKED = 1,
|
||||
};
|
||||
|
||||
enum rtnl_kinds {
|
||||
RTNL_KIND_NEW,
|
||||
RTNL_KIND_DEL,
|
||||
RTNL_KIND_GET,
|
||||
RTNL_KIND_SET
|
||||
};
|
||||
|
||||
void rtnl_register(int protocol, int msgtype,
|
||||
rtnl_doit_func, rtnl_dumpit_func, unsigned int flags);
|
||||
int rtnl_register_module(struct module *owner, int protocol, int msgtype,
|
||||
|
Reference in New Issue
Block a user