tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: interface name optional in wake(8)



Am 04.01.2010 um 22:09 schrieb Matthew Mondor:

> On Mon, 4 Jan 2010 09:47:01 +0100
> Marc Balmer <marc%msys.ch@localhost> wrote:
> 
>> The goal is that in the common case where a machine has only one NIC, the 
>> interface specifier on the command line can be left out.
> 
> Personally I wouldn't mind at all having to always specify the
> interface (or having to set an environment variable or create a
> configuration file to specify the default interface to use), especially
> that most of the systems I manage have more than one interface.
> This is similar to how disk/filesystem related commands require their
> device parameter.
> 
> That said, if allowing not to specify an interface and there are
> multiple available ones, would it make sense to exit with an error
> instead of sending the packet over a random interface?  Unless a flag
> is given to use all interfaces, of course.

That is exactly the beahviour we have now (after my last commit).  The 
interface specification can only be left out if there is only one available 
interface, else it has to be specified.

- mb

> 
> Thanks,
> -- 
> Matt



Home | Main Index | Thread Index | Old Index