1*e2849863SThomas Graf #ifndef __NET_RTNETLINK_H 2*e2849863SThomas Graf #define __NET_RTNETLINK_H 3*e2849863SThomas Graf 4*e2849863SThomas Graf #include <linux/rtnetlink.h> 5*e2849863SThomas Graf #include <net/netlink.h> 6*e2849863SThomas Graf 7*e2849863SThomas Graf typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, void *); 8*e2849863SThomas Graf typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); 9*e2849863SThomas Graf 10*e2849863SThomas Graf extern int __rtnl_register(int protocol, int msgtype, 11*e2849863SThomas Graf rtnl_doit_func, rtnl_dumpit_func); 12*e2849863SThomas Graf extern void rtnl_register(int protocol, int msgtype, 13*e2849863SThomas Graf rtnl_doit_func, rtnl_dumpit_func); 14*e2849863SThomas Graf extern int rtnl_unregister(int protocol, int msgtype); 15*e2849863SThomas Graf extern void rtnl_unregister_all(int protocol); 16*e2849863SThomas Graf extern int rtnl_dump_all(struct sk_buff *skb, struct netlink_callback *cb); 17*e2849863SThomas Graf 18*e2849863SThomas Graf #endif 19