#ifndef __NET_KCM_H_
#define __NET_KCM_H_
#include <linux/skbuff.h>
#include <net/sock.h>
#include <net/strparser.h>
#include <uapi/linux/kcm.h>
extern unsigned int kcm_net_id;
#define KCM_STATS_ADD(stat, count) …
#define KCM_STATS_INCR(stat) …
struct kcm_psock_stats { … };
struct kcm_mux_stats { … };
struct kcm_stats { … };
struct kcm_tx_msg { … };
struct kcm_sock { … };
struct bpf_prog;
struct kcm_psock { … };
struct kcm_net { … };
struct kcm_mux { … };
#ifdef CONFIG_PROC_FS
int kcm_proc_init(void);
void kcm_proc_exit(void);
#else
static inline int kcm_proc_init(void) { return 0; }
static inline void kcm_proc_exit(void) { }
#endif
static inline void aggregate_psock_stats(struct kcm_psock_stats *stats,
struct kcm_psock_stats *agg_stats)
{ … }
static inline void aggregate_mux_stats(struct kcm_mux_stats *stats,
struct kcm_mux_stats *agg_stats)
{ … }
#endif