On Tue, Feb 20, 2018 at 4:48 AM, Reyk Floeter <r...@openbsd.org> wrote: > >> Am 20.02.2018 um 11:15 schrieb Klemens Nanni <k...@openbsd.org>: >> >>> On Mon, Feb 19, 2018 at 05:09:58PM -0800, Ayaka Koshibe wrote: >>> This diff would allow saying 'ifconfig foo -rdomain' instead of 'ifconfig >>> foo rdomain 0'. >> I can see where you're coming from but this breaks semantics: `-option' >> clears an optional parameter or deconfigures functionality whereas >> `rdomain' is mandatory (defaulting to 0), every interface is attached >> to exactly one routing domain all the time. >> > > I would rather say that -option resets it to the default non-specific option. > For example, -mode doesn’t remove all wireless modes.
This was also my interpretation of -option -- a way to reset to the default, which happens to be a value of 0 for this case. > I think -rdomain is a good addition and the diff looks fine. > > Reyk > >