]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/compat.h
netfilter: ip_tables: add iptables security table for mandatory access control rules
[linux-2.6-omap-h63xx.git] / include / net / compat.h
index 9859b60280d5631571cdbebdf611c28c8e283b48..164cb682e220d3f754cee32ab6a23f27acc61656 100644 (file)
@@ -25,6 +25,7 @@ struct compat_cmsghdr {
 };
 
 extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *);
+extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
 
 #else /* defined(CONFIG_COMPAT) */
 #define compat_msghdr  msghdr          /* to avoid compiler warnings */
@@ -39,4 +40,10 @@ extern int put_cmsg_compat(struct msghdr*, int, int, int, void *);
 
 extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int);
 
+extern int compat_mc_setsockopt(struct sock *, int, int, char __user *, int,
+       int (*)(struct sock *, int, int, char __user *, int));
+extern int compat_mc_getsockopt(struct sock *, int, int, char __user *,
+       int __user *, int (*)(struct sock *, int, int, char __user *,
+                               int __user *));
+
 #endif /* NET_COMPAT_H */