1. 05 May, 2020 1 commit
    • Rahul Thakur's avatar
      netifd: update vlanconf for tvid · 67652d34
      Rahul Thakur authored
      Option to support vlan translation added to network uci file and
      hence netifd updated. In case its a broadcom chip, that is, if
      vlanconf is detected, then use this option to configure vlan
      translation.
      
      Test via autotest and also manually (to verify the p-bit is not
      overwritten). Rest of the scenarios work as expected wih the
      existing conf so no regression
      67652d34
  2. 21 Mar, 2020 12 commits
  3. 05 Aug, 2019 1 commit
  4. 22 Jul, 2019 1 commit
  5. 14 Jun, 2019 1 commit
  6. 13 Jun, 2019 2 commits
  7. 08 Jun, 2019 1 commit
    • André Valentin's avatar
      netifd: add xfrm tunnel interface support · 8c6358b5
      André Valentin authored
      This adds support for xfrm interfaces. These interfaces can be used since
      linux 4.19 for IPsec traffic, like VTI interface.
      XFRM interfaces are less complicated compared to VTI because they need no IP
      tunnel endpoints.
      8c6358b5
  8. 27 May, 2019 1 commit
    • Hans Dedecker's avatar
      iprule: fix missing ip rules after a reload (FS#2296) · beb810db
      Hans Dedecker authored
      Since commit 5cf79759 (iprule: rework
      interface based rules to handle dynamic interfaces) the rule
      comparison is broken and doesn't correctly recognize matching rules.
      This in turn break the reloading as adding the "new" rule fails
      because it already exists and it then delete the "old" rule.
      
      The comparison is broken because it now include fields that are not
      defining the rule itself, as well as some pointer to malloced strings.
      To fix this we move back the offending fields in the iprule struct
      before the 'flags' field and match the malloced strings separately.
      Signed-off-by: default avatarAlban Bedel <albeu@free.fr>
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      beb810db
  9. 17 May, 2019 1 commit
    • Hans Dedecker's avatar
      interface-ip: use ptp address as well to find local address target · 22e8e589
      Hans Dedecker authored
      In case of tunnel over PPP(such as gretap over l2tp): tunnel interface
      use PPP's peer address as remote address, netifd script will call
      proto_add_host_dependency function, then netifd will search which device
      can reach to the remote address. Before the patch, netifd don't consider
      the PPP interface can reach to the remote address, so netifd will select
      default route to remote address, it will lead to remote address unreachable.
      
      Based on a patch by xiaofan <xfan1024@live.com>
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      22e8e589
  10. 16 May, 2019 1 commit
  11. 08 May, 2019 1 commit
  12. 07 May, 2019 1 commit
  13. 15 Apr, 2019 2 commits
  14. 12 Apr, 2019 1 commit
  15. 01 Apr, 2019 2 commits
    • Hans Dedecker's avatar
      proto-shell: return error in case setup fails · 361b3e40
      Hans Dedecker authored
      In case PROTO_CMD_SETUP cannot be handled due to an invalid state; return
      -1 so the calling functions are aware the PROTO_CMD_SETUP has failed.
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      361b3e40
    • Hans dedecker's avatar
      interface: set interface in TEARDOWN state when checking link state · a97297d8
      Hans dedecker authored
      When launching PROTO_CMD_TEARDOWN in interface_check_state() the interface
      was set in IFS_DOWN state. In case an interface is now brought into IFS_SETUP
      state in __interface_set_up() it will launch PROTO_CMD_SETUP trying to
      bring the proto shell handler in S_SETUP state which will fail as the proto
      shell handler is still in the S_TEARDOWN state.
      
      Fix this by setting the interface in IFS_TEARDOWN state when the PROTO_CMD_TEARDOWN
      event is launched which will prevent the interface being brought into IFS_SETUP state
      as long as it's not in the IFS_DOWN state.
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      a97297d8
  16. 21 Mar, 2019 2 commits
  17. 13 Mar, 2019 1 commit
  18. 31 Jan, 2019 1 commit
  19. 17 Dec, 2018 1 commit
  20. 16 Dec, 2018 1 commit
  21. 13 Dec, 2018 1 commit
    • Hans Dedecker's avatar
      system-linux: get rid of SIOCSDEVPRIVATE · 1ac1c78b
      Hans Dedecker authored
      Use sysfs to configure the bridge settings stp/forward_delay/priority
      ageing_time/hello_time and max_age as the SIOCDEVPRIVATE bridge ioctl
      has no compat ioctl support which makes it impossible to set the above
      mentioned bridge paramaters if the kernel is compiled in 64 bit mode
      and user_space in 32 bit mode.
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      1ac1c78b
  22. 26 Nov, 2018 4 commits