https://elixir.bootlin.com/linux/v6.12/source/net/core/dev.c#L1066
(name string)
| 73 | |
| 74 | // https://elixir.bootlin.com/linux/v6.12/source/net/core/dev.c#L1066 |
| 75 | func devValidName(name string) bool { |
| 76 | if len(name) == 0 || len(name) > unix.IFNAMSIZ { |
| 77 | return false |
| 78 | } |
| 79 | if name == "." || name == ".." { |
| 80 | return false |
| 81 | } |
| 82 | if strings.ContainsAny(name, "/: ") { |
| 83 | return false |
| 84 | } |
| 85 | return true |
| 86 | } |
| 87 | |
| 88 | func netdevices(config *configs.Config) error { |
| 89 | if len(config.NetDevices) == 0 { |
no outgoing calls
searching dependent graphs…