summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-12-22cosmetic changes:Marc Espie
- pref -> prefix as pref is somewhat ambiguous - rework tests so loop doesn't intend off the screen - zap unneeded variable okay krw@
2012-12-22We already zero out the trapframe, so there is no reason to set individualMark Kettenis
members to zero. Gets rid of a bogus comment as a bonus.
2012-12-22acx(4) supports power-saving in hostap mode now; ok claudioStefan Sperling
2012-12-22Return EEXIST to 'add' when a port is already a bridge member. This makesCamiel Dobbelaar
reconfiguration with /etc/netstart silent again. (noticed by deraadt) And do the same for 'addspan'. ok deraadt
2012-12-22Register cleanup handler passed by ld.so with atexit(3).Mark Kettenis
ok kurt@
2012-12-22Zero %r0 before transferring control to the main program, to indicate thatMark Kettenis
the main program should not register a cleanup handler with atexit(3). This will allow us to add the cleanup handler registration code to crt0.c and have ld.so pass its cleanup handler to the main program in the future. tested by tobiasu@ ok kurt@
2012-12-22some fixes, based on a diff from Martin Toft;Jason McIntyre
2012-12-22Fix bug in random offset introduced in rev 1.143; random range wasOtto Moerbeek
expanded, but not enough due to precedence error. Spotted by Thorsten Glaser.
2012-12-21When binding to a new lease, wait for the RTM_NEWADDR message inKenneth R Westerback
S_BOUND state, which prevents confusion when another DHCPACK arrives. Problem found and fix tested by kettenis@.
2012-12-21tweak for malloc(9) calls:Gleydson Soares
- M_CANFAIL is useless here since that M_NOWAIT will return NULL immediately if no resources. OK mikeb@ mpi@
2012-12-21valid port interval 1 through 65535, not 1 - 65534Gleydson Soares
check interval with yacc/$5 variable instead of cfgstate.listen_port that is an in_port_t type, for avoid warnings, due to limited range of data type; use IPPORT_HILASTAUTO for more consistence (input from millert@) "yeah, I like that. ok" henning@
2012-12-21Rather than calling mircotime in bpf_catchpacket each time it's calledMike Belopuhov
on a packet, make bpf_catchpacket take a timeval indicating when the packet was captured. Move microtime to the calling functions and grab the timestamp as soon as we know that we're going to call catchpacket at least once. From NetBSD, ok deraadt, claudio, sthen
2012-12-21bpf allocates packet buffers in the ioctl path and can sleepMike Belopuhov
waiting for memory to become available obtained from netbsd with tweaks, with input from deraadt and blambert, ok deraadt, claudio
2012-12-21remove makefile hacks that are no longer needed with t1 t2: working properlyMarc Espie
okay krw@
2012-12-21regenJasper Lievisse Adriaanse
2012-12-21- add some pcidevs taken from a dmesg on bugs@Jasper Lievisse Adriaanse
ok jsg@
2012-12-21the gcc bug seems to have been fixed...Theo de Raadt
ok miod
2012-12-20include machine/cpu.h now that is isn't any longer pulled in indirectlyChristian Weisgerber
by sys/sysctl.h; ok deraadt@ millert@
2012-12-20use openpty() rather than hand-rolled pty opening code; ok millert@Christian Weisgerber
2012-12-20report flow control mode in the media status callbackMike Belopuhov
2012-12-20correctly update the current flow control modeMike Belopuhov
2012-12-20max_frame_size must be set after ether_ifattach updates if_mtu;Mike Belopuhov
verified with the upstream driver
2012-12-20readjust midi flow control after consuming input dataAlexandre Ratchov
2012-12-20Bring stack smashing protector for MIPS; enabled by default.Martynas Venckus
Reorganize soft frame pointer so that locals are below it and grow downwards. Tested by miod@, jasper@. OK miod@.
2012-12-20Bring stack smashing protector for Alpha; enabled by default.Martynas Venckus
Reorganize soft frame pointer so that locals are below it and grow downwards. Thanks Nick for the access. OK miod@.
2009-10-15import of gcc-4.2.1, the last gcc release under GPLv2Robert Nagy
2012-12-19regenMark Kettenis
2012-12-19Tweak to generate a better man page.Mark Kettenis
2012-12-19regenMark Kettenis
2012-12-19Make it easier to create more /dev/ldomN devices. As a bonus this stopsMark Kettenis
polluting ramdisks with devices that aren't needed there.
2012-12-19crtbeginS.o needs to be built with -fPIC, otherwise bloated shared librariesMark Kettenis
silently crash when running constructors. Tested by landry@. ok beck@
2012-12-19Temporarily bring back the shutdown hook, but only use it to flush the diskMark Kettenis
cache. This shouldn't interfere with the hibernate code and makes sure we still flush the cache for controller that don't pass DVACT_POWRDOWN down to their children yet. This will be removed when the autoconf subsystem gets changed to do that for us by default. ok deraadt@
2012-12-19use (()) for arithmetic testsRobert Peichaer
ok @ajacoutot
2012-12-19Fix a purely theoretical NULL-pointer dereference in the case that weReyk Floeter
would be able to receive multiple SCM_RIGHTS messages. ok claudio@ gilles@
2012-12-19sync from mirrors.datStuart Henderson
2012-12-19Don't attempt to delete an address that has already been deletedKenneth R Westerback
by a new dhclient (or anyone else). Instead, use add_address(..., INADDR_ANY, ...) to tell the privileged process that its active address is gone. Thus the cleanup process doesn't try to delete it. Eliminates extraneous log entries complaining that the address can't be deleted. Narrows race window where old dhclient might delete the address the new dhclient has just added. Make rapid-fire starting of dhclient even more reliable.
2012-12-19generate .h during depend.Marc Espie
remove work-around now that t1 t2: works for parallel mode. tested and okay matthieu@, krw@
2012-12-19Remove extra semicolon in "if (...);" which caused an incorrect flag toStuart Henderson
be set in _this->keylenbits. Found by scanning the tree using coccinelle. ok yasuoka
2012-12-19add another umsm device that uses the qualcomm vid. namedJonathan Gray
Aeon 921T by the importer, it isn't clear what the real name is.
2012-12-19regenJonathan Gray
2012-12-19add another umsm deviceJonathan Gray
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
2012-12-18reorder some variables and move large buffers to the top of the stack.Reyk Floeter
2012-12-18remove unused variableReyk Floeter
2012-12-18no nead to touch argv later since we don't support non-getopt arguments.Reyk Floeter
2012-12-18doin't complain if the child processes exited cleanly.Reyk Floeter
2012-12-18cnl is only allocated if F_NATLOOK was specified before, so skip theReyk Floeter
extra check for F_NATLOOK and check if cnl is not NULL only. no functional change, but this might make it clear that there is no and was no memleak here.
2012-12-18reorder the variables a bit, no functionaly change.Reyk Floeter
2012-12-18Don't clean up twice when the non-privileged process exits. Let theKenneth R Westerback
privileged process now cleans up itself. Continuous rapid repeated running of dhclient now more reliable.
2012-12-17Don't daemonize until the RTM_NEWADDR message is received. ShuffleKenneth R Westerback
things a bit so configuring the address and default route are done last. This makes it much more likely that all the work is done when the 'bound to ...' message is displayed. Amoung other things fixes a problem with the install scripts, where the first (hostname-associated) dhclient can exit so quickly the interface doesn't yet have an address and a second (free-floating) dhclient is therefore often run. Noted by rpe@, who also tested the fix.