summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2016-03-15 o remove legacy code that defines abs(3) if it isn't availablemmcc
o inline an ugly and potentially risky macro of the form: #define x if (a) b; else o fix a >21 y.o. bug resulting from someone writing: puts("[nothing to parse], stdout"); when they meant: fputs("[nothing to parse]", stdout); ok canacar@
2016-03-14zdump(8) needs to read files so it needs pledge(2) rpath promisemestre
After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
2016-03-13Introduce memory ranges to support VMs with >= 4G RAMStefan Kempf
Kernel bits: - When creating a VM, a list of memory ranges has to be specified, similar to the BIOS memory map. This is necessary for VMs with RAM sizes approaching 4G because we'll need PCI MMIO space in the higher parts of the 32 bit address space. vmctl and vmd bits: - Construct appropriate memory ranges to create a VM with a given RAM size - Construct a corresponding BIOS memory map from the memory ranges and update the boot params page accordingly. - Make sure that all variables that represent guest physical addresses match the address width of the target CPU instead of using uint32_t. - Fix some integer promotion glitches that actually restricted VM RAM size to 2G. This changes the VM create ioctl interface, so update your kernel, vmd, and vmctl. ok mlarkin@
2016-03-13one more un-vax, which i fixed but somehow didn;t commit;Jason McIntyre
Xr fix while here...
2016-03-13Rework an erroneous warning message about 16 bit i8253 PIT counter I/O.Mike Larkin
The unimplemented mode is MSB/LSB (8 bit), not 16 bit mode.
2016-03-09We are done providing support for the vax.Theo de Raadt
lots of agreement.
2016-03-08Set content charset for auto index generated page.Florian Obser
Pointed out and diff by dhill, thanks! Tweaks and same change for error documents by me.
2016-03-08Fix: "authconf.users_file_path" is a char[] but is checked as a char*.YASUOKA Masahiko
Diff from Mathieu Papineau (via Claer)
2016-03-08Remove __cplusplus include guard.YASUOKA Masahiko
Diff from Tiago Silva
2016-03-07http -> https for IETF/IANA URLs in commentsmmcc
2016-03-07fix error in documentation of `ca' keywordGilles Chehade
From: Sevan Janiyan <venture37@geeklan.co.uk>
2016-03-07(type *)0 -> NULLmmcc
ok sha256@
2016-03-05According to RFC7231, section 7.1.1.1, the HTTP date header supportsChristian Weisgerber
no other timezone than the fixed string "GMT". Avoid using strptime %Z, which is nonstandard and can give surprising results on other operating systems. ok deraadt@ giovanni@ bcook@
2016-03-05update to unbound 1.5.8, ok florian@ jung@Stuart Henderson
2014-11-20update to Unbound 1.5.0, ok sthen@Brad Smith
2012-03-26Import Unbound 1.4.16 to work on in-tree (not yet linked to the build).Stuart Henderson
These are the direct sources from NLnet Labs upstream, minus these: compat contrib libunbound/python pythonmod testcode testdata winrc ok deraadt@ jakob@
2016-03-05mirror memset changes to ber.c made in ldapd (these 3 daemonsTheo de Raadt
have subtly modified copies of the file) from rob pierce
2016-03-04Set root device to sd0a, instead of wd0a. Virtio devices show upStefan Kempf
as sd. Original diff from Patrick Wildt. In addition, using the MAKEBOOTDEV macro no longer makes bsd ask for the root disk on VM boot. ok mlarkin@
2016-03-01fatal("malloc") -> fatal(NULL)Jeremie Courreges-Anglas
2016-03-01add LIBCRYPTO to DPADDGleydson Soares
OK deraadt@ mikeb@
2016-03-01Pointless 'return;' in void functionsJeremie Courreges-Anglas
2016-03-01Kill unused #definesJeremie Courreges-Anglas
No functional change
2016-02-29correct return values for -e; from patrik lundinJason McIntyre
ok sthen espie
2016-02-29Merge add/make_prefix() and kill last use of struct in6_prefixreq in userland.Jeremie Courreges-Anglas
ok florian@
2016-02-29Move ckqueue() to common_source/common.cJeremie Courreges-Anglas
Patch from Chris Bennett, ok tb@
2016-02-29init_prefix() is now trivial, merge it with its caller.Jeremie Courreges-Anglas
Suggested by and ok bluhm@
2016-02-28Fix ghastly whitespace. From Chris Bennetttb
2016-02-26sys/signal.h -> signal.hJeremie Courreges-Anglas
2016-02-26Unused variable.Jeremie Courreges-Anglas
2016-02-26GC remnants of the Router Renumbering code; ok florian@Jeremie Courreges-Anglas
2016-02-26Remove #if'0ed code that uses a deprecated ioctl; ok florian@Jeremie Courreges-Anglas
2016-02-26Kill some useless members of struct rainfo; ok florian@Jeremie Courreges-Anglas
2016-02-24satisfy whiny compiler on m88k, noticed by aoyama, solution from gsoaresTheo de Raadt
2016-02-23sanitize environment thru a whitelist. Only pass what's relevant for ftp andMarc Espie
ftp clones. Give "decent" values to your normal environment variables, so that commands won't be surprised. This fixes the spurious warnings from ftp:// url reported by Jiri B. Much feedback from deraadt@, zhuk@, sthen@
2016-02-23I just stumbled on this and noticed that eigrpd requires inet and rpath in ↵Gleydson Soares
pledge(2) call to make "reload", without that, daemon will crash on SIGHUP signal.... as discurssed/OK renato@ commit it now, deraadt@
2016-02-22the default address family for a listener was set too late and wouldGilles Chehade
override the value provided by the user if any. this commit moves the initialization earlier to avoid this. issue reported by and fix ok jturner@
2016-02-21Skip redistributed routes when updating the FIB.Renato Westphal
2016-02-21Move some functions around and rename a few variables and functions.Renato Westphal
The sooner we do these changes the better. This rearrangement will make the code easier to read.
2016-02-21Simplify the handling of the sequence tlv.Renato Westphal
The C standard says: "A pointer to a union object, suitably converted, points to each of its members". This means that we can use the same code to process both v4 and v6 addresses.
2016-02-21Copy structs by assignment instead of memcpy.Renato Westphal
Copying by straight assignment is shorter, easier to read and has a higher level of abstraction. We'll only avoid it when copying from an unaligned source (e.g., network buffers).
2016-02-21Introduce the bad_addr() family of functions.Renato Westphal
These functions improve code reusability as there's no more need to check for all possible "bad" addresses in several different places. Besides that, this patch introduce additional checks in the code.
2016-02-21Extend eigrp_addrcmp() and use it in more places.Renato Westphal
The idea is to remove unnecessary code duplication throughout the code.
2016-02-21Several minor tweaks.Renato Westphal
2016-02-21Add scope id only for unicast IPv6 packets.Renato Westphal
2016-02-21Make eigrpd work against newer IOS routers.Renato Westphal
Different versions of IOS can use a different number of bytes to encode the same IPv6 prefix inside route TLVs. This sucks but we have to deal with it. Instead of calculating the number of bytes based on the value of the prefixlen field, let's get this number by subtracting the size of all other fields from the total size of the TLV. It works because all the other fields have a fixed length. For reference, the EIGRP draft says that length of the prefix field should be obtained according to this function: ((Bit Count - 1) / 8) + 1 But older IOS versions use this for IPv6 (obtained through reverse engineering): ((Bit Count == 128) ? 16 : ((Bit Count / 8) + 1)) Now, the new IOS-XR apparently uses the first formula for both IPv4 and IPv6. With this patch, eigrpd will work against both older and newer versions of IOS.
2016-02-21Filter our RTM_GET messages which are not from us.Renato Westphal
Pulled from ospfd. Original author: claudio@
2016-02-21Make tcpdump show details of beacon country elements in verbose mode only.Stefan Sperling
ok sthen@
2016-02-21bump versionGilles Chehade
2016-02-18sync() requires unistd.hTobias Ulmer
Reported by Sigi Rudzio. Thanks! "go for it" deraadt@
2016-02-18Fix format string of a warning.Alexander Bluhm
from markus@; OK claudio@