rtnetlink.h (ebf8889bd1fe3615991ff4494635d237280652a2) | rtnetlink.h (669f87baab90183e13b95480aecf8d7bac92ca3c) |
---|---|
1#ifndef __NET_RTNETLINK_H 2#define __NET_RTNETLINK_H 3 4#include <linux/rtnetlink.h> 5#include <net/netlink.h> 6 7typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, void *); 8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); --- 60 unchanged lines hidden (view full) --- 69 70 size_t (*get_xstats_size)(const struct net_device *dev); 71 int (*fill_xstats)(struct sk_buff *skb, 72 const struct net_device *dev); 73}; 74 75extern int __rtnl_link_register(struct rtnl_link_ops *ops); 76extern void __rtnl_link_unregister(struct rtnl_link_ops *ops); | 1#ifndef __NET_RTNETLINK_H 2#define __NET_RTNETLINK_H 3 4#include <linux/rtnetlink.h> 5#include <net/netlink.h> 6 7typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *, void *); 8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); --- 60 unchanged lines hidden (view full) --- 69 70 size_t (*get_xstats_size)(const struct net_device *dev); 71 int (*fill_xstats)(struct sk_buff *skb, 72 const struct net_device *dev); 73}; 74 75extern int __rtnl_link_register(struct rtnl_link_ops *ops); 76extern void __rtnl_link_unregister(struct rtnl_link_ops *ops); |
77extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops); |
|
77 78extern int rtnl_link_register(struct rtnl_link_ops *ops); 79extern void rtnl_link_unregister(struct rtnl_link_ops *ops); 80 81extern struct net_device *rtnl_create_link(struct net *net, char *ifname, 82 const struct rtnl_link_ops *ops, struct nlattr *tb[]); 83extern const struct nla_policy ifla_policy[IFLA_MAX+1]; 84 85#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind) 86 87#endif | 78 79extern int rtnl_link_register(struct rtnl_link_ops *ops); 80extern void rtnl_link_unregister(struct rtnl_link_ops *ops); 81 82extern struct net_device *rtnl_create_link(struct net *net, char *ifname, 83 const struct rtnl_link_ops *ops, struct nlattr *tb[]); 84extern const struct nla_policy ifla_policy[IFLA_MAX+1]; 85 86#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind) 87 88#endif |