Support UDP packets in VNET+
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 12 Mar 2008 17:57:44 +0000 (17:57 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 12 Mar 2008 17:57:44 +0000 (17:57 +0000)
linux-2.6-520-vnet+.patch

index 0648b92..72cc91c 100644 (file)
@@ -602,14 +602,14 @@ diff -Nurb linux-2.6.22-510/net/netfilter/xt_MARK.c linux-2.6.22-520/net/netfilt
 +              ip = ct->tuplehash[dir].tuple.dst.u3.ip;
 +              port = get_dst_port(&ct->tuplehash[dir].tuple);
 +
-+              if (proto == 1) {
++              if (proto == 1 || proto == 17) {
 +                      if (((*pskb)->mark!=-1) && (*pskb)->mark)
 +                              ct->xid[0]=(*pskb)->mark;
 +                      if (ct->xid[0]) 
 +                              mark = ct->xid[0];
 +
 +              }
-+              else if (proto == 6) {
++              else if (proto == 6) { 
 +                              if ((*pskb)->sk) 
 +                                      connection_sk = (*pskb)->sk;
 +                              else {