Download raw body.
add one more example to ifconfig.8
On Fri, Apr 12, 2024 at 09:13:31PM +0300, Mikhail wrote: > Not very intuitive thing, could have saved me some time in the past. > > Worth a commit? > hi. although it might not seem it initially, i think ifconfig is quite intuitive. it has options, and you can deselect them by prefixing them with "-". so i don;t see any real benefit in adding your proposed change. having said that, although "mediaopt monitor" should work (as you describe), it should be quicker to just use "monitor" and "-monitor" to flip it on and off. i say should, because i haven;t tried it and don;t want to go through the rigmarole of disconnectioning this machine to test it. jmc > diff /usr/src > commit - 7b2c2c925bce647de68993e45d20ddf15e67bae4 > path + /usr/src > blob - bc92b15c567343bf8fc5e4b0d288668f6617f6f8 > file + sbin/ifconfig/ifconfig.8 > --- sbin/ifconfig/ifconfig.8 > +++ sbin/ifconfig/ifconfig.8 > @@ -2450,9 +2450,13 @@ Create the gif1 network interface: > .Pp > .Dl # ifconfig gif1 create > .Pp > -Put the athn0 wireless interface into monitor mode: > +Put the iwx0 wireless interface into monitor mode: > .Pp > -.Dl # ifconfig athn0 mediaopt monitor > +.Dl # ifconfig iwx0 mediaopt monitor > +.Pp > +Return it to normal operation: > +.Pp > +.Dl # ifconfig iwx0 -mediaopt monitor > .Sh DIAGNOSTICS > Messages indicating the specified interface does not exist, the > requested address is unknown, or the user is not privileged and >
add one more example to ifconfig.8