1. 22 Apr, 2010 4 commits
    • Dan Carpenter's avatar
      rtnetlink: potential ERR_PTR dereference · 80032cff
      Dan Carpenter authored
      In the original code, if rtnl_create_link() returned an ERR_PTR then that
      would get passed to rtnl_configure_link() which dereferences it.
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Acked-by: default avatarPatrick McHardy <kaber@trash.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      80032cff
    • Jiri Olsa's avatar
      net: ipv6 bind to device issue · f4f914b5
      Jiri Olsa authored
      The issue raises when having 2 NICs both assigned the same
      IPv6 global address.
      
      If a sender binds to a particular NIC (SO_BINDTODEVICE),
      the outgoing traffic is being sent via the first found.
      The bonded device is thus not taken into an account during the
      routing.
      
      From the ip6_route_output function:
      
      If the binding address is multicast, linklocal or loopback,
      the RT6_LOOKUP_F_IFACE bit is set, but not for global address.
      
      So binding global address will neglect SO_BINDTODEVICE-binded device,
      because the fib6_rule_lookup function path won't check for the
      flowi::oif field and take first route that fits.
      Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarScott Otto <scott.otto@alcatel-lucent.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f4f914b5
    • Shan Wei's avatar
      ipv6: allow to send packet after receiving ICMPv6 Too Big message with MTU... · f2228f78
      Shan Wei authored
      ipv6: allow to send packet after receiving ICMPv6 Too Big message with MTU field less than IPV6_MIN_MTU
      
      According to RFC2460, PMTU is set to the IPv6 Minimum Link
      MTU (1280) and a fragment header should always be included
      after a node receiving Too Big message reporting PMTU is
      less than the IPv6 Minimum Link MTU.
      
      After receiving a ICMPv6 Too Big message reporting PMTU is
      less than the IPv6 Minimum Link MTU, sctp *can't* send any
      data/control chunk that total length including IPv6 head
      and IPv6 extend head is less than IPV6_MIN_MTU(1280 bytes).
      
      The failure occured in p6_fragment(), about reason
      see following(take SHUTDOWN chunk for example):
      sctp_packet_transmit (SHUTDOWN chunk, len=16 byte)
      |------sctp_v6_xmit (local_df=0)
         |------ip6_xmit
             |------ip6_output (dst_allfrag is ture)
                 |------ip6_fragment
      
      In ip6_fragment(), for local_df=0, drops the the packet
      and returns EMSGSIZE.
      
      The patch fixes it with adding check length of skb->len.
      In this case, Ipv6 not to fragment upper protocol data,
      just only add a fragment header before it.
      Signed-off-by: default avatarShan Wei <shanwei@cn.fujitsu.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f2228f78
    • Diego Giagio's avatar
      drivers/net/usb: Add new driver ipheth · a19259c3
      Diego Giagio authored
      Add new driver to use tethering with an iPhone device. After initial submission,
      apply fixes to fit the new driver into the kernel standards.
      
      There are still a couple of minor (almost cosmetic-level) issues, but the driver
      is fully functional right now.
      Signed-off-by: default avatarL. Alberto Giménez <agimenez@sysvalve.es>
      Signed-off-by: default avatarDiego Giagio <diego@giagio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a19259c3
  2. 21 Apr, 2010 11 commits
  3. 20 Apr, 2010 9 commits
  4. 19 Apr, 2010 16 commits