summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2017-06-28remove a contradictory sentence (see dhcp-options(5)) which claimsJason McIntyre
hostnames which resolve to muliple ip addresses are all forwarded to the client; issue reported by edgar pettijohn; discussed with dhcpd's de facto maintainer, kenneth westerback;
2017-06-28whitespace fixes, from Rob Pierce and meSebastian Benoit
2017-06-28usage() gets __dead attribute, from Rob PierceSebastian Benoit
2017-06-27Hoist some privileged code in preparation for future work.Sebastian Benoit
Based on an approach in vmd with mc146818/ns8250. diff by Rob Pierce <rob -AT- 2keys -DOT- ca> ok deraadt@
2017-06-27move a global into local context; from rob pierceTheo de Raadt
2017-06-26don't print the WELLKNOWN string for unknown well-known communitiesPeter Hessler
from Job Snijders ok phessler@ benno@
2017-06-26let admins set an unknown well-known communityPeter Hessler
from Job Snijders ok phessler@ benno@
2017-06-26add support for the "graceful shutdown" well-known community as describedPeter Hessler
in draft-ietf-grow-bgp-gshut from Job Snijders ok phessler@ benno@
2017-06-26allow setting localpref to 0Peter Hessler
from Job Snijders ok phessler@ benno@
2017-06-22Close file descriptor on an exit path.Frederic Cambus
OK gsoares@
2017-06-22Generate the newbsd: and install-update: targets here, rather thanTheo de Raadt
in the source Makefile.* files. ok tb rpe mlarkin
2017-06-20trim more error messagesMarc Espie
- if we can't retrieve the package, of course signify will say it's truncated so that's redundant. - if you give a full package name, can_be_empty should make directories vanish. (landry just discovered 6.1/packages-stable by accident, make it vanish again so he can't find it back... :D )
2017-06-20Revert a previous commit that increased the virtio queue size since itMike Larkin
appears to be causing some instability.
2017-06-19Import route priority support from ospfd to ospf6d.friehm
Also remove the RTF_UP flag from hdr.rtm_flags in send_rtmsg() since ospfd and bgpd don't set the flag. OK bluhm@ claudio@
2017-06-19delete accidental blank lineTheo de Raadt
2017-06-19fix descriptor leak in the smtp congestion mechanismGilles Chehade
diff from Henri Kemppainen; ok gilles@ eric@
2017-06-19port the RBT code to userland by making it part of libc.David Gwynne
src/lib/libc/gen/tree.c is a copy of src/sys/kern/subr_tree.c, but with annotations for symbol visibility. changes to one should be reflected in the other. the malloc debug code that uses RB code is ported to RBT. because libc provides the RBT code, procmap doesn't have to reach into the kernel and build subr_tree.c itself now. mild enthusiasm from many ok guenther@
2017-06-18update log.c in ifstated to the same used in bgpd etc.Sebastian Benoit
Done by Rob Pierce <rob AT 2keys DOT ca>, thanks
2017-06-17Since WSFONT_NAME_SIZE was switched from 16 to 32, account for theFrederic Cambus
change in wsfontload as well: tweak spacing and printf format string. OK deraadt@, mpi@
2017-06-16mark files as BUILDFIRST, or write explicit dependencies, so that mostMarc Espie
programs will build even without a make depend first. okay tb@ millert@
2017-06-16PCI Express extendeded capability 0x1c is LN Requester according to theJonathan Gray
PCI-SIG Lightweight Notification (LN) Protocol ECN document. From Masanobu SAITOH.
2017-06-15We do not support iso7 nor pcvt encoding, so remove macro definitionsFrederic Cambus
and commented entries. OK mlarkin@
2017-06-14Don't support loading appletalk addresses from /etc/appletalk.names.Michal Mazurek
OK deraadt@
2017-06-14Remove main() prototype and unused envp argument.anton
ok deraadt@ martijn@
2017-06-13Initialize the length parameter for radius_get_vs_raw_attr() sinceYASUOKA Masahiko
it's read/write. diff from IIJ.
2017-06-12Use unlinkat() when removing the contents of a directory so we don'tTodd C. Miller
need to construct paths. OK deraadt@
2017-06-12destroy lint remnants.Marc Espie
okay millert@ deraadt@
2017-06-12device path should be PATH_MAX. Any NAME_MAX without +1 is suspectTheo de Raadt
to begin with anyways.
2017-06-11missing .Fn markup for main(); found with mandoc -TlintIngo Schwarze
2017-06-10Fix broken escaping: "\." is almost never what you want; found withIngo Schwarze
mandoc -Tlint. While here, make macro usage more consistent.
2017-06-10Don't describe AppleTalk's output format and bugs.Michal Mazurek
OK claudio@ jmc@ doesn't object
2017-06-09mention that the config file is created at first run, since it doesn'tTed Unangst
exist on a default install (thus making it impossible to read and study)
2017-06-09If we receive a router solicitation with a source link-layer addressFlorian Obser
option respond with a unicast advertisement. This improves air time on wireless networks and reduces energy consumption on battery powered devices. For details see RFC 7772 "Reducing Energy Consumption of Router Advertisements" aka BCP 202. Input & OK bluhm@
2017-06-09Drop uneeded return from rollback_patch().Antoine Jacoutot
2017-06-09/etc/mtree/BSD.x11.dist is part of base, not X; so check forAntoine Jacoutot
/var/sysmerge/xetc.tgz to detect whether we have the x sets installed.
2017-06-08update permissions info to match recent changesTodd C. Miller
2017-06-08Add logging for when we find a non-file in the at spool that wasTodd C. Miller
a file when we scanned the at spool earlier.
2017-06-08Invoke openssl with -passin file rather than -key in ca_revoke().Jonathan Gray
From Andrei-Marius Radu via sthen@
2017-06-07In cron(8), require that crontab and at files in the spool be ownedTodd C. Miller
by group crontab. The at(1) command now creates files owned by group crontab, the crontab(1) command already does this. Files in the crontab spool with parse errors are now ignored; crontab(1) will not install a crontab file with parse errors. The system crontab file (/etc/crontab) is not affected by this. The required permissions on crontab files have been tightened. Files in the cron spool must be mode 0600 (as created by crontab(1)). The system crontab file may be readable/writable by the owner, readable by group and readable by other. The system crontab must be readable by the owner.
2017-06-07vmctl: change default "vmctl console" (cu) baud rate to 115200. NotMike Larkin
strictly needed but matches the previous baudrate diff committed earlier to vmd. ok deraadt, phessler
2017-06-07When running at jobs, open the at spool and use the directory fdTodd C. Miller
with openat(), fstatat() and unlinkat(). This is similar to how we run cron jobs and eliminates the need for run_job() to find the basename of the at file. OK deraadt@
2017-06-07vmd: Implement simulated baudrate support in the ns8250 module. TheMike Larkin
previous version was allowing an output rate that is "too fast", and linux guests would give up after 512 characters TXed ("too much work for irq4"). This diff calculates the approximate rate we can sustain at the current programmed baud rate and limits the output to that rate by inserting a HZ delay after a specified number of characters have been transmitted. This fixes the linux guest console issue. Note that the console now outputs at more or less the selected baud rate, instead of nearly instantaneously as before - if you selected 9600 in your guest VMs before, you might want to change that to 115200 now for a better console experience. krw@ "seems like a good idea to me"
2017-06-07vmd: properly advertise 640k base memory, not 636k. That was a holdoverMike Larkin
from before we had seabios support (to fake a hole where the EBDA would be), and seabios always assumes 640k low memory is available. Fixes a problem where FreeDOS guests whose seabios placed the virtio ring too close to 640k would crash vmd. tested on a variety of guest OS, with and without seabios. no regressions seen.
2017-06-07reword "listen on socket" somewhat; ok gillesJason McIntyre
2017-06-05Set the group on cron's Unix domain socket _before_ making itTodd C. Miller
group-writable, not after. Pointed out by Solar Designer.
2017-06-04Malloc the superblock buffer to make sure that it is properly aligned.Christian Weisgerber
On i386, clang puts the char array at an odd address in .bss. ok deraadt@
2017-06-03config -e mode should match our other policies which ensure og-rwx /bsd.Theo de Raadt
pointed out by brynet
2017-06-03Move slaacd to /sbinFlorian Obser
jca points out that all the other interface configuration tools live there (like ifconfig or dhclient). Furthermore it starts so early in the boot process that /usr might not be mounted yet if it's a nfs filesystem. sthen and deraadt agree
2017-06-01Revert 1.16 ("add a workaround for the rebound portjacking hijinks"),Stuart Henderson
it breaks at least nslookup, host, dig +tcp.
2017-06-01Return time_uptime as value for when pf was enabled instead ofPatrick Wildt
time_second. Since time_second changes depending on the wall- clock time, time_second is not a reliable source for the status. We can even end up with a negative time delta. Thus, use the monotonically growing time_uptime and export it to userland. ok bluhm@ mikeb@