File tree Expand file tree Collapse file tree 2 files changed +141
-57
lines changed Expand file tree Collapse file tree 2 files changed +141
-57
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ NetIndex_t networkIndexTable[NETWORK_OFFLINE];
113
113
// Priority of the default network interface
114
114
NetPriority_t networkPriority = NETWORK_OFFLINE; // Index into networkPriorityTable
115
115
116
+ // Interface event handlers set these flags, networkUpdate performs action
117
+ bool networkEventStop[NETWORK_OFFLINE];
118
+
116
119
// The following entries have one bit per interface
117
120
// Each bit represents an index into the networkInterfaceTable
118
121
NetMask_t networkHasInternet_bm; // Track the online networks
@@ -628,6 +631,14 @@ bool networkIsPresent(NetIndex_t index)
628
631
return ((!networkInterfaceTable[index].present ) || *(networkInterfaceTable[index].present ));
629
632
}
630
633
634
+ // ----------------------------------------
635
+ // Interface stop event
636
+ // ----------------------------------------
637
+ void networkInterfaceEventStop (NetIndex_t index)
638
+ {
639
+ networkEventStop[index] = true ;
640
+ }
641
+
631
642
// ----------------------------------------
632
643
// Mark network offline
633
644
// ----------------------------------------
You can’t perform that action at this time.
0 commit comments