summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-12Fix a memory leak in bss_dgram.Doug Hogan
Free data->saved_message.data. Based on OpenSSL commit: 41cd41c4416f545a18ead37e09e437c75fa07c95 except this version sets a->ptr to NULL to avoid accidental reuse and handles malloc failing. ok beck@, input + ok miod@
2015-01-12stash the softc in the memory allocated for setting up a task forDavid Gwynne
creating sensors.
2015-01-11replace fw_update (shell script) with a specialized version of pkg_add.Marc Espie
This has numerous advantages, in terms of speed and control. Initial version should be (mostly) identical to the old one. thanks to rpe@ and sthen@ for tests.
2015-01-11Remove orphaned defines.Miod Vallat
2015-01-11No more etc set, also sparc nowadays needs more than 16MB to boot multiuser.Miod Vallat
2015-01-11Tolerate checksum errors in ACPI tables (but complain about them). ApparentlyMark Kettenis
there are machines out there with broken BIOSen with such checksum errors in thier RSDT tables. Windows runs fine on these machines, so it probably does not check. Linux ignores checksum errors as well (and prints a warning). ok deraadt@, krw@
2015-01-11LOCKDEBUG is dead; perform the funeral ritesPhilip Guenther
pointed out by Helg (xx404 (at) msn.com) ok deraadt@ miod@
2015-01-11switch prototype warnings to implicit-declaration warnings.Ted Unangst
This should catch all the same bad cases, but be a little less aggravating in circumstances where a prototype isn't necessary ok deraadt
2015-01-11revert two latest commits until a crash is fixedGilles Chehade
2015-01-11When using sun4 PROM I/O routines, make sure we never attempt to transfer moreMiod Vallat
than the maximum DMA transfer size the PROM reports. Crank version to 2.9.
2015-01-11There's no simple way so check for DMA buffer overrun with isochronousMartin Pieuchot
transfers, so skip the check for such xfers for the moment. Issue reported by Ingo Feinerer and fix confirmed by Jan Stary.
2015-01-11Use the softc-specific function pointers for bcopy() and bzero() in iestart(),Miod Vallat
instead of, well, bcopy and bzero. This lets ie@vme transmit packets instead of panicing due to memset() trying to use 32-bit stores on a device address.
2015-01-11Make sure to initialize nbpg to a sensible value in bootxx, when running onMiod Vallat
a sun4 system - the prom i/o routines depend on it.
2015-01-11Unbreak sun4Miod Vallat
2015-01-11global "list" is not the nicest variable nameTheo de Raadt
seen my mlarkin, ok miod
2015-01-11add/fix/extend entries of exUSSR airports I've been to.Kirill Bychkov
ok sthen@
2015-01-11unbreak the delivery_filename backend, now that it no longer prepends theGilles Chehade
From separator line but gets it injected in its iobuf by the mda process, we need to make sure not to escape the first 'From ' we receive. spotted by deraadt@
2015-01-11armv6 introduced opcodes for reversing words in registers. we canDavid Gwynne
use these on armv7 as a backend for byteswapping things that endian.h provide. i dunno if its faster, but it makes smaller code. saves 30k on GENERIC-OMAP. ok jsing@ bmercer@ jsg@
2015-01-11correctly use HOST_NAME_MAX.Theo de Raadt
Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
2015-01-11use mallocarray(), then set the size afterwards. Prefer if people learnTheo de Raadt
and use this idiom everywhere, it is always safest.
2015-01-11use mallocarray()Theo de Raadt
2015-01-11mallocarray() for the rx_buffer memoryTheo de Raadt
2015-01-11Casting a gid_t to gid_t for a gid_t argument is overkillPhilip Guenther
2015-01-11use mallocarray() when reallocating the mux tableTheo de Raadt
2015-01-11KUE_MCFILTCNT() is non-constant, so use mallocarray()Theo de Raadt
2015-01-11unnecessary castTheo de Raadt
2015-01-11sncTheo de Raadt
2015-01-10Get the MAC address from the PCI ROM on systems without Open Firmware. CodeMark Kettenis
largely stolen from cas(4), but with a few tweaks.
2015-01-10Bye, bye simple_lock.Mark Kettenis
2015-01-10Disable (most) interrupts when the interface goes down.Mark Kettenis
2015-01-10Enable nep(4).Mark Kettenis
2015-01-10Hook up nep(4).Mark Kettenis
2015-01-10A few more loose ends.Mark Kettenis
2015-01-10Remove debug printfs.Mark Kettenis
2015-01-10nep(4)Mark Kettenis
2015-01-10Hook up nep(4).Mark Kettenis
2015-01-10Add support for promiscuous mode and multicase.Mark Kettenis
2015-01-10tell the truth about DES.Igor Sobrado
joint work with djm@ and jsing@, who suggested stronger words warning people away from single-DES. ok djm@
2015-01-10Properly stop DMA and tear down the rings when taking the interface down.Mark Kettenis
2015-01-101. They're flags, not counters. Set to one instead of incrementing.Ted Unangst
2. The G flag is useless and never checked. Remove it. ok millert
2015-01-10don't check for a return value that host() doesn't return, so futureTed Unangst
generations don't try to change any of the values and break the code. ok deraadt
2015-01-10Correct some comments and merge in6_if_up() into in6_ifattach() toMartin Pieuchot
reflect that IPv6 link-local addresses are no longer automagically configured the first time an interface is brought up. ok henning@, stsp@
2015-01-10Remove pointless empty 64bit support code stubs from bwi(4).Stefan Sperling
It seems no 64bit bus space support is forthcoming. Nothing has happened in DragonflyBSD for several years and FreeBSD has a different driver for 64bit chips called bwn(4). ok mpi@ some time ago
2015-01-10Merge two bwi(4) fixes from FreeBSD:Stefan Sperling
------------------------------------------------------------------------ r192306 | imp | 2009-05-18 17:31:26 +0200 (Mon, 18 May 2009) | 10 lines Fix a typo from the original driver. We need to write ctrl2 into RF register 0x52, not ctrl1. This appears to be a mistake in the bcm reverse engineering page, and has been corrected there. Tracing through the code, this is more in keeping with the "documented" register. Sephe thinks it looks interesting and may be worth fixing. :) Submitted by: ddkprog at yahoo com Reviewed by: Sepherosa Ziehau ------------------------------------------------------------------------ r192042 | nwhitehorn | 2009-05-13 16:25:55 +0200 (Wed, 13 May 2009) | 4 lines Add a short delay after programming PHY registers to give some time for the engine to catch up. This prevents a machine check exception from illegal memory requests with a BCM4318. ------------------------------------------------------------------------ No regressions observed by myself, miod@, and Vesa Norrman (vesbula at gmail).
2015-01-10Correct reversed test of setmountent() returnPhilip Guenther
Fix from Dennis Lindroos (denafcm (at) gmail.com)
2015-01-10revert host() back to correct behavior.Brent Cook
unbreak config file address parsing
2015-01-09return -1 on host() address parsing failure, not 1.Brent Cook
Match what parse.y expects it to return. ok millert@
2015-01-09return -1 on host() address parsing failure, not 1.Brent Cook
Match what parse.y expects it to return. ok millert@
2015-01-09absurd optimization. reduce initial space by one to avoid leaving one byteTed Unangst
hanging off on a page by itself.
2015-01-09The "SunMicro Virtual Eth Device" found on Oracle's more recent SPARC systemsMark Kettenis
claims to support both RNDIS and CDC Ethernet. However, RNDIS doesn't seem to work, at least not with our driver. So blacklist it here such that cdce(4) takes over. ok miod@, armani@ (both a while back)