Commit 7766dd2
committed
net: Replace ifname check with IFF_LOOPBACK in Discover
Checking the interface name is kind of brittle. In the age of network
namespaces and containers, there is no reason a loopback interface can't
be called differently.
Check for the `IFF_LOOPBACK` flag to detect loopback interface instead.1 parent 3aaf732 commit 7766dd2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3077 | 3077 | | |
3078 | 3078 | | |
3079 | 3079 | | |
3080 | | - | |
3081 | | - | |
| 3080 | + | |
3082 | 3081 | | |
3083 | 3082 | | |
3084 | 3083 | | |
| |||
0 commit comments