1. 30 7月, 2018 2 次提交
    • X
      route: add support for directed broadcast forwarding · 5cbf777c
      Xin Long 提交于
      This patch implements the feature described in rfc1812#section-5.3.5.2
      and rfc2644. It allows the router to forward directed broadcast when
      sysctl bc_forwarding is enabled.
      
      Note that this feature could be done by iptables -j TEE, but it would
      cause some problems:
        - target TEE's gateway param has to be set with a specific address,
          and it's not flexible especially when the route wants forward all
          directed broadcasts.
        - this duplicates the directed broadcasts so this may cause side
          effects to applications.
      
      Besides, to keep consistent with other os router like BSD, it's also
      necessary to implement it in the route rx path.
      
      Note that route cache needs to be flushed when bc_forwarding is
      changed.
      Signed-off-by: NXin Long <lucien.xin@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5cbf777c
    • V
      net/ipv6: allow any source address for sendmsg pktinfo with ip_nonlocal_bind · d0c1f011
      Vincent Bernat 提交于
      When freebind feature is set of an IPv6 socket, any source address can
      be used when sending UDP datagrams using IPv6 PKTINFO ancillary
      message. Global non-local bind feature was added in commit
      35a256fe ("ipv6: Nonlocal bind") for IPv6. This commit also allows
      IPv6 source address spoofing when non-local bind feature is enabled.
      Signed-off-by: NVincent Bernat <vincent@bernat.im>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d0c1f011
  2. 29 7月, 2018 2 次提交
  3. 28 7月, 2018 11 次提交
  4. 27 7月, 2018 8 次提交
  5. 26 7月, 2018 10 次提交
  6. 25 7月, 2018 7 次提交