Age | Commit message (Collapse) | Author |
|
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@
|
|
After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them
|
|
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@
|
|
Xr fix while here...
|
|
The unimplemented mode is MSB/LSB (8 bit), not 16 bit mode.
|
|
lots of agreement.
|
|
Pointed out and diff by dhill, thanks!
Tweaks and same change for error documents by me.
|
|
Diff from Mathieu Papineau (via Claer)
|
|
Diff from Tiago Silva
|
|
|
|
From: Sevan Janiyan <venture37@geeklan.co.uk>
|
|
ok sha256@
|
|
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@
|
|
|
|
|
|
These are the direct sources from NLnet Labs upstream, minus these:
compat contrib libunbound/python pythonmod testcode testdata winrc
ok deraadt@ jakob@
|
|
have subtly modified copies of the file)
from rob pierce
|
|
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@
|
|
|
|
OK deraadt@ mikeb@
|
|
|
|
No functional change
|
|
ok sthen espie
|
|
ok florian@
|
|
Patch from Chris Bennett, ok tb@
|
|
Suggested by and ok bluhm@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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@
|
|
pledge(2) call to make "reload",
without that, daemon will crash on SIGHUP signal....
as discurssed/OK renato@
commit it now, deraadt@
|
|
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@
|
|
|
|
The sooner we do these changes the better. This rearrangement will make
the code easier to read.
|
|
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.
|
|
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).
|
|
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.
|
|
The idea is to remove unnecessary code duplication throughout the code.
|
|
|
|
|
|
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.
|
|
Pulled from ospfd. Original author: claudio@
|
|
ok sthen@
|
|
|
|
Reported by Sigi Rudzio. Thanks!
"go for it" deraadt@
|
|
from markus@; OK claudio@
|