Feature #1712
Updated by Junxiao Shi over 10 years ago
Provide configuration options to select which NICs `nfd::listNetworkInterfaces` should have exclude control NIC on ONL and Emulab experiment environments, so that multicast faces won't be created on. The configuration option contains a whitelist over that NIC. This feature should be disabled by default, and can be enabled via a blacklist. Each list contains an unordered set of rules. Each rule compile time option `--experiment-environ=onl` or `--experiment-environ=emulab`. Which NIC is written as a string without a type marker, and it can represent: control NIC? * "*": match every ONL: NIC * NIC name (eg. `"eth0"`): exact match equals "control" * MAC address (hex-digits-and-colons notation, eg. `"08:00:27:01:01:01"`): exact match * Emulab: IPv4 subnet (CIDR notation, eg. `"192.0.2.0/28"`): match if any IPv4 address on the NIC falls is under this 155.98.0.0/16 subnet Ethernet multicast and UDP multicast are configured separately. A multicast face can be created on a NIC if the NIC matches any rule in the whitelist, and matches no rule in the blacklist. The default value of this configuration option is: whitelist={"*"} blacklist={}