Add changes from the Linux-2.6 tree.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 13 Nov 2007 21:13:52 +0000 (21:13 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Tue, 13 Nov 2007 21:13:52 +0000 (21:13 +0000)
configs/kread
include/linux/netfilter_ipv4/ip_conntrack.h
mm/oom_panic.c
net/ipv4/netfilter/ip_conntrack_core.c
net/netfilter/xt_MARK.c

index 9278afe..9851315 100755 (executable)
@@ -5,7 +5,7 @@
 # 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
index 33581c1..20f90bc 100644 (file)
@@ -104,6 +104,9 @@ struct ip_conntrack
        /* 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
index b782934..4230ae5 100644 (file)
@@ -9,7 +9,7 @@
  *
  * 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>
index f8b3009..2f2232e 100644 (file)
@@ -720,6 +720,8 @@ init_conntrack(struct ip_conntrack_tuple *tuple,
 
        /* 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);
 
index 133eb2f..859b6af 100644 (file)
@@ -138,13 +138,13 @@ target_v1(struct sk_buff **pskb,
                }
 
                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);
                }