rtnetlink.h (35b72beac967240c0a942a008284475b09440db9) rtnetlink.h (ba5366b87c0dc3b15463495598737e28015559cd)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_RTNETLINK_H
3#define __NET_RTNETLINK_H
4
5#include <linux/rtnetlink.h>
6#include <net/netlink.h>
7
8typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
9 struct netlink_ext_ack *);
10typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
11
12enum rtnl_link_flags {
13 RTNL_FLAG_DOIT_UNLOCKED = BIT(0),
14 RTNL_FLAG_BULK_DEL_SUPPORTED = BIT(1),
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_RTNETLINK_H
3#define __NET_RTNETLINK_H
4
5#include <linux/rtnetlink.h>
6#include <net/netlink.h>
7
8typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
9 struct netlink_ext_ack *);
10typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
11
12enum rtnl_link_flags {
13 RTNL_FLAG_DOIT_UNLOCKED = BIT(0),
14 RTNL_FLAG_BULK_DEL_SUPPORTED = BIT(1),
15 RTNL_FLAG_DUMP_UNLOCKED = BIT(2),
15};
16
17enum rtnl_kinds {
18 RTNL_KIND_NEW,
19 RTNL_KIND_DEL,
20 RTNL_KIND_GET,
21 RTNL_KIND_SET
22};

--- 194 unchanged lines hidden ---
16};
17
18enum rtnl_kinds {
19 RTNL_KIND_NEW,
20 RTNL_KIND_DEL,
21 RTNL_KIND_GET,
22 RTNL_KIND_SET
23};

--- 194 unchanged lines hidden ---