summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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@
2008-03-12mostly stylistic - always print the client host name in snmpe errorReyk Floeter
messages and make sure that the host string is initialized.
2008-03-12if (class != BER_CLASS_UNIVERSAL || type != BER_TYPE_SEQUENCE)Claudio Jeker
not if (class != BER_CLASS_UNIVERSAL && type != BER_TYPE_SEQUENCE) the class and type need to be of correct. OK reyk@
2008-03-12SNMP has a restricted BER encoding especially all encodings use theClaudio Jeker
definite-length from. So bail out with an error if this is not the case. OK cloder@, reyk@ cvs: ----------------------------------------------------------------------
2008-03-12Return an error if more data is requested even though the buffer is empty.Claudio Jeker
Fixes an infinite loop seen by cloder@. OK cloder@, reyk@
2008-03-12nuke unused variable.Pierre-Yves Ritschard
2008-03-11oopsMarc Espie
2008-03-10print better error message if child dies... with extra dark magic to grabMarc Espie
signal names from POSIX.
2008-03-10provide a partial implementation of the HOST-RESOURCES-MIB. this implementsDavid Gwynne
the hrStorage part, which is enough to see how much space is used on your filesystems. makes my nms happy. ok reyk@
2008-03-10Fix a null deref in link_state, which happens on configMarco Pfatschbacher
files which refer to undeclared states. popfile() needs to be called later. Found by and OK cnst@
2008-03-09tweak previous;Jason McIntyre