1. 25 5月, 2019 1 次提交
  2. 25 3月, 2019 4 次提交
  3. 09 2月, 2019 2 次提交
    • S
      batman-adv: Trigger genl notification on sysfs config change · 7e6f461e
      Sven Eckelmann 提交于
      The generic netlink code is expected to trigger notification messages when
      configuration might have been changed. But the configuration of batman-adv
      is most of the time still done using sysfs. So the sysfs interface should
      also trigger the corresponding netlink messages via the "config" multicast
      group.
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      7e6f461e
    • S
      batman-adv: Add gateway mesh genl configuration · e2d0d35b
      Sven Eckelmann 提交于
      The mesh/soft-interface can optimize the handling of DHCP packets. Instead
      of flooding them through the whole mesh, it can be forwarded as unicast to
      a specific gateway server. The originator which injects the packets in the
      mesh has to select (based on sel_class thresholds) a responsible gateway
      server. This is done by switching this originator to the gw_mode client.
      The servers announce their forwarding bandwidth (download/upload) when the
      gw_mode server was selected.
      
      The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the
      configuration of this feature using the attributes:
      
      * u8 BATADV_ATTR_GW_MODE (0 == off, 1 == client, 2 == server)
      * u32 BATADV_ATTR_GW_BANDWIDTH_DOWN (in 100 kbit/s steps)
      * u32 BATADV_ATTR_GW_BANDWIDTH_UP (in 100 kbit/s steps)
      * u32 BATADV_ATTR_GW_SEL_CLASS
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      e2d0d35b
  4. 04 1月, 2019 1 次提交
  5. 06 9月, 2018 2 次提交
    • S
      batman-adv: Fix segfault when writing to sysfs elp_interval · a25bab9d
      Sven Eckelmann 提交于
      The per hardif sysfs file "batman_adv/elp_interval" is using the generic
      functions to store/show uint values. The helper __batadv_store_uint_attr
      requires the softif net_device as parameter to print the resulting change
      as info text when the users writes to this file. It uses the helper
      function batadv_info to add it at the same time to the kernel ring buffer
      and to the batman-adv debug log (when CONFIG_BATMAN_ADV_DEBUG is enabled).
      
      The function batadv_info requires as first parameter the batman-adv softif
      net_device. This parameter is then used to find the private buffer which
      contains the debug log for this batman-adv interface. But
      batadv_store_throughput_override used as first argument the slave
      net_device. This slave device doesn't have the batadv_priv private data
      which is access by batadv_info.
      
      Writing to this file with CONFIG_BATMAN_ADV_DEBUG enabled can either lead
      to a segfault or to memory corruption.
      
      Fixes: 0744ff8f ("batman-adv: Add hard_iface specific sysfs wrapper macros for UINT")
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Acked-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      a25bab9d
    • S
      batman-adv: Fix segfault when writing to throughput_override · b9fd14c2
      Sven Eckelmann 提交于
      The per hardif sysfs file "batman_adv/throughput_override" prints the
      resulting change as info text when the users writes to this file. It uses
      the helper function batadv_info to add it at the same time to the kernel
      ring buffer and to the batman-adv debug log (when CONFIG_BATMAN_ADV_DEBUG
      is enabled).
      
      The function batadv_info requires as first parameter the batman-adv softif
      net_device. This parameter is then used to find the private buffer which
      contains the debug log for this batman-adv interface. But
      batadv_store_throughput_override used as first argument the slave
      net_device. This slave device doesn't have the batadv_priv private data
      which is access by batadv_info.
      
      Writing to this file with CONFIG_BATMAN_ADV_DEBUG enabled can either lead
      to a segfault or to memory corruption.
      
      Fixes: 0b5ecc68 ("batman-adv: add throughput override attribute to hard_ifaces")
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Acked-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
      b9fd14c2
  6. 27 2月, 2018 1 次提交
  7. 22 12月, 2017 1 次提交
  8. 16 12月, 2017 5 次提交
  9. 28 9月, 2017 1 次提交
  10. 26 1月, 2017 1 次提交
  11. 19 10月, 2016 1 次提交
  12. 09 8月, 2016 4 次提交
  13. 04 7月, 2016 1 次提交
  14. 30 6月, 2016 4 次提交
  15. 10 5月, 2016 2 次提交
  16. 29 2月, 2016 3 次提交
  17. 23 2月, 2016 2 次提交
  18. 10 2月, 2016 1 次提交
  19. 02 2月, 2016 3 次提交