On Wed, Sep 12, 2012 at 07:29:19PM +0200, Andrea Bonomi wrote: > Hi, > good idea, much better without the hardcoded interface name. > I think that the --interface option is useful for the machine with a dynamic IP address. > (in my experience, the getaddrinfo based on the hostname returns the loopback address) > > Another idea will be to add the interface name after the \4 or \6, something like: > \4eth0 (or similar…) Excellent idea. It also means that --interface is unnecessary and more than one interface IP maybe be printed by the issue file. > to get the IPv4 address of the interface eth0 > So the user can specify the interface name directly in the issue file. > What do you think? Implemented, merged into master branch. For example: lo = \4{lo} em1 = \4{em1} (IPv6 \6{em1}) virbr0 = \4{virbr0} The {..} is optional argument, if not given, host IP is printed. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html