new file mode 100644
@@ -0,0 +1,37 @@
+#ifndef _EXTEND_REQUEST_SOCK_H
+#define _EXTEND_REQUEST_SOCK_H
+/*
+ * Short term extension of struct tcp_request_sock and related.
+ *
+ * Copyright (C) 2009 William.Allen.Simpson@gmail.com
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+#include <linux/tcp.h>
+#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
+#include <linux/ipv6.h>
+#endif
+
+struct extend_request_sock {
+ union {
+ struct tcp_request_sock tcp4rsk;
+#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
+ struct tcp6_request_sock tcp6rsk;
+#endif
+ } header;
+
+ u8 cookie_plus;
+ u8 cookie_in_always:1,
+ cookie_out_never:1;
+};
+
+static inline struct extend_request_sock *ext_rsk(const struct request_sock *req)
+{
+ return (struct extend_request_sock *)req;
+}
+
+#endif /* _EXTEND_REQUEST_SOCK_H */