Skip to contentSkip to conversation

Ignore docker network interfaces

PATCH New Theodore Ts'o 1 participant 1 message Feb 12, 2018

lore
Share & tools
lore

Theodore Ts'o

author
#0 lore raw

PATCH 1/1 Ignore docker network interfaces

Signed-off-by Theodore Ts'o <tytso(a)mit.edu>
---
 src/devices/network.cpp | 2 ++
 1 file changed, 2 insertions(+)
src/devices/network.cpp +2 -0
index 8087b7f..45396ee 100644
@@ -351,6 +351,8 @@ static void netdev_callback(const char *d_name)
 	std::string f_name("/sys/class/net/");
 	if (strcmp(d_name, "lo") == 0)
 		return;
+	if (strncmp(d_name, "docker", 6) == 0)
+		return;
 
 	f_name.append(d_name);
 
Signature · 1 line
2.16.1.72.g5be1f00a9a