summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2018-11-25print more details about the join'd networks we have saved when a user runsPeter Hessler
ifconfig if joinlist OK stsp@
2018-11-25merge the wpa related settings, instead of overriding themPeter Hessler
this fixes setting wpaprotos (e.g. enabling wpa1) OK stsp@
2018-11-20when printing essids return the number of chars we printed, like printfPeter Hessler
OK stsp@
2018-11-16sort previous;Jason McIntyre
2018-11-16vlan uses txprio tooDavid Gwynne
2018-11-16document txprioDavid Gwynne
2018-11-16gre has a few siblings nowDavid Gwynne
2018-11-15scrub opts dont set tos, so remove it from the scrub_opts structDavid Gwynne
ok deraadt@
2018-11-14Warn on deprecated 'vlan' and 'vlandev' option usagekn
These were superseeded by 'vnetid' and 'parent' in june 2017 and will be removed in the future. "Looks right" deraadt, OK benno
2018-11-13Fix previous, which broke ping -T.David Hill
ok dlg@
2018-11-12add support for txprio settings on interfacesDavid Gwynne
display of the currently configured txprio setting is added to the encap line, since it's configuring something that affects the population of an encapsulation header. it also adds a txprio argument to ifconfig so the setting can be changed to "payload", "packet", or a number between 0 and 7. ok claudio@
2018-11-12Restart when SSID change is noted in RTM_80211INFO. Thus ensuringKenneth R Westerback
correct lease is discovered/renewed and lease file is properly updated. Improves co-existance with new 'join' feature. Issues first noted and many tests by anton@. Many suggestions and tweaks from claudio@, stsp@, anton@. ok claudio@ stsp@ anton@ phessler@
2018-11-12Recognize and display new RTM_80211INFO messages.Kenneth R Westerback
Original diff from phessler@. Many suggestions and tweaks from claudio@, stsp@, anton@. ok claudio@ stsp@ anton@ phessler@
2018-11-11make all the setsockopt calls consistent.David Gwynne
do not cast the arguments unnecessarily, and always err() on failure. an earlier diff just tweaking the v6 calls was oked by bluhm@ kn@ deraadt@
2018-11-11Sometimes autoindenting is too helpful.Kenneth R Westerback
2018-11-11As get_hw_address() is called early and unconditionally setsKenneth R Westerback
VALID_LLADDR, there is longer much point to VALID_LLADDR. Nuke it. Just check for lladdr changes when LINK_STATUS_IS_UP().
2018-11-10let -D work on ping6 too.David Gwynne
the manpage was discussed with many
2018-11-10Unbreak `-D macro=value' (r1.686 regression)kn
Zap trailing semicolon introduced with miko's cmdline_symset() leading to unconditional err(3). Zap trailing tab while here.
2018-11-10Use tick_msg(INT64_MAX) when LLADDR changes.Kenneth R Westerback
2018-11-10If tick_msg() is passed a start of INT64_MAX (a.k.a. the end of time)Kenneth R Westerback
stop ticking, end any partially emitted line with a "\n". This will be used when dhclient is restarting itself due to events beyond its control. e.g. new LLADDR
2018-11-10Eliminate single use variables 'tickstop' that confuse ticking andKenneth R Westerback
protocol timing.
2018-11-10Fix vnetid rangekn
0 and 4095 are reserved IDs as per 802.1Q and vlan(4), setting them will fail. OK denis
2018-11-10Stop passing value+3 as the start time for tick_msg(). Just #defineKenneth R Westerback
GRACE_SECONDS 3 inside tick_msg() and use that. Reduces number of pointless variables used to perform the arithmetic, making it more obvious what tick_msg() invocations are doing.
2018-11-10The tick messages ("no link...", "no lease...") have had a hardKenneth R Westerback
stop at ifi->startup_time + config->link_timeout for a while. So just set that at startup and stop passing the fixed value to tick_msg().
2018-11-10add support for setting the traffic class on ipv6 packets.David Gwynne
it reuses the toskeyword handling that ipv4 uses for setting the tos field, which is equiavlent to traffic class. ok florian@ denis@
2018-11-09Abstract a separate function to scan the list provided by getifaddrs()Kenneth R Westerback
for the interface's link information. Makes the code easier to follow. Suggestions and ok kn@
2018-11-07sync cmdline_symset() changes with src/usr.sbin; OK sashan@ claudio@miko
2018-11-06vm.malloc_conf, userland sysctl parts; ok millert@ deraadt@Otto Moerbeek
2018-11-04Kill obsolete comment about the constraints imposed by the need toKenneth R Westerback
bounce the interface link state. We no longer bounce.
2018-11-04No names in function prototypes. Spaces after commas inKenneth R Westerback
function prototypes.
2018-11-03No need to say 'restarting' twice when LLADDR is modified. Log "LLADDRKenneth R Westerback
changed" when it changes and "restarting" when the restart is actually executed.
2018-11-02When reacting to SIGHUP, i.e. trying to restart, ignore incomingKenneth R Westerback
packets, routing socket messages and cancel any pending protocol timeout. Since >1 packet can be received from bpf at a time, don't process any further buffered packets after one triggers a decision to exit or a signal is received.
2018-11-01- odd condition/test in PF lexerAlexandr Nedvedicky
(and other lexers too) This commit rectifies earlier change: in the lex... even inside quotes, a \ followed by space or tab should expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). OK deraadt@, OK millert@
2018-10-15use PFR_RB_NONE consistentlykn
Replace hardcoded 0 and implicit checks with enum as done in all other use cases of `pfra_fback'. No object change. OK sashan
2018-10-15Trust the resolver to give us a sockaddr_in6 sized objectFlorian Obser
if we ask for AF_INET6. OK kn, deraadt
2018-10-15The struct members addr and dstaddr in struct if_laddrreq are structFlorian Obser
sockaddr_storage which is guarantee to be large enough, no need to check ai_addrlen. We can also trust the resolver to give us a sockaddr_in6 sized object if we ask for AF_INET6 OK kn, deraadt
2018-10-14Fix ID commentskn
Left behind in revision 1.225. OK benno
2018-10-14Remove unneeded sockaddr size checkskn
With hints set appropiately and switching on address family, the actual size of the socket address returned by getaddrinfo(3) and it's specified length is guaranteed to match. This is probably a leftover "from ping6 which was much more paranoid" before merging it ping. OK florian
2018-09-30deny non-contiguous netmaskdenis
OK job@
2018-09-29Use atomic operations to update vfc_refcount. Change the field's typeVisa Hankala
to unsigned int. OK deraadt@
2018-09-28add missing unveil(2) of an arbitrary kernel (when -N is used), or _PATH_UNIX byRicardo Mestre
default, with read permissions. report and fix provided by semarie@ OK deraadt@
2018-09-26related to the fsck changes, quotacheck must also determine & setupTheo de Raadt
unveil early on for the root filesystem.
2018-09-24After opening required descriptors, savecore only plays in one directoryTheo de Raadt
so use unveil(2).
2018-09-24Use unveil(2). These programs fit together in various strange ways,Theo de Raadt
so if a problem is encountered with this the whole set needs backout and study.
2018-09-22Harmonize spacing after ellipses in displayed messages.Frederic Cambus
We were using spacing after ellipses in an inconsistent way in the installer. Standardize on using "... " everywhere and take into account the cursor position while we are waiting for the task to complete: the cursor is now always positioned after the last dot, and the space is added when displaying completion confirmation. While there, also take cursor position into account in vfs_shutdown(), and remove the extra leading space before ticks in dhclient. OK deraadt@
2018-09-22Revert previous. It broke /etc/rc.Visa Hankala
Prompted by kn@
2018-09-21Stop displaying vfsconf reference counts so that the vfc_refcount fieldVisa Hankala
can be removed from struct mount. As a result of this diff, arrays vfsname[] and vfsvars[] are indexed by filesystem typenum. This makes the vfs_typenums[] array redundant. OK bluhm@ mpi@
2018-09-21Increase /usr/local max size to 20 GB in default templatesolene
ok krw@ deraadt@ jca@
2018-09-20add missing braces implied by indentationJonathan Gray
ok millert@ mpi@
2018-09-19Update disklabel(8) man page with the new 5G minimum for /usr/obj.Alexander Bluhm
Remove Tn macro to make mandoc lint happy. requested by jmc@