| #ifndef FP_NETLINK_H |
| #define FP_NETLINK_H |
| |
| enum { |
| FASTPATH_NL_A_UNSPEC, |
| FASTPATH_NL_A_MSG, |
| __FASTPATH_NL_A_MAX, |
| }; |
| #define FASTPATH_NL_A_MAX (__FASTPATH_NL_A_MAX - 1) |
| |
| extern struct nla_policy fp_netlink_policy[]; |
| |
| /* commands */ |
| enum { |
| FASTPATH_NL_C_UNSPEC, |
| FASTPATH_NL_C_IPT_NOTIFY, |
| __FASTPATH_NL_C_MAX, |
| }; |
| #define FASTPATH_NL_C_MAX (__FASTPATH_NL_C_MAX - 1) |
| |
| #define FASTPATH_NL_OP(_cmd, _func) \ |
| { \ |
| .cmd = _cmd, \ |
| .doit = _func, \ |
| .dumpit = NULL, \ |
| .flags = GENL_ADMIN_PERM, \ |
| } |
| |
| #define FASTPATH_NL_DUMP(_cmd, _func, _dump) \ |
| { \ |
| .cmd = _cmd, \ |
| .doit = _func, \ |
| .dumpit = _dump, \ |
| } |
| |
| #endif /* FP_NETLINK_H */ |