m68k: Update defconfigs for 2.6.27-rc6
[pandora-kernel.git] / include / net / inet_timewait_sock.h
index 296547b..9132490 100644 (file)
@@ -207,4 +207,25 @@ extern void inet_twsk_schedule(struct inet_timewait_sock *tw,
                               const int timeo, const int timewait_len);
 extern void inet_twsk_deschedule(struct inet_timewait_sock *tw,
                                 struct inet_timewait_death_row *twdr);
+
+extern void inet_twsk_purge(struct net *net, struct inet_hashinfo *hashinfo,
+                           struct inet_timewait_death_row *twdr, int family);
+
+static inline
+struct net *twsk_net(const struct inet_timewait_sock *twsk)
+{
+#ifdef CONFIG_NET_NS
+       return twsk->tw_net;
+#else
+       return &init_net;
+#endif
+}
+
+static inline
+void twsk_net_set(struct inet_timewait_sock *twsk, struct net *net)
+{
+#ifdef CONFIG_NET_NS
+       twsk->tw_net = net;
+#endif
+}
 #endif /* _INET_TIMEWAIT_SOCK_ */