summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/interface.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2006-10-17 23:20:12 +0000
committerkrw <krw@openbsd.org>2006-10-17 23:20:12 +0000
commitf0dbaa42765a84461347ef9d1e0b414fb571e3c3 (patch)
tree9c3c240ee619ca4ef0fa38711b0762c3bbc5e63d /usr.sbin/ripd/interface.c
parentdisable the firmware fastboot feature on 5752/5755 and 5787 ASICs, (diff)
downloadwireguard-openbsd-f0dbaa42765a84461347ef9d1e0b414fb571e3c3.tar.xz
wireguard-openbsd-f0dbaa42765a84461347ef9d1e0b414fb571e3c3.zip
For non-CPU_BIOS architectures calculate the number of cylinders on
a disk rather than accepting the cylinder count provided by the disk or controller. This cylinder count will be '16383' for any disk >8.4G according to the ATA spec. CPU_BIOS on i386/amd64 has magic to deal with this, but other archs do not need to be restricted by the needs of PC BIOS. Fixes the default MBR OpenBSD partition size and disklabel on non-CPU_BIOS archtitectures. No change to behaviour on i386/amd64 machines. Noted by Stuart Henderson on his Thecus. Testing by various, including 'old i386 machines' nick@ ok tom@ pedro@ weingart@ deraadt@
Diffstat (limited to 'usr.sbin/ripd/interface.c')
0 files changed, 0 insertions, 0 deletions