Skip to content
  1. May 05, 2018
  2. May 02, 2018
  3. Apr 05, 2018
  4. Mar 20, 2018
  5. Jan 30, 2018
  6. Jan 20, 2018
  7. Jan 14, 2018
  8. Jan 11, 2018
  9. Jan 10, 2018
  10. Jan 07, 2018
  11. Jan 03, 2018
  12. Dec 28, 2017
  13. Nov 11, 2017
  14. Oct 20, 2017
  15. Apr 15, 2017
  16. Feb 23, 2017
  17. Feb 11, 2017
  18. Jan 28, 2017
    • Cody R. Brown's avatar
      luci-app-upnp: Adding and displaying "Description" to upnp data · dd0b5cfd
      Cody R. Brown authored
      
      
      Getting the Description data from upnp_lease_file. This data often displays the Application Name which made the upnp call. If the upnp_lease_file doesn't exist, it'll just return a blank entry under "Description".
      
      upnp_lease_file order example: TCP:33333:192.168.0.100:33333:1485578298:NAT-PMP 33333 tcp
      As an optimisation, since the upnp_lease_file has only active leases and is ordered by epoch timestamp (5th column above), and since "iptables --line-numbers -t nat -xnvL MINIUPNPD" has active leases and is also displayed in order of rule applied (time). This means the order of these two sources will be the same. This prevents us from "searching" the upnp_lease_file for every rule, and instead for the n'th rule, look at the n'th upnp_lease_file line. As a result we only need to read in one line at a time. For a safety, the upnp_lease_file description is always checked to see if it matches the rule it's being assigned to. If it doesn't match it'll return blank. This means we'll never put an incorrect description to a upnp rule, even if someone messes with the upnp_lease_file.
      This is the case on my system, more testing may be necessary? If this is false we'll need to loop over the upnp_lease_file for every rule, or read in the whole upnp_lease_file once for the iptables loop.
      
      The Description column is added to the upnp_status, and the "Delete Redirect" renamed to "Delete" to make more horizontal space in the table.
      
      Signed-off-by: default avatarCody R. Brown <dev@codybrown.ca>
      dd0b5cfd
  19. Jan 03, 2017
  20. Dec 24, 2016
  21. Dec 20, 2015
  22. Dec 18, 2015
  23. Oct 28, 2015
  24. Oct 21, 2015
  25. Oct 07, 2015
  26. Jun 22, 2015
    • kdarbyshirebryant's avatar
      Delete luci-upnp · 387a06bb
      kdarbyshirebryant authored
      Stop sys upgrade automatically disabling miniupnpd on first boot after upgrade.
      I spent a lot of time tracking this behaviour down which only occurs if you have luci-app-upnp installed.
      387a06bb
  27. Feb 28, 2015
  28. Jan 16, 2015
  29. Jan 08, 2015