-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AddressInfo: Improve behavior for e.g. "AddressInfo(foo eth0)".
A device name, such as "eth0", be used to define an address. However, previously, when used in AddressInfo, a device name would define AT MOST ONE type of address -- specifically, the first in the list (ip4, ip4net, eth, ip6, ip6net) that worked. This was weird, especially since most people want device names to act like Ethernet addresses. Now, a device name defines ALL the address types that work; and, in something like "AddressInfo(foo 10.0.0.2 eth0)", eth0's IP address definition is not applied (unless it has no other definition). Problem reported and preliminary patch provided by xuhui122000 gmail com.
- Loading branch information
Showing
1 changed file
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters