1. 11 Aug, 2020 1 commit
  2. 06 Aug, 2020 1 commit
  3. 05 Aug, 2020 3 commits
  4. 31 Jul, 2020 2 commits
  5. 13 Jul, 2020 2 commits
  6. 11 Jul, 2020 1 commit
  7. 10 Jul, 2020 1 commit
  8. 26 Jun, 2020 1 commit
  9. 25 Jun, 2020 1 commit
  10. 19 Jun, 2020 1 commit
  11. 15 Jun, 2020 1 commit
  12. 14 Jun, 2020 1 commit
    • Daniel Danzberger's avatar
      Add get_safe variant of object_names · 46e94756
      Daniel Danzberger authored
      This commit groups and renames all get_safe variant calls
      
       - get_safe_attributes
       - get_safe_values
       - get_safe_names
      
      The get_safe_* calls provide a safe way of quering multiple path
      strings by using blobmsg arrays.
      
      This prevents segfaults and potential remote code injection caused by
      calls to filter_results() with malformed path strings as described in
      commit 93155dcdSigned-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      46e94756
  13. 13 Jun, 2020 2 commits
  14. 12 Jun, 2020 1 commit
    • Daniel Danzberger's avatar
      Add get_attributes call · 86d72e82
      Daniel Danzberger authored
      This call querires the attributes (notifications only for now) from
      libbbf
      
      Example:
      
      ubus call usp.raw get_attributes '{"paths":["Device.IP.Interface.3.Status", "Device.Notex"]}'
      {
      	"parameters": [
      		{
      			"parameter": "Device.IP.Interface.3.Status",
      			"value": "0"
      		},
      		{
      			"path": "Device.Notex",
      			"fault": 9005
      		}
      	]
      }
      Signed-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      86d72e82
  15. 10 Jun, 2020 1 commit
  16. 09 Jun, 2020 2 commits
  17. 08 Jun, 2020 1 commit
  18. 06 Jun, 2020 1 commit
  19. 05 Jun, 2020 4 commits
  20. 21 May, 2020 1 commit
  21. 19 May, 2020 4 commits
  22. 18 May, 2020 1 commit
  23. 14 May, 2020 1 commit
  24. 08 May, 2020 1 commit
    • Vivek Kumar Dutta's avatar
      uspd: Multiple fixes with test support · 5d1c78fd
      Vivek Kumar Dutta authored
      - Fixes from ci_cd branch Squashed in one, it include below fixes:
        -- Readme: Updated readme
        -- Updated api specification and tests
        -- Remove redundant code
        -- Fix '==' operation for boolean type
        -- Fix '!=' operation
        -- Fix output of del_object method
        -- Improved comparator algorithm for non integer values
        -- Added unit test cases
        -- Added functional api test cases
        -- Fixed static analysis errors
        -- Fixed cpd errors
      5d1c78fd
  25. 27 Apr, 2020 1 commit
  26. 20 Apr, 2020 1 commit
  27. 09 Apr, 2020 1 commit
  28. 30 Mar, 2020 1 commit
    • Daniel Danzberger's avatar
      delete_object: fix memleak and endless list growing · 4328f3ae
      Daniel Danzberger authored
      When delete_object is called, the list of path objects created is not
      beeing freed after calling del_object.
      This causes an endlessly growing of the list and repeating calls to
      del_object with old objects.
      
      Example:
      ---
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": true
      }
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005
      }
      root@lappi:[ucwmp]:# ubus call usp.raw del_object '{"path": "Device.DHCPv4.Server.Pool.6"}'
      {
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005,
      	"status": false,
      	"fault": 9005
      }
      ---
      Signed-off-by: Daniel Danzberger's avatarDaniel Danzberger <daniel@dd-wrt.com>
      4328f3ae