#ifndef NET_COMPAT_H
#define NET_COMPAT_H
struct sock;
#include <linux/compat.h>
struct compat_msghdr { … };
struct compat_mmsghdr { … };
struct compat_cmsghdr { … };
struct compat_rtentry { … };
int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
struct sockaddr __user **save_addr);
int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *,
struct sockaddr __user **, struct iovec **);
int put_cmsg_compat(struct msghdr*, int, int, int, void *);
int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *,
unsigned char *, int);
struct compat_group_req { … } __packed;
struct compat_group_source_req { … } __packed;
struct compat_group_filter { … } __packed;
#endif