rtnetlink.h (23289a37e2b127dfc4de1313fba15bb4c9f0cd5b) rtnetlink.h (81adee47dfb608df3ad0b91d230fb3cef75f0060)
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 *);

--- 41 unchanged lines hidden (view full) ---

50 size_t priv_size;
51 void (*setup)(struct net_device *dev);
52
53 int maxtype;
54 const struct nla_policy *policy;
55 int (*validate)(struct nlattr *tb[],
56 struct nlattr *data[]);
57
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 *);

--- 41 unchanged lines hidden (view full) ---

50 size_t priv_size;
51 void (*setup)(struct net_device *dev);
52
53 int maxtype;
54 const struct nla_policy *policy;
55 int (*validate)(struct nlattr *tb[],
56 struct nlattr *data[]);
57
58 int (*newlink)(struct net_device *dev,
58 int (*newlink)(struct net *src_net,
59 struct net_device *dev,
59 struct nlattr *tb[],
60 struct nlattr *data[]);
61 int (*changelink)(struct net_device *dev,
62 struct nlattr *tb[],
63 struct nlattr *data[]);
64 void (*dellink)(struct net_device *dev,
65 struct list_head *head);
66

--- 11 unchanged lines hidden (view full) ---

78
79extern int __rtnl_link_register(struct rtnl_link_ops *ops);
80extern void __rtnl_link_unregister(struct rtnl_link_ops *ops);
81extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops);
82
83extern int rtnl_link_register(struct rtnl_link_ops *ops);
84extern void rtnl_link_unregister(struct rtnl_link_ops *ops);
85
60 struct nlattr *tb[],
61 struct nlattr *data[]);
62 int (*changelink)(struct net_device *dev,
63 struct nlattr *tb[],
64 struct nlattr *data[]);
65 void (*dellink)(struct net_device *dev,
66 struct list_head *head);
67

--- 11 unchanged lines hidden (view full) ---

79
80extern int __rtnl_link_register(struct rtnl_link_ops *ops);
81extern void __rtnl_link_unregister(struct rtnl_link_ops *ops);
82extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops);
83
84extern int rtnl_link_register(struct rtnl_link_ops *ops);
85extern void rtnl_link_unregister(struct rtnl_link_ops *ops);
86
86extern struct net_device *rtnl_create_link(struct net *net, char *ifname,
87 const struct rtnl_link_ops *ops, struct nlattr *tb[]);
87extern struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
88extern struct net_device *rtnl_create_link(struct net *src_net, struct net *net,
89 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]);
88extern const struct nla_policy ifla_policy[IFLA_MAX+1];
89
90#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind)
91
92#endif
90extern const struct nla_policy ifla_policy[IFLA_MAX+1];
91
92#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind)
93
94#endif