Skip to content

Commit 6bcb90d

Browse files
committed
include: merge branch 'include-cleanup'
2 parents 3b2071e + eddd04e commit 6bcb90d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+179
-14
lines changed

include/netlink-private/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@
2323
#include <netlink-private/object-api.h>
2424
#include <netlink-private/route/tc-api.h>
2525
#include <netlink-private/route/link/sriov.h>
26+
#include <linux/netlink.h>
27+
#include <linux/rtnetlink.h>
28+
#include <linux/genetlink.h>
2629
#include <linux/tc_act/tc_mirred.h>
2730
#include <linux/tc_act/tc_skbedit.h>
2831
#include <linux/tc_act/tc_gact.h>
32+
#include <linux/sock_diag.h>
2933

3034
#define NL_SOCK_PASSCRED (1<<1)
3135
#define NL_OWN_PORT (1<<2)

include/netlink/addr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
extern "C" {
1919
#endif
2020

21+
struct nlattr;
22+
2123
struct nl_addr;
2224

2325
/* Creation */

include/netlink/attr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
extern "C" {
2222
#endif
2323

24+
struct nlattr;
25+
2426
struct nl_msg;
2527

2628
/**

include/netlink/data.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
extern "C" {
1919
#endif
2020

21+
struct nlattr;
22+
2123
struct nl_data;
2224

2325
/* General */

include/netlink/handlers.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@
2222
extern "C" {
2323
#endif
2424

25+
struct nlmsgerr;
26+
struct sockaddr_nl;
27+
struct ucred;
28+
2529
struct nl_cb;
2630
struct nl_sock;
2731
struct nl_msg;
28-
struct ucred;
2932

3033
/**
3134
* @name Callback Typedefs

include/netlink/idiag/idiagnl.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ enum {
9090

9191

9292
/* deprectated keep these only for compatibility, DO NOT USE THEM */
93-
#define IDIAG_SK_MEMINFO_RMEM_ALLOC SK_MEMINFO_RMEM_ALLOC
94-
#define IDIAG_SK_MEMINFO_RCVBUF SK_MEMINFO_RCVBUF
95-
#define IDIAG_SK_MEMINFO_WMEM_ALLOC SK_MEMINFO_WMEM_ALLOC
96-
#define IDIAG_SK_MEMINFO_SNDBUF SK_MEMINFO_SNDBUF
97-
#define IDIAG_SK_MEMINFO_FWD_ALLOC SK_MEMINFO_FWD_ALLOC
98-
#define IDIAG_SK_MEMINFO_WMEM_QUEUED SK_MEMINFO_WMEM_QUEUED
99-
#define IDIAG_SK_MEMINFO_OPTMEM SK_MEMINFO_OPTMEM
100-
#define IDIAG_SK_MEMINFO_BACKLOG SK_MEMINFO_BACKLOG
101-
#define IDIAG_SK_MEMINFO_VARS SK_MEMINFO_VARS
93+
#define IDIAG_SK_MEMINFO_RMEM_ALLOC 0 /* SK_MEMINFO_RMEM_ALLOC */
94+
#define IDIAG_SK_MEMINFO_RCVBUF 1 /* SK_MEMINFO_RCVBUF */
95+
#define IDIAG_SK_MEMINFO_WMEM_ALLOC 2 /* SK_MEMINFO_WMEM_ALLOC */
96+
#define IDIAG_SK_MEMINFO_SNDBUF 3 /* SK_MEMINFO_SNDBUF */
97+
#define IDIAG_SK_MEMINFO_FWD_ALLOC 4 /* SK_MEMINFO_FWD_ALLOC */
98+
#define IDIAG_SK_MEMINFO_WMEM_QUEUED 5 /* SK_MEMINFO_WMEM_QUEUED */
99+
#define IDIAG_SK_MEMINFO_OPTMEM 6 /* SK_MEMINFO_OPTMEM */
100+
#define IDIAG_SK_MEMINFO_BACKLOG 7 /* SK_MEMINFO_BACKLOG */
101+
#define IDIAG_SK_MEMINFO_VARS SK_MEMINFO_VARS
102102

103103
/* deprecated names. */
104104
#define IDIAG_TIMER_OFF IDIAGNL_TIMER_OFF

include/netlink/msg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
extern "C" {
2121
#endif
2222

23+
struct nlmsghdr;
24+
2325
#define NL_DONTPAD 0
2426

2527
/**

include/netlink/netlink.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
extern "C" {
3939
#endif
4040

41+
struct nlmsghdr;
4142
struct ucred;
4243
struct nl_cache_ops;
4344
struct nl_parser_param;

include/netlink/route/cls/ematch/cmp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
extern "C" {
2121
#endif
2222

23+
struct tcf_em_cmp;
24+
2325
extern void rtnl_ematch_cmp_set(struct rtnl_ematch *,
2426
struct tcf_em_cmp *);
2527
extern struct tcf_em_cmp *

include/netlink/route/link/can.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
extern "C" {
2121
#endif
2222

23+
struct can_bittiming_const;
24+
struct can_bittiming;
25+
struct can_berr_counter;
26+
2327
extern int rtnl_link_is_can(struct rtnl_link *link);
2428

2529
extern char *rtnl_link_can_ctrlmode2str(int, char *, size_t);

0 commit comments

Comments
 (0)