Age | Commit message (Collapse) | Author |
|
once inside MBR_print().
|
|
DISK_writesector() and live in disk.[ch].
|
|
|
|
and writesector(). Move them to misc.[ch]. Soon to be used for more
than MBR reading/writing.
No intentional functional change.
|
|
non-amd64 boxen.
|
|
would complicate install media. Will be used by GPT support.
|
|
|
|
|
|
to obtain GPT partition names. Tweak ask_pid() to take low/high
bounds so it can handle 1-ff (MBR) or 1000-ffff (GPT) partition
pids as required. A pid of '0' is still special and disables the
partition.
No visible or intentional functional change.
|
|
restricted to SHA1 for RSA signatures. ok mikeb@
|
|
will eventually be able to use.
|
|
to 64 bits, adjusting printf()'s, etc. as required. Preparing for
GPT partitions. Add 't' size unit. No other intentional functional
change.
|
|
ok markus, hshoexer
|
|
they do "interesting" things with APIs i want to change, and i can't
find any evidence anyone uses them anymore. instead of burning time
on changes i cant test, ill take a chance that noone will miss them.
no objections from anyone
ok mpi@ deraadt@ henning@ sthen@
|
|
> obfuscate the monotonic clock values we put on the wire by offsetting
> them with a random value.
|
|
> bump the size of the time types on the wire to 64bit, and use nsec
> instead of usec so its easier to translate to/from timespecs instead
> of timevals.
this raises the size of the default ping payload from 16 to 24bytes,
but claudio@ thinks we'll be fine with this.
|
|
them with a random value.
picking between ^ and +- as the operator for the obfuscation has
turned out to be a great bikeshed. im picking + and - cos it prevents
observers seeing high bits roll over which can indicate the magnitude
of the current clock value.
discussed with many.
|
|
|
|
to get the location. disk.size is a 32 bit value for MBR use. Use
DL_GETDSIZE(&dl) to get the real location even on 'big' disks.
|
|
|
|
when adding route entries with the -link option.
This prevent the ARP layer to take the name of your interface for an
Ethernet address. If you still want to add stupid content to your
routing table, please write your own tool.
Thanks to Henk Jan Agteresch for reporting the original issue and
testing this diff.
ok mikeb@, deraadt@, benno@, claudio@
|
|
ok deraadt@
|
|
make the initial mbr that tt pointed at a global that can be directly
accessed in the couple of places it is needed.
Fewer parameters, less confusion, no functional change.
|
|
|
|
Just use the offset recorded/parsed in the struct mbr being used.
Can still traverse/edit extended MBRs so offset really wasn't needed.
Fewer parameters, less confusion, no functional change.
|
|
min, otherwise the constraint cannot be satisfied; ok deraadt@ okan@
|
|
There is only one disk being worked on, so just make it a global.
Fewer parameters, less confusion, no functional change.
|
|
code a bit.
ok deraadt@ igor@ (with suggested tweak that is coming)
|
|
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@
|
|
not checked to void. Use continue inside a do loop instead of a
goto to the top. Move a #define/#undef more local to use. Eliminate
some lint.
General cleanup of things noticed preparing the big churn.
No intentional functional change.
|
|
Diff from chl@. Committing now so it doesn't get lost in upcoming
megachurn.
|
|
With the permission of Toby.
ok deraadt@
|
|
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;
|
|
ok ingo
|
|
1.245 of sys/netinet/ip_carp.c), carpdev is a required argument now.
ok florian
|
|
enough.
OK deraadt@
|
|
|
|
instead of usec so its easier to translate to/from timespecs instead
of timevals.
ok deraadt@ florian@
|
|
> use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the
> interval between sending a ping and getting a reply for it.
>
> this makes it resistant against local wall clock changes, which can
> skew the intervals reported or make them go negative.
requested by deraadt@ florian@
|
|
interval between sending a ping and getting a reply for it.
this makes it resistant against local wall clock changes, which can
skew the intervals reported or make them go negative.
ok deraadt@ florian@
makes sense to lots of others
|
|
Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.
No output changes, except for two instances where the incorrect escape
was used in the first place.
tweaks + ok schwarze@
|
|
|
|
Aq is not the same as <> in non-ASCII situations, so this caused
incorrect output in some places. And it provided no semantics besides.
ok schwarze@
|
|
ok doug millert miod
|
|
good cmp functions written for qsort, but then different versions were written
which (ab)use the fact that bsearch doesn't strictly require the key type to
be the same as the element type. Nevertheless, I think it's clearer and
cleaner to create a complete key struct and search with that. As a bonus, we
don't need two different compare functions just to compare with two different
encoding values.
ok millert
|
|
mean "prio is 0". This avoids the need for code changes in programs which add
pf rules (as was done in pfctl but not other programs) to handle the new
"check prio" functionality. Specifically this unbreaks ftp-proxy.
Use of #define rather than magic 0xff suggested by benno.
ok benno "if henning doesnt like it he can change it when he recovers from jet-lag"
|
|
problem noted by dcoppa@
ok claudio@
|
|
i. e. on vlan interfaces, it is useful to be able to match on it -
effectively matching on classification done elsewhere.
i thought i had long implemented that, but chrisz@ asking for it made
me notice that wasn't the case.
tests by chrisz, ok phessler pelikan
|
|
using RTM_IFA to bind routes to an interface. Keep the subnet route
conflict avoidance code for the time being.
diff from claudio@ as part of larger routing magic diff.
ok claudio@ mpi@
|
|
written does not contain an EFI partition, zap any GPT signature
found on the 2nd (LBA 1) and last sectors on the disk. The install
script uses this sequence.
This is a temporary workaround until more GPT support is imported
post-5.7.
Should fix at least some machines who insist on using the GPT even
after we have overritten the 'protective' MBR.
ok deraadt@ tedu@ beck@ millert@
|