rtnetlink.h (db8c246937713e60b7628661ccc187eeb81f2bae) | rtnetlink.h (c07135633bee3f01a6454d15b6411f32cfbeb2fd) |
---|---|
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 *); --- 111 unchanged lines hidden (view full) --- 120extern int __rtnl_af_register(struct rtnl_af_ops *ops); 121extern void __rtnl_af_unregister(struct rtnl_af_ops *ops); 122 123extern int rtnl_af_register(struct rtnl_af_ops *ops); 124extern void rtnl_af_unregister(struct rtnl_af_ops *ops); 125 126 127extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]); | 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 *); --- 111 unchanged lines hidden (view full) --- 120extern int __rtnl_af_register(struct rtnl_af_ops *ops); 121extern void __rtnl_af_unregister(struct rtnl_af_ops *ops); 122 123extern int rtnl_af_register(struct rtnl_af_ops *ops); 124extern void rtnl_af_unregister(struct rtnl_af_ops *ops); 125 126 127extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]); |
128extern struct net_device *rtnl_create_link(struct net *src_net, struct net *net, | 128extern struct net_device *rtnl_create_link(struct net *net, |
129 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]); 130extern int rtnl_configure_link(struct net_device *dev, 131 const struct ifinfomsg *ifm); 132extern const struct nla_policy ifla_policy[IFLA_MAX+1]; 133 134#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind) 135 136#endif | 129 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]); 130extern int rtnl_configure_link(struct net_device *dev, 131 const struct ifinfomsg *ifm); 132extern const struct nla_policy ifla_policy[IFLA_MAX+1]; 133 134#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind) 135 136#endif |