# Marc E. Fiuczynski <mef@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: kread.py,v 1.3 2006/12/01 02:43:01 mef Exp $
+# $Id: kread,v 1.1 2006/12/01 16:21:13 mef Exp $
#
import sys, re, os, stat
/* Storage reserved for other modules: */
union ip_conntrack_proto proto;
+ /* PLANETLAB. VNET-specific */
+ xid_t xid[IP_CT_DIR_MAX];
+
union ip_conntrack_help help;
#ifdef CONFIG_IP_NF_NAT_NEEDED
*
* Mark Huang <mlhuang@cs.princeton.edu>
*
- * $Id$
+ * $Id: oom_panic.c,v 1.1 2004/10/01 17:54:48 mlhuang Exp $
*/
#include <linux/mm.h>
/* Overload tuple linked list to put us in unconfirmed list. */
list_add(&conntrack->tuplehash[IP_CT_DIR_ORIGINAL].list, &unconfirmed);
+ conntrack->xid[IP_CT_DIR_ORIGINAL] = -1;
+ conntrack->xid[IP_CT_DIR_REPLY] = -1;
write_unlock_bh(&ip_conntrack_lock);
}
if (connection_sk) {
- /* XXX:
+#ifdef REQUIRESFIXFROMSAPAN
connection_sk->sk_peercred.gid = connection_sk->sk_peercred.uid = ct->xid[dir];
ct->xid[!dir]=connection_sk->sk_xid;
- */
- connection_sk->sk_peercred.gid = connection_sk->sk_peercred.uid = connection_sk->sk_xid;
+ /*connection_sk->sk_peercred.gid = connection_sk->sk_peercred.uid = connection_sk->sk_xid;*/
if (connection_sk->sk_xid != 0)
mark = connection_sk->sk_xid;
+#endif
if (connection_sk != (*pskb)->sk)
sock_put(connection_sk);
}