0112-netplug-handle-downandout-proper.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. From a81bee0fa00b112a392ba90866e4ab2e3052c12c Mon Sep 17 00:00:00 2001
  2. From: Reinhard Russinger <reinhard@russinger.at>
  3. Date: Tue, 20 Apr 2021 05:55:52 +0000
  4. Subject: [PATCH] netplug handle downandout proper
  5. ---
  6. package/netplug/0004-handle-st-downandout-proper.patch | 12 ++++++++++++
  7. 1 file changed, 12 insertions(+)
  8. create mode 100644 package/netplug/0004-handle-st-downandout-proper.patch
  9. diff --git a/package/netplug/0004-handle-st-downandout-proper.patch b/package/netplug/0004-handle-st-downandout-proper.patch
  10. new file mode 100644
  11. index 0000000..420fc15
  12. --- /dev/null
  13. +++ b/package/netplug/0004-handle-st-downandout-proper.patch
  14. @@ -0,0 +1,12 @@
  15. +diff --git a/if_info.c b/if_info.c
  16. +index ea6c333..ca5e4d0 100644
  17. +--- a/if_info.c
  18. ++++ b/if_info.c
  19. +@@ -186,6 +186,7 @@ ifsm_flagchange(struct if_info *info, unsigned int newflags)
  20. + if (newflags & IFF_UP) {
  21. + switch(info->state) {
  22. + case ST_DOWN:
  23. ++ case ST_DOWNANDOUT:
  24. + info->state = ST_INACTIVE;
  25. + break;
  26. +
  27. --
  28. 2.7.4