rtnetlink.h (38fd2c202a3d82bc12430bce5789fa2c2a406f71) rtnetlink.h (ba7d49b1f0f8e5f24294a880ed576964059af5ef)
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 *);
8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);

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

74 int (*fill_info)(struct sk_buff *skb,
75 const struct net_device *dev);
76
77 size_t (*get_xstats_size)(const struct net_device *dev);
78 int (*fill_xstats)(struct sk_buff *skb,
79 const struct net_device *dev);
80 unsigned int (*get_num_tx_queues)(void);
81 unsigned int (*get_num_rx_queues)(void);
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 *);
8typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);

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

74 int (*fill_info)(struct sk_buff *skb,
75 const struct net_device *dev);
76
77 size_t (*get_xstats_size)(const struct net_device *dev);
78 int (*fill_xstats)(struct sk_buff *skb,
79 const struct net_device *dev);
80 unsigned int (*get_num_tx_queues)(void);
81 unsigned int (*get_num_rx_queues)(void);
82
83 int slave_maxtype;
84 const struct nla_policy *slave_policy;
85 int (*slave_validate)(struct nlattr *tb[],
86 struct nlattr *data[]);
87 int (*slave_changelink)(struct net_device *dev,
88 struct net_device *slave_dev,
89 struct nlattr *tb[],
90 struct nlattr *data[]);
91 size_t (*get_slave_size)(const struct net_device *dev,
92 const struct net_device *slave_dev);
93 int (*fill_slave_info)(struct sk_buff *skb,
94 const struct net_device *dev,
95 const struct net_device *slave_dev);
82};
83
84int __rtnl_link_register(struct rtnl_link_ops *ops);
85void __rtnl_link_unregister(struct rtnl_link_ops *ops);
86
87int rtnl_link_register(struct rtnl_link_ops *ops);
88void rtnl_link_unregister(struct rtnl_link_ops *ops);
89

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

110 size_t (*get_link_af_size)(const struct net_device *dev);
111
112 int (*validate_link_af)(const struct net_device *dev,
113 const struct nlattr *attr);
114 int (*set_link_af)(struct net_device *dev,
115 const struct nlattr *attr);
116};
117
96};
97
98int __rtnl_link_register(struct rtnl_link_ops *ops);
99void __rtnl_link_unregister(struct rtnl_link_ops *ops);
100
101int rtnl_link_register(struct rtnl_link_ops *ops);
102void rtnl_link_unregister(struct rtnl_link_ops *ops);
103

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

124 size_t (*get_link_af_size)(const struct net_device *dev);
125
126 int (*validate_link_af)(const struct net_device *dev,
127 const struct nlattr *attr);
128 int (*set_link_af)(struct net_device *dev,
129 const struct nlattr *attr);
130};
131
118int __rtnl_af_register(struct rtnl_af_ops *ops);
119void __rtnl_af_unregister(struct rtnl_af_ops *ops);
120
132void __rtnl_af_unregister(struct rtnl_af_ops *ops);
133
121int rtnl_af_register(struct rtnl_af_ops *ops);
134void rtnl_af_register(struct rtnl_af_ops *ops);
122void rtnl_af_unregister(struct rtnl_af_ops *ops);
123
124struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
125struct net_device *rtnl_create_link(struct net *net, char *ifname,
126 const struct rtnl_link_ops *ops,
127 struct nlattr *tb[]);
128int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm);
129
130extern const struct nla_policy ifla_policy[IFLA_MAX+1];
131
132#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind)
133
134#endif
135void rtnl_af_unregister(struct rtnl_af_ops *ops);
136
137struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);
138struct net_device *rtnl_create_link(struct net *net, char *ifname,
139 const struct rtnl_link_ops *ops,
140 struct nlattr *tb[]);
141int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm);
142
143extern const struct nla_policy ifla_policy[IFLA_MAX+1];
144
145#define MODULE_ALIAS_RTNL_LINK(kind) MODULE_ALIAS("rtnl-link-" kind)
146
147#endif