- fix args for UDP_INC_STATS_BH
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 19 Sep 2007 08:50:54 +0000 (08:50 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 19 Sep 2007 08:50:54 +0000 (08:50 -0000)
package/openswan/linux-2.6.22.6-openswan-2.4.9.kernel-2.6-natt.patch

index 7b29e6c1a55b6fbbce0f71891d6cea673d508d25..412b087d6e57f207aa1b46350bc889ff4e56137b 100644 (file)
@@ -109,9 +109,9 @@ diff -rdupN linux-2.6.22.6.oorig/net/ipv4/udp.c linux-2.6.22.6/net/ipv4/udp.c
 -                      return -ret;
 +                      if(xfrm4_rcv_encap_func != NULL) {
 +                        ret = (*xfrm4_rcv_encap_func)(skb, up->encap_type);
-+                        UDP_INC_STATS_BH(UDP_MIB_INDATAGRAMS);
++                        UDP_INC_STATS_BH(UDP_MIB_INDATAGRAMS, up->pcflag);
 +                      } else {
-+                        UDP_INC_STATS_BH(UDP_MIB_INERRORS);
++                        UDP_INC_STATS_BH(UDP_MIB_INERRORS, up->pcflag);
 +                        ret = 1;
 +                      }
 +                      return ret;