Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-02 | provide generic ioctls for managing an interfaces parent | David Gwynne | |
in the future this will subsume the individual vlandev, carpdev, pppoedev, foodev options for things like vlan, carp, pppoe, etc. inspired by vnetid ok mpi@ jmatthew@ | |||
2016-02-29 | Print ssize_t with %zd; ok deraadt@ mmcc@ | Jeremie Courreges-Anglas | |
2016-02-29 | delete the kern.emul/KERN_EMUL sysctl bits since there are no | Christian Weisgerber | |
emulations left; ok millert@ deraadt@, jmc@ (man pages) | |||
2016-02-28 | Add a missing Ns macro | Tim van der Molen | |
2016-02-23 | A disk name of /dev/wd0c doesn't work. Correct verbiage and example. | Kenneth R Westerback | |
Discovered by rpe@. Tweaked by schwarze@. ok rpe@ schwarze@ jmc@ deraadt@ | |||
2016-02-23 | Fix display of pdisk partition sizes by casting the 32-bit number | Kenneth R Westerback | |
of blocks to (long long) before multiplying by 512 and passing the value to fmt_scaled(). Discovered and fix tested by rpe@. ok rpe@ deraadt@ | |||
2016-02-18 | TMPDIR is no longer supported; | Jason McIntyre | |
from rafael neves | |||
2016-02-10 | Permit negative x and y coordinates in mouse.scale for uts and ums. | Philip Guenther | |
Needed by some touchscreens. no objection matthieu@ | |||
2016-02-06 | Eliminate #include inside *.h files and include only needed headers in | Kenneth R Westerback | |
each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@. | |||
2016-02-04 | Fix an unitialized variable; pointed out by jsg@. | Masao Uebayashi | |
2016-02-03 | be very careful accepting packets via bpf. First check that the | Kenneth R Westerback | |
fixed part of the IP header is completely present before using its header length field. Then use the data in the IP header to ensure the entire IP packet is present. Then check that the entire UDP header is present. Then use the data in the UDP header to ensure all the data it thinks is present is actually present. Started when tj@ and a few others noticed ISC "DHCP CVE-2015-8605: UDP payload length not properly checked". ok sthen@ henning@ | |||
2016-02-02 | Pledge, based on what's done in fdisk. | Kenneth R Westerback | |
2016-02-01 | Remove variable unneeded since introduction of crypt_checkpass | Jeremie Courreges-Anglas | |
ok millert@ | |||
2016-02-01 | Use printf("%s",prompt) rather than printf(prompt) just for paranoia's | Kenneth R Westerback | |
sake. | |||
2016-02-01 | Un-shorten some lines that don't need breaking anymore. Remove a couple of | Kenneth R Westerback | |
indent levels by shuffling code bit. | |||
2016-01-31 | Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which is | Kenneth R Westerback | |
set to the same value. | |||
2016-01-31 | Nuke djust_value_and_compute_prefix() and use fmt_scaled() to display | Kenneth R Westerback | |
human readable sizes. | |||
2016-01-31 | Use delete_entry()/create_entry() in delete_partition_from_map() instead of | Kenneth R Westerback | |
trying to be clever and tweaking the existing entry into a free space entry by manual manipulation of the fields. | |||
2016-01-31 | Fold add_data_to_map() into create_entry() as the former is always called | Kenneth R Westerback | |
immediately after the latter, manipulating fields in the same structure. Use create_entry() in create_partition() rather than doing the same actions manually. | |||
2016-01-31 | Don't use add_data_to_map() when reading from disk, since it resets some | Kenneth R Westerback | |
of the dpme_ fields, overwriting data from disk. Add some paranoia checks for map limits when reading from disk. | |||
2016-01-31 | Just call contains_driver() when you need to know rather than carrying a | Kenneth R Westerback | |
flag around. More obviously current data. Nuke unnecessary variables when displaying a partition. | |||
2016-01-31 | Move dump_block() declaration from io.h to io.c since it is not | Kenneth R Westerback | |
used anywhere else. Remove declarations of non-existant kPatchType and init_partition_map(). | |||
2016-01-31 | Apple sets lblock_start and lblocks to 0 in free space entries. Do | Kenneth R Westerback | |
the same. Don't use lblock_start or lblocks in calculation for length@base display. We no longer display lblock info there. | |||
2016-01-30 | Zap a couple of declarations for non-existant variable and function. | Kenneth R Westerback | |
2016-01-30 | Another to the attic. | Kenneth R Westerback | |
2016-01-30 | Move last three lines (#define's) from dpme.h to partition_map.h and | Kenneth R Westerback | |
tweak #include's as necessary. | |||
2016-01-30 | Fold struct dpme into struct entry. Same reasons as for folding | Kenneth R Westerback | |
struct block0 into struct partition_map. Easier to read code. | |||
2016-01-30 | Refactor add_partition_to_map() to be simpler if perhaps less | Kenneth R Westerback | |
performance optimized. New logic will simplify merging struct dpme into struct entry. | |||
2016-01-30 | There is not much to do if we run out of memory, so simply exit if | Kenneth R Westerback | |
a malloc() or calloc() fails. Simplifies a bunch of logic, makes add_data_to_map() always succeed or exit, so make it a void. | |||
2016-01-30 | ping, ping6: corrects -E (audible beep when no packet is received before the | Sebastien Marie | |
next packet is transmitted) regression with help and ok florian@ | |||
2016-01-29 | Fold struct block0 into struct partition map. There can be only one | Kenneth R Westerback | |
and read/write_block0() can move the data from/to disk to/from appropriate fields anywhere. Removes a bunch of dereferencing, malloc'ing and pointer checking. | |||
2016-01-29 | Add do_dump_map() to make command processing more consistent. Pass | Kenneth R Westerback | |
1/0 (a.k.a. vverbose/not verbose) do do_dump_map() to differentiate P/p. | |||
2016-01-29 | Base 10 should be enough for anybody! Allowing hex and octal number | Kenneth R Westerback | |
input for partition id's, partition starting points and partition sizes is silly, especially since we never display anything but base 10 numbers. Also ensure that numbers end with a space, tab or newline. | |||
2016-01-29 | Warn of partitions extending past the end of the media. | Kenneth R Westerback | |
2016-01-29 | Tweak printing of partitions. Always show the pblock info in the | Kenneth R Westerback | |
'p' command output. And always show the lblock info in the 'P' command. Showing sometimes one and sometimes another with a subtle extra character to indicate which is being shown is error prone. | |||
2016-01-29 | Shorter names means a few whitespace adjustments. | Kenneth R Westerback | |
2016-01-29 | Rename struct partition_map_header to struct partition_map. No change to | Kenneth R Westerback | |
.o files. | |||
2016-01-29 | Rename struct partition_map to struct entry. No change to .o files. | Kenneth R Westerback | |
2016-01-29 | Conform to Apple Mac OS X's behaviour of setting dpme_flags on free | Kenneth R Westerback | |
partitions to 0, and setting them to VALID | ALLOCATED on the map partition. | |||
2016-01-29 | Conform to Apple Mac OS X's behaviour of not giving 'Apple_Free' | Kenneth R Westerback | |
partitions a name. Nuke kFreeName. | |||
2016-01-29 | Therefor -> Therefore (where appropriate) | tb | |
from ray@, ok jmc@ | |||
2016-01-28 | Flip base_order to a LIST(). | Kenneth R Westerback | |
2016-01-28 | Delete a bunch of Morris dancing in delete_partition_from_map(). | Kenneth R Westerback | |
No need to create a new dpme. Just rename/retype the existing and let combine_entry() suck in any surrounding empty space partitions. | |||
2016-01-28 | Hand rolled lists suck. First, replace disk_order with an LIST. | Kenneth R Westerback | |
2016-01-28 | Oops. Deleted one too many lines. Need to advance pointer when traversing | Kenneth R Westerback | |
list. | |||
2016-01-28 | malloc(3) returns a pointer, so check against NULL, not 0. (No functional ↵ | Gleydson Soares | |
change) OK millert@ | |||
2016-01-28 | When adding a new partition to the map, use only existing mapped | Kenneth R Westerback | |
space. Don't try to create new free space partitions to use. If the map does not know about all of the space on the disk, it is broken. | |||
2016-01-28 | Since we don't allow maps to be created or opened with an invalid | Kenneth R Westerback | |
block0, there is no point in checking later if block0 has magically become invalid. | |||
2016-01-28 | Use consistent 'return' idiom -- no parenthesis since that was the style | Kenneth R Westerback | |
of the existing code. | |||
2016-01-28 | more tweaks; ok krw | Jason McIntyre | |