1. 26 2月, 2010 4 次提交
  2. 25 2月, 2010 5 次提交
  3. 24 2月, 2010 2 次提交
  4. 23 2月, 2010 10 次提交
  5. 20 2月, 2010 7 次提交
    • E
      net-sysfs: Use rtnl_trylock in wireless sysfs methods. · b8afe641
      Eric W. Biederman 提交于
      The wireless sysfs methods like the rest of the networking sysfs
      methods are removed with the rtnl_lock held and block until
      the existing methods stop executing.  So use rtnl_trylock
      and restart_syscall so that the code continues to work.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b8afe641
    • E
      net: Fix sysctl restarts... · 88af182e
      Eric W. Biederman 提交于
      Yuck.  It turns out that when we restart sysctls we were restarting
      with the values already changed.  Which unfortunately meant that
      the second time through we thought there was no change and skipped
      all kinds of work, despite the fact that there was indeed a change.
      
      I have fixed this the simplest way possible by restoring the changed
      values when we restart the sysctl write.
      
      One of my coworkers spotted this bug when after disabling forwarding
      on an interface pings were still forwarded.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      88af182e
    • J
      xfrm: Flushing empty SPD generates false events · 2f1eb65f
      Jamal Hadi Salim 提交于
      To see the effect make sure you have an empty SPD.
      On window1 "ip xfrm mon" and on window2 issue "ip xfrm policy flush"
      You get prompt back in window2 and you see the flush event on window1.
      With this fix, you still get prompt on window1 but no event on window2.
      
      Thanks to Alexey Dobriyan for finding a bug in earlier version
      when using pfkey to do the flushing.
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2f1eb65f
    • J
      xfrm: Flushing empty SAD generates false events · 9e64cc95
      Jamal Hadi Salim 提交于
      To see the effect make sure you have an empty SAD.
      On window1 "ip xfrm mon" and on window2 issue "ip xfrm state flush"
      You get prompt back in window2 and you see the flush event on window1.
      With this fix, you still get prompt on window1 but no event on window2.
      
      Thanks to Alexey Dobriyan for finding a bug in earlier version
      when using pfkey to do the flushing.
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e64cc95
    • J
      pfkey: fix SA and SP flush sequence · 8be987d7
      Jamal Hadi Salim 提交于
      RFC 2367 says flushing behavior should be:
      1) user space -> kernel: flush
      2) kernel: flush
      3) kernel -> user space: flush event to ALL listeners
      
      This is not realistic today in the presence of selinux policies
      which may reject the flush etc. So we make the sequence become:
      1) user space -> kernel: flush
      2) kernel: flush
      3) kernel -> user space: flush response to originater from #1
      4) if there were no errors then:
      kernel -> user space: flush event to ALL listeners
      Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8be987d7
    • K
      nl80211: add power save commands · ffb9eb3d
      Kalle Valo 提交于
      The most needed command from nl80211, which Wireless Extensions had,
      is support for power save mode. Add a simple command to make it possible
      to enable and disable power save via nl80211.
      
      I was also planning about extending the interface, for example adding the
      timeout value, but after thinking more about this I decided not to do it.
      Basically there were three reasons:
      
      Firstly, the parameters for power save are very much hardware dependent.
      Trying to find a unified interface which would work with all hardware, and
      still make sense to users, will be very difficult.
      
      Secondly, IEEE 802.11 power save implementation in Linux is still in state
      of flux. We have a long way to still to go and there is no way to predict
      what kind of implementation we will have after few years. And because we
      need to support nl80211 interface a long time, practically forever, adding
      now parameters to nl80211 might create maintenance problems later on.
      
      Third issue are the users. Power save parameters are mostly used for
      debugging, so debugfs is better, more flexible, interface for this.
      For example, wpa_supplicant currently doesn't configure anything related
      to power save mode. It's better to strive that kernel can automatically
      optimise the power save parameters, like with help of pm qos network
      and other traffic parameters.
      
      Later on, when we have better understanding of power save, we can extend
      this command with more features, if there's a need for that.
      Signed-off-by: NKalle Valo <kalle.valo@nokia.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ffb9eb3d
    • P
      netfilter: nf_conntrack_reasm: properly handle packets fragmented into a single fragment · 9e2dcf72
      Patrick McHardy 提交于
      When an ICMPV6_PKT_TOOBIG message is received with a MTU below 1280,
      all further packets include a fragment header.
      
      Unlike regular defragmentation, conntrack also needs to "reassemble"
      those fragments in order to obtain a packet without the fragment
      header for connection tracking. Currently nf_conntrack_reasm checks
      whether a fragment has either IP6_MF set or an offset != 0, which
      makes it ignore those fragments.
      
      Remove the invalid check and make reassembly handle fragment queues
      containing only a single fragment.
      Reported-and-tested-by: NUlrich Weber <uweber@astaro.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      9e2dcf72
  6. 19 2月, 2010 11 次提交
  7. 18 2月, 2010 1 次提交