1. 06 Nov, 2017 4 commits
    • Florian Westphal's avatar
      netfilter: xt_connlimit: remove mask argument · b1fc1372
      Florian Westphal authored
      Instead of passing mask to all the helpers, just fixup the search key
      early.
      
      After rbtree conversion, each rbtree node stores connections of same
      'addr & mask', so no need to pass the mask too.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      b1fc1372
    • Colin Ian King's avatar
      netfilter: ebtables: clean up initialization of buf · 9912156c
      Colin Ian King authored
      buf is initialized to buf_start and then set on the next statement
      to buf_start + offsets[i].  Clean this up to just initialize buf
      to buf_start + offsets[i] to clean up the clang build warning:
      "Value stored to 'buf' during its initialization is never read"
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      9912156c
    • KUWAZAWA Takuya's avatar
      netfilter: ipvs: Fix inappropriate output of procfs · c5504f72
      KUWAZAWA Takuya authored
      Information about ipvs in different network namespace can be seen via procfs.
      
      How to reproduce:
      
        # ip netns add ns01
        # ip netns add ns02
        # ip netns exec ns01 ip a add dev lo 127.0.0.1/8
        # ip netns exec ns02 ip a add dev lo 127.0.0.1/8
        # ip netns exec ns01 ipvsadm -A -t 10.1.1.1:80
        # ip netns exec ns02 ipvsadm -A -t 10.1.1.2:80
      
      The ipvsadm displays information about its own network namespace only.
      
        # ip netns exec ns01 ipvsadm -Ln
        IP Virtual Server version 1.2.1 (size=4096)
        Prot LocalAddress:Port Scheduler Flags
          -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
        TCP  10.1.1.1:80 wlc
      
        # ip netns exec ns02 ipvsadm -Ln
        IP Virtual Server version 1.2.1 (size=4096)
        Prot LocalAddress:Port Scheduler Flags
          -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
        TCP  10.1.1.2:80 wlc
      
      But I can see information about other network namespace via procfs.
      
        # ip netns exec ns01 cat /proc/net/ip_vs
        IP Virtual Server version 1.2.1 (size=4096)
        Prot LocalAddress:Port Scheduler Flags
          -> RemoteAddress:Port Forward Weight ActiveConn InActConn
        TCP  0A010101:0050 wlc
        TCP  0A010102:0050 wlc
      
        # ip netns exec ns02 cat /proc/net/ip_vs
        IP Virtual Server version 1.2.1 (size=4096)
        Prot LocalAddress:Port Scheduler Flags
          -> RemoteAddress:Port Forward Weight ActiveConn InActConn
        TCP  0A010102:0050 wlc
      Signed-off-by: default avatarKUWAZAWA Takuya <albatross0@gmail.com>
      Acked-by: default avatarJulian Anastasov <ja@ssi.bg>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      c5504f72
    • Helge Deller's avatar
      netfilter: ipvs: Use %pS printk format for direct addresses · c5cc0c69
      Helge Deller authored
      The debug and error printk functions in ipvs uses wrongly the %pF instead of
      the %pS printk format specifier for printing symbols for the address returned
      by _builtin_return_address(0). Fix it for the ia64, ppc64 and parisc64
      architectures.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: Wensong Zhang <wensong@linux-vs.org>
      Cc: netdev@vger.kernel.org
      Cc: lvs-devel@vger.kernel.org
      Cc: netfilter-devel@vger.kernel.org
      Acked-by: default avatarSimon Horman <horms@verge.net.au>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      c5cc0c69
  2. 24 Oct, 2017 10 commits
  3. 04 Oct, 2017 3 commits
  4. 03 Oct, 2017 23 commits