summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-23Done mark a disable of a disabled device as an change (and same with enable).Mats O Jansson
Reported by jj@ a long time ago. -moj
2008-03-23Do not abort walking the tree if a node's contents is too large; allowsMiod Vallat
eeprom -p to be used on more macppc models. ok fgsch@
2008-03-22spaces found reading that diffTheo de Raadt
2008-03-22put in explicit suffix rules, they're needed anyways since $< is only usedMarc Espie
for suffix rules. Use them to avoid writing loads of explicit lines. Shaves 2/3 of each Makefile off. okay miod@, deraadt@, henning@
2008-03-22Mention that softreconfig is on by default. From Matthew DempskyClaudio Jeker
2008-03-21better handling of chunked encoding, further fixes after extensive testingReyk Floeter
2008-03-20handle the case that the Content-Length HTTP header may be 0Reyk Floeter
2008-03-20Fix HISTORY. OK reyk@Todd C. Miller
2008-03-19CMSG_LEN and CMSG_SPACE are not neccessarily the same size. So if youTheo de Raadt
are going to allocate/free a block of memory for the message contents, you have to calculate and track the sizes seperately. This change is just like all the other CMSG changes...
2008-03-18Fix mention of authpf_users table (s/authpf users/authpf_users/).Michael Erdely
ok jmc@, mcbride@
2008-03-18correct CMSG_SPACE and CMSG_LEN handling as done in other places. TheseTheo de Raadt
are the complicated cases where multiple messages are sent. discussed with kettenis, hshoexer, and rtsol tested by jmc - thanks
2008-03-18remove ber_add_astring and make it the default behaviour inReyk Floeter
ber_add_string, ber_add_nstring, and ber_add_bitstring to allocate and copy the provided buffer instead of just attaching it to the ber element. this may add some overhead but fixes and avoids some bugs with static buffers and simplifies the ber api again. From Matthew at Dempsky dot org With input from claudio@
2008-03-18fix bug that ber_oid2ber skips the first byte when encoding powers ofReyk Floeter
128. E.g., it will encode 128 as 0x00 instead of 0x81 0x00. From Matthew at Dempsky dot org
2008-03-17two small bugs in printing funcs:Henning Brauer
log_as < vs <= confusion, AS 65535 printed like 4 byte AS 0.65535 aspath_strlen: omitted stripping high 16 bits of 32bit AS after dealing with the upper half From: Matthew Dempsky <matthew@dempsky.org>
2008-03-17sync the synopsis and usage; "usage:" is lowercaseIgor Sobrado
ok jmc@
2008-03-17"usage:" is lowercase; while here, KNFIgor Sobrado
ok jmc@
2008-03-17use the right format for "usage:"; "usage:" is lowercaseIgor Sobrado
ok jmc@
2008-03-17sort optionsIgor Sobrado
ok jmc@
2008-03-17convert more strings to use the new ber_add_astring() function whichReyk Floeter
simplifies the code.
2008-03-17another sizeofa instead of sizeof fixReyk Floeter
2008-03-17fix incorrect use of sizeof() where there sizeofa() macro should be usedReyk Floeter
ok dlg@
2008-03-17option 252 is generally used to specify an autoproxy-script on a subnet.David Gwynne
ok krw@ henning@
2008-03-16s/273.16/273.15/g, then refactor the formulae to ensure that theConstantine A. Murenin
double to int64_t conversions happen sooner rather than later discussed with / ok by kettenis
2008-03-16text simplification;Jason McIntyre
2008-03-16avoid errno trashing, ok mpf henningTheo de Raadt
2008-03-16syslogd leaves zombies around if multiple |/pathto/mylogprogMarco Pfatschbacher
children died in a row. Do waitpid(2) in a loop until there's nothing left. OK henning@, millert@
2008-03-16Reduce the number of unnecessary time(3)/gettimeofday(2) calls, and make sureConstantine A. Murenin
that the time always goes forward, so reports are neither duplicated nor lost. Report state changes stabilised through dampening immediately, instead of delay- ing them until the next reporting window; previously, it was common for check() to lag one second behind report(), hence the initial report was delayed one extra minute (this then reduces the number of sleep(3)/nanosleep(2) calls, too). ok ckuethe; some man-page suggestions jmc
2008-03-16implement the hrSWRun portion of the HOST-RESOURCES mib. you can see whatsDavid Gwynne
running now, which is another thing my nms at work likes. ok reyk@
2008-03-16usage statements are preceeded with usage:David Gwynne
ok reyk@
2008-03-15provide sizeofa for counting the number of elements in an array. use it forDavid Gwynne
passing the length of the mib in all these sysctl calls. ok reyk@
2008-03-15space allocated is sum of CMSG_SPACE()'s. length given to the kernelTheo de Raadt
is the sum of all the CMSG_SPACE()'s, except for the last element use CMSG_LEN(). Insane, right? ok kettenis hshoexer
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-15repair msg_controllen and also an errant buf[CMSG_LEN(..)] declTheo de Raadt
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-15if the device supports the PCI capabilities list and the verbose flagReyk Floeter
is specified, print all PCI capabilities by name instead of just the initial capabilities pointer. ok dlg@ kettenis@
2008-03-15Because the shuffle code initialisation is a specific case of shufflingDamien Miller
a set of incrementing integers (and not an arbitrary set of values) it is possible to populate the array as we shuffle it in a single forward pass. Clever optimisation from didickman AT gmail.com; ok deraadt@ mcbride@ (same change as netinet/ip_id.c)
2008-03-15explicitly report whether the lower or upper limit is exceeded; ok sthen@ ↵Constantine A. Murenin
ckuethe@
2008-03-15move zerodotzero up so more stuff can use itDavid Gwynne
this is an ok bit of a bigger diff that reyk wanted split up
2008-03-14- punctuate and order the tokens list, to stop it looking scrappyJason McIntyre
- it doesn;t make sense to list esm(4) in SEE ALSO
2008-03-14add a new ber function ber_add_astring() that strdups the string andReyk Floeter
sets the be_free flag (which is required in some cases). this will make it easier because it is done manually at some places in the code. discussed with dlg
2008-03-14Add a "%l" token to signal whether a sensor value is in or out of bounds,Chris Kuethe
without regard for the specific value. It's a big heavy binary hammer... ok & style feedback from cnst
2008-03-13document the just-committed %s token.Chris Kuethe
ok mbalmer
2008-03-13Allow a program invoked on state change to receive sensor status. PerhapsChris Kuethe
you might want to toggle an error light when a sensor is not OK. Perhaps you might want to schedule a shutdown if a sensor is reporting bad news. Now you can do this, and cancel that pending shutdown (or turn off the error light) if the sensor decides all is well. ok mbalmer (who came up with an almost identical diff months ago) useful feedback and generally positive responses from deraadt, henning, msf
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-03-12"usage:" should precede the first statement onlyIgor Sobrado
ok jmc@
2008-03-12remove noisy warning messageReyk Floeter
ok claudio@
2008-03-12fix a memleak in the ber_read_elements() error case.Reyk Floeter
ok claudio@
2008-03-12Check that the current ber element is a sequence or a set when '{' or '('Claudio Jeker
is used. OK reyk@