1. 14 5月, 2012 3 次提交
    • M
    • A
      batman-adv: improve unicast packet (re)routing · 3275e7cc
      Antonio Quartulli 提交于
      In case of a client X roaming from a generic node A to another node B, it is
      possible that a third node C gets A's OGM but not B's. At this point in time, if
      C wants to send data to X it will send a unicast packet destined to A. The
      packet header will contain A's last ttvn (C got A's OGM and so it knows it).
      
      The packet will travel towards A without being intercepted because the ttvn
      contained in its header is the newest for A.
      
      Once A will receive the packet, A's state will not report to be in a "roaming
      phase" (because, after a roaming, once A sends out its OGM, all the changes are
      committed and the node is considered not to be in the roaming state anymore)
      and it will match the ttvn carried by the packet. Therefore there is no reason
      for A to try to alter the packet's route, thus dropping the packet because the
      destination client is not there anymore.
      
      However, C is well aware that it's routing information towards the client X is
      outdated as it received an OGM from A saying that the client roamed away.
      Thanks to this detail, this patch introduces a small change in behaviour: as
      long as C is in the state of not knowing the new location of client X it will
      forward the traffic to its last known location using ttvn-1 of the destination.
      By using an older ttvn node A will be forced to re-route the packet.
      Intermediate nodes are also allowed to update the packet's destination as long
      as they have the information about the client's new location.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      3275e7cc
    • A
      batman-adv: avoid skb_linearise() if not needed · 8710e261
      Antonio Quartulli 提交于
      Whenever we want to access headers only, we do not need to linearise the whole
      packet. Instead we can use pskb_may_pull()
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      8710e261
  2. 13 5月, 2012 21 次提交
  3. 12 5月, 2012 3 次提交
    • E
      net/ipv6/af_inet6.c: checkpatch cleanup · 647c0c70
      Eldad Zack 提交于
      af_inet6.c:80: ERROR: do not initialise statics to 0 or NULL
      af_inet6.c:259: ERROR: spaces required around that '=' (ctx:VxV)
      af_inet6.c:394: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:412: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:422: ERROR: do not use assignment in if condition
      af_inet6.c:425: ERROR: do not use assignment in if condition
      af_inet6.c:433: ERROR: do not use assignment in if condition
      af_inet6.c:437: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:446: ERROR: spaces required around that '=' (ctx:VxV)
      af_inet6.c:478: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:485: ERROR: that open brace { should be on the previous line
      af_inet6.c:485: ERROR: space required before the open parenthesis '('
      af_inet6.c:513: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:629: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:647: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:687: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:709: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
      af_inet6.c:1073: ERROR: space required before the open parenthesis '('
      Signed-off-by: NEldad Zack <eldad@fogrefinery.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      647c0c70
    • B
      net: of/phy: fix build error when phylib is built as a module · b943fbb0
      Bjørn Mork 提交于
      CONFIG_OF_MDIO is tristate and will be m if PHYLIB is m.  Use
      IS_ENABLED macro to prevent build error:
      
       ERROR: "of_mdio_find_bus" [drivers/net/phy/mdio-mux.ko] undefined!
      Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc: David Daney <david.daney@cavium.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Acked-by: NDavid Daney <david.daney@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b943fbb0
    • D
      Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge · 16c788de
      David S. Miller 提交于
      Included changes:
      
      * fix a little bug in the DHCP packet snooping introduced so far
      * minor fixes and cleanups
      * minor routing protocol API cleanups
      * add a new contributor name to translation-table.{c,h}
      * update copyright years in file headers
      * minor improvement for the routing algorithm
      16c788de
  4. 11 5月, 2012 13 次提交