1. 13 6月, 2012 2 次提交
  2. 12 6月, 2012 6 次提交
  3. 11 6月, 2012 4 次提交
  4. 10 6月, 2012 1 次提交
    • P
      net: Make linux/tcp.h C++ friendly (trivial) · 8876d6b5
      Paul Pluzhnikov 提交于
      I originally sent this patch to <trivial@kernel.org>, but Jiri Kosina did
      not feel that this is fully appropriate for the trivial tree.
      
      Using linux/tcp.h from C++ results in:
      
      cat t.cc
      #include <linux/tcp.h>
      int main() { }
      
      g++ -c t.cc
      
      In file included from t.cc:1:
      /usr/include/linux/tcp.h:72: error: '__u32 __fswab32(__u32)' cannot appear in a constant-expression
      /usr/include/linux/tcp.h:72: error: a function call cannot appear in a constant-expression
      ...
      
      Attached trivial patch fixes this problem.
      
      Tested:
      - the t.cc above compiles with g++ and
      - the following program generates the same output before/after
        the patch:
      
      #include <linux/tcp.h>
      #include <stdio.h>
      
      int main ()
      {
      #define P(a) printf("%s: %08x\n", #a, (int)a)
       P(TCP_FLAG_CWR);
       P(TCP_FLAG_ECE);
       P(TCP_FLAG_URG);
       P(TCP_FLAG_ACK);
       P(TCP_FLAG_PSH);
       P(TCP_FLAG_RST);
       P(TCP_FLAG_SYN);
       P(TCP_FLAG_FIN);
       P(TCP_RESERVED_BITS);
       P(TCP_DATA_OFFSET);
      #undef P
       return 0;
      }
      Signed-off-by: NPaul Pluzhnikov <ppluzhnikov@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8876d6b5
  5. 09 6月, 2012 15 次提交
  6. 08 6月, 2012 8 次提交
  7. 07 6月, 2012 4 次提交
    • P
      netfilter: nf_ct_h323: fix bug in rtcp natting · d109e9af
      Pablo Neira Ayuso 提交于
      The nat_rtp_rtcp hook takes two separate parameters port and rtp_port.
      
      port is expected to be the real h245 address (found inside the packet).
      rtp_port is the even number closest to port (RTP ports are even and
      RTCP ports are odd).
      
      However currently, both port and rtp_port are having same value (both are
      rounded to nearest even numbers).
      
      This works well in case of openlogicalchannel with media (RTP/even) port.
      
      But in case of openlogicalchannel for media control (RTCP/odd) port,
      h245 address in the packet is wrongly modified to have an even port.
      
      I am attaching a pcap demonstrating the problem, for any further analysis.
      
      This behavior was introduced around v2.6.19 while rewriting the helper.
      Signed-off-by: NJagdish Motwani <jagdish.motwani@elitecore.com>
      Signed-off-by: NSanket Shah <sanket.shah@elitecore.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      d109e9af
    • H
      netfilter: xt_HMARK: fix endianness and provide consistent hashing · d1992b16
      Hans Schillstrom 提交于
      This patch addresses two issues:
      
      a) Fix usage of u32 and __be32 that causes endianess warnings via sparse.
      b) Ensure consistent hashing in a cluster that is composed of big and
         little endian systems. Thus, we obtain the same hash mark in an
         heterogeneous cluster.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NHans Schillstrom <hans@schillstrom.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      d1992b16
    • D
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless · da2e8526
      David S. Miller 提交于
      John Linville says:
      ====================
      Amitkumar Karwar gives us a cfg80211 fix that changes some state
      tracking in order to avoid a WARNING.
      
      Arik Nemtsov provide a mac80211 fix for an RCU-related race.
      
      Avinash Patil shares a pair of mwifiex fixes, one which invalidates
      some stale configuration data before a channel change and another to
      restrict hidden SSID support to zero-length SSIDs only.
      
      Chun-Yeow Yeoh brings a mac80211 fix for a mesh problem triggered
      when combining multiple mesh networks into one.
      
      Felix Fietkau provides a mac80211 lockdep fix.
      
      Joe Perches fixes a couple of thinkos related to bitwise operations.
      
      Johannes Berg comes through with a flurry of fixes.  The iwlwifi ones
      address a problem Linus recently reported, and some of the fallout
      discovered while fixing it.  The mac80211 fix properly cleans-up
      remain-on-channel work on an interface that is stopped.  The others
      are clean-ups for regressions caused by stricter checking of possible
      virtual interfaces supported by wireless drivers.
      
      Meenakshi Venkataraman provides a mac80211 fix for an off-by-one error.
      
      Seth Forshee provides a fix to make the wireless adapters used in
      some Mac boxes work after being in S3 power saving state.
      
      Stanislaw Gruszka offers a copule of fixes, a fix for a mac80211
      scanning regression and an rt2x00 fix to avoid some lockdep spew.
      
      Last but not least, Vinicius Costa Gomes provides a bluetooth fix
      for a typo that "was preventing important features of Bluetooth
      from working".
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da2e8526
    • J
      Merge branch 'master' of... · 4e924fec
      John W. Linville 提交于
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
      4e924fec