1. 12 12月, 2017 2 次提交
    • X
      sctp: add stream interleave enable members and sockopt · 772a5869
      Xin Long 提交于
      This patch adds intl_enable in asoc and netns, and strm_interleave in
      sctp_sock to indicate if stream interleave is enabled and supported.
      
      netns intl_enable would be set via procfs, but that is not added yet
      until all stream interleave codes are completely implemented; asoc
      intl_enable will be set when doing 4-shakehands.
      
      sp strm_interleave can be set by sockopt SCTP_INTERLEAVING_SUPPORTED
      which is also added in this patch. This socket option is defined in
      section 4.3.1 of RFC8260.
      
      Note that strm_interleave can only be set by sockopt when both netns
      intl_enable and sp frag_interleave are set.
      Signed-off-by: NXin Long <lucien.xin@gmail.com>
      Acked-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      772a5869
    • M
      ipvlan: add L2 check for packets arriving via virtual devices · 92ff4264
      Mahesh Bandewar 提交于
      Packets that don't have dest mac as the mac of the master device should
      not be entertained by the IPvlan rx-handler. This is mostly true as the
      packet path mostly takes care of that, except when the master device is
      a virtual device. As demonstrated in the following case -
      
        ip netns add ns1
        ip link add ve1 type veth peer name ve2
        ip link add link ve2 name iv1 type ipvlan mode l2
        ip link set dev iv1 netns ns1
        ip link set ve1 up
        ip link set ve2 up
        ip -n ns1 link set iv1 up
        ip addr add 192.168.10.1/24 dev ve1
        ip -n ns1 addr 192.168.10.2/24 dev iv1
        ping -c2 192.168.10.2
        <Works!>
        ip neigh show dev ve1
        ip neigh show 192.168.10.2 lladdr <random> dev ve1
        ping -c2 192.168.10.2
        <Still works! Wrong!!>
      
      This patch adds that missing check in the IPvlan rx-handler.
      Reported-by: NAmit Sikka <amit.sikka@ericsson.com>
      Signed-off-by: NMahesh Bandewar <maheshb@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      92ff4264
  2. 11 12月, 2017 9 次提交
  3. 10 12月, 2017 1 次提交
  4. 09 12月, 2017 28 次提交