summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Constify and set WARNS=2.dd2001-06-242-1/+2
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Constify, add a prototype, and set WARNS=2.dd2001-06-242-3/+3
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Constify and set WARNS=2.dd2001-06-242-4/+5
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Clean up the addrmerge() function, which was over-complicated andiedowse2001-06-241-136/+120
| | | | | | | | | | | | | | | | | contained a number of memory leaks. The changes include: - Add a comment describing what addrmerge() does. - Deal with 0.0.0.0./::. or AF_LOCAL callers correctly. - Use rpcbind_get_conf() instead of getnetconfigent() so we don't have to remember to free the returned netconfig struct. - Make just one pass through the ifaddrs list; we can pick up a fallback interface address in the same pass as the netmask comparison. - Define and use SA2SIN* macros to avoid the need for loads of protocol-specific local variables. - Use mostly protocol-independent code for building the netbuf version of the address to be returned. - Use the common cleanup code for virtually all error and non-error cases, fixing a number of memory leaks.
* Constify, staticize and add a missing include; add WARNS?=2.des2001-06-242-4/+7
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> MFC after: 2 weeks
* Don't add -Wall, as it's a compiler specific flag.dwmalone2001-06-241-1/+1
|
* Fix most of the warnings given by WARNS=2.dwmalone2001-06-243-105/+114
|
* Remove duplicate words.dd2001-06-242-2/+2
|
* Fix some return-value brain-damage in forward_register(). Thisiedowse2001-06-231-16/+21
| | | | | | | | | | | | | | function has a return type of u_int32_t, into which it was somehow supposed to encode: * A valid 32-bit XID (which could be any value including 0). * 0, meaning a duplicate request. * -1, meaning a malloc failed (!); We now ensure that all XIDs are non-zero, and pass the XID out via a pointer argument. In forward_find() and free_slot_by_xid(), remove an unnecessary and confusing test for a negative result from an unsigned modulo operation, but add an unnecessary cast to highlight why.
* remove -g -O0, that was only for debugging...ben2001-06-231-1/+1
|
* Don't dereference a pointer after freeing that pointer.ben2001-06-231-2/+3
| | | | | | | PR: 27990 Reviewed by: dd, phk Tested by: dd MFC after: 2 weeks
* Increase the buffer sizes for the build deps, run deps, and the linedd2001-06-221-3/+3
| | | | | | | itself verbatim from INDEX. This fixes seg. faults with newer INDEX files which have some gnome ports with outrageously long run deps. Approved by: jkh
* Explicitly add a default route in ppp's install profilebrian2001-06-211-0/+1
|
* Use 'LIBS+= ...' instead of 'LIBS= ...' in the generated makefilejoe2001-06-201-1/+1
| | | | | | | | so that the user can override libraries at build time. This is makes it easier to cross-compile crunch builds. Suggested by: luigi MFC after: 3 days
* Avoid using too many args for ``set m[tr]u''brian2001-06-202-4/+16
| | | | This needs to work with OpenBSD's groff too :(
* o Add a -a flag for changing/getting the ALTPIN setting for a digi port.brian2001-06-202-19/+99
| | | | | o For the -i switch, only show the device if more than one is given on the command line.
* Work around the problem in RELENG_4 where the file doesn't actuallydougb2001-06-201-7/+13
| | | | | | | | | | exist, and therefore mm_install is returning the "fail" value of the test instead of the "success" value for install. This change is a no-op on HEAD, but since the only harm on RELENG_4 ATM is a spurious warning it can follow the usual MFC practice. Submitted by: A cast of thousands :-/
* Print "-" instead of "" in the grace field if there is no gracedd2001-06-191-2/+2
| | | | | | | period; this keeps the number of whitespace-separated fields constant. PR: 15739, 23908 Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
* CND has been unused for two years, and RND has been unused for fivedd2001-06-191-1/+1
| | | | | | | years; remove them from CFLAGS. PR: 23712 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
* Call va_start/va_end for each call to vfprintfbrian2001-06-181-2/+4
| | | | Obtained from: OpenBSD
* Pick up the correct headers from sys/contrib/ipfilter/netinet.ru2001-06-184-21/+14
|
* Add support for stateful MPPE (microsoft encryption) providingbrian2001-06-1811-188/+669
| | | | | | | | | | | | | | | encryption compatibility with Windows 2000. Stateful encryption uses less CPU but is bad on lossy transports. The ``set mppe'' command has been expanded. If it's used with any arguments, ppp will insist on encryption, closing LCP if the other end refuses. Unfortunately, Microsoft have abused the CCP reset request so that receiving a reset request does not result in a reset ack when using MPPE... Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Handle hardware-imposed MTU/MRU limitations. PPPoE will no longerbrian2001-06-1821-80/+246
| | | | | | | | | | | | allow MRU/MTU negotiations to exceed 1492. Add an optional ``max'' specifier to ``set m[rt]u'', ie. set mtu max 1480 Bump the ppp version number. Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Add a -d command-line option; when used in conjunction with -f, rarpdroam2001-06-183-49/+129
| | | | | | | | | | | sends error messages to stderr, normal output to stdout, instead of logging everything via syslog. Turn off the FORMAT_AUDIT in the Makefile, until I can figure out how to disable the check for one single line in the source :( Reviewed by: dd, silence on -audit MFC after: 1 month
* Supported to select a keymap for PC-98x1.nyan2001-06-174-0/+44
|
* Don't call printf without a format string (harmless in this case).dd2001-06-171-2/+2
|
* Correct a typo in an error message.dd2001-06-161-1/+1
|
* Comply with POSIX rules:jlemon2001-06-161-2/+2
| | | | | | | o Use %u for printing u_int. o Cast sizeof() to u_long, and print with %lu Reviewed by: wollman
* Give inetd the ability to manage unix domain sockets. Details ofdwmalone2001-06-163-12/+169
| | | | | | | | | | | how to use this feature are in the man page. This is based on work by Lyndon Nerenberg. (The only difficult part about this patch is the fact that you can't fchown a unix domain socket, which means the sockets must be put in a secure directory). Reviewed by: dillon
* Remove ncheck in an example; FreeBSD does not have it.schweikh2001-06-161-1/+3
| | | | | | PR: 10158 Submitted by: Remy Card <card@ens.uvsq.fr> MFC after: 2 weeks
* Fix warning (and obviously broken code)jlemon2001-06-161-1/+1
| | | | 77: warning: cast from pointer to integer of different size
* Undo last braino and fix properly.jlemon2001-06-161-2/+2
|
* Fix warning:jlemon2001-06-161-1/+1
| | | | 489: warning: int format, different type arg (arg 4)
* Where is the pointy hat? Fix cut/paste error. (hey, it compiled! :-)peter2001-06-161-1/+1
|
* Get rid of a trigraph ("??>") mistakenly put in an error message.gad2001-06-161-1/+1
| | | | | | One less warning to annoy me... MFC after: 1 week
* *** empty log message ***gad2001-06-151-19/+15
|
* Rename a few global variables which hold hostname-related values to begad2001-06-1512-69/+90
| | | | | | | | | | | | | | | more sensible/understandable. 'from'->'from_host' 'host'->'local_host' 'fromb'->'frombuf' 'fromhost'->'origin_host' and a local-variable named 'host'->'hostbuf'. This fixes some compile-time warnings about local variables shadowing global variables. Other than renaming variables, the only actual code changes are to call strlcpy() instead of strncpy() when setting those (renamed) variables, and that 'from_ip' is now a strdup()-created buffer instead of being a static buffer compiled in as 1025 bytes. Reviewed by: freebsd-print@bostonradio.org (an earlier version) MFC after: 1 week
* Rename global variable 'name' to 'progname', thus fixing a number ofgad2001-06-157-27/+30
| | | | | | | | warnings which come up for various routines that have a parameter which is also called 'name'. Reviewed by: freebsd-print@bostonradio.org MFC after: 1 week
* Correct the arg count after parsing a line with an unescaped # that isn'tbrian2001-06-151-3/+2
| | | | | | preceeded with whitespace. MFC after: 3 weeks
* Start the correct copy of named (pass ${named_program} to ndc(8)).dd2001-06-141-1/+1
| | | | | PR: 27051 Submitted by: Maxim Konovalov <maxim@macomnet.ru>
* This program uses ndc(8); it doesn't send a signal itself.dd2001-06-142-20/+11
| | | | | PR: 28104 Submitted by: Maxim Konovalov <maxim@macomnet.ru>
* Convert IIJ copyrights to BSD copyrights.brian2001-06-1340-687/+972
| | | | Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
* Fix usage bogon (-d doesn't take any arguments).bmah2001-06-131-2/+2
| | | | MFC after: 3 days
* Add a -s option to pkg_version, which limits output to packagesbmah2001-06-132-7/+23
| | | | | | | | matching a given string. PR: 26114 Submitted by: edwin@mavetju.org (with modifications and manpage update) MFC after: 3 days
* Fixed world breakage on systems where ntohl() doesn't return u_longbde2001-06-131-17/+4
| | | | | | | | | | | | | (e.g., on alphas, or even on i386's with a POSIX-200x-conformant ntohl() (ntohl() returns uint32_t which is u_int on i386's)). Fixed related bugs and bogons while I'm here: - ntohl() was "fixed" for printing in 1 place by casting to "(unsigned int )". This breaks the value on systems where u_int is smaller than uint32_t, and has 2 style bugs. - spell u_int consistently (never use "unsigned"). - break K&R support some more (don't cast malloc()'s arg to a wrong type...).
* Use getdtablesize() instead of OPEN_MAX.des2001-06-131-1/+1
| | | | Submitted by: bde
* Add terminal type configuration to the Options screen. It allows selectingolgeni2001-06-133-0/+34
| | | | | | | | a monochrome display after booting into sysinstall, if you have any trouble with the default color scheme. Approved by: jkh MFC after: 2 weeks
* Plug two memory leaks: call login_close() after login_getclass(), anddd2001-06-131-2/+6
| | | | | | | use free_entry() instead of free() to free a struct _entry. PR: 28108 Submitted by: Mark Peek <mark@whistle.com>
* Fix about 90-100 warnings one gets when trying to compile lpr&friendsgad2001-06-1222-568/+405
| | | | | | | | | | | | with BDECFLAGS on, mainly by adding 'const' to parameters in a number of routine declarations. While I'm at it, ANSI-fy all of the routine declarations. The resulting object code is exactly the same after this update as before it, with the exception of one unavoidable change to lpd.o on freebsd/alpha. Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c Reviewed by: /sbin/md5, and no feedback from freebsd-audit
* Properly quote recursive pkg_add operations so that filenames withjkh2001-06-111-1/+1
| | | | spaces or special characters in them won't barf.
OpenPOWER on IntegriCloud