cgroup-network now also prints the interface name as it is found inside the container
Costa Tsaousis (ktsaou) committed
Jul 30, 2017 at 20:36 UTC
76fd2e760b58990a53a1e4c2e4fdbb86f1dc8bdd
1 file changed
+1
-1
src/cgroup-network.c
+1
-1
@@ -286,7 +286,7 @@ int main(int argc, char **argv) {
286
if(iface_is_eligible(h)) {
287
for (c = cgroup; c; c = c->next) {
288
if(iface_is_eligible(c) && h->ifindex == c->iflink && h->iflink == c->ifindex) {
289
- printf("%s\n", h->device);
289
+ printf("%s %s\n", h->device, c->device);
290
found++;
291
}
292
}