Commit Graph

6950 Commits

Author SHA1 Message Date
christos 5b59015f94 remove backwards compatibility with non-cloning bpf. 2004-12-01 23:12:11 +00:00
christos e13c309dd3 Use /dev/bpf, if _PATH_BPF is defined. 2004-12-01 23:04:58 +00:00
lukem 507e9f7256 strsvis(3) encode & decode the "link=" value (symlink target). 2004-12-01 10:07:56 +00:00
christos a0d7588f62 Simplify code a bit, and whitespace. 2004-11-28 05:40:47 +00:00
lukem 3d10694e7c "doc" SUBDIR needs config_local.h from "libamu", so reorder former after .WAIT. 2004-11-28 01:11:17 +00:00
lukem 0f4ca6a061 Use "${CPP} -P ${CPPFLAGS}" instead of "cpp -P". 2004-11-28 01:10:00 +00:00
lukem 52e85685ca Support MAKEVERBOSE.
Improve build_version.h dependency, based on native Makefile.
2004-11-28 00:07:15 +00:00
he 04ecec855d Not only get_args.o depends on build_version.h -- get_args.d does as well.
Add a dependency reflecting that.
2004-11-27 14:30:46 +00:00
christos f2a03aeb65 Adapt to b5. 2004-11-27 01:39:23 +00:00
christos 845189a2e2 Consider framebuffers in text emulation mode as regular ttys. Should fix
a few PRs.
2004-11-25 20:23:36 +00:00
christos 8526cbfc67 WARNS=3 2004-11-25 20:23:09 +00:00
wiz c79a26d6f8 Sort options in SYNOPSIS. 2004-11-25 16:05:11 +00:00
wiz 56c0f8cbac Bump date for previous; new sentence, new line. 2004-11-25 16:04:30 +00:00
martin 4d3b851c60 Document that carrier scripts are run at starttime. Bump date. 2004-11-25 15:55:29 +00:00
martin 59ca47f545 In the initial interface scan at start time, query the link status of
the interfaces and call the CARRIER script if a link is already there.
This allows me to boot my notebook with the cable pluged and
fixes PR bin/26830.
2004-11-25 06:57:38 +00:00
atatat c8c0bfb574 Put the rest of the -f description in the right place, while adjusting
the wording and starting a new sentence on a new line.

My turn to play wiz and fix the man page he broke.  :)
2004-11-25 01:41:51 +00:00
thorpej 9e47f7b6ef Fix typo that caused priories to compare incorrectly. PR bin/28376 and
bin/28380.  Fix from Geoff Wing.
2004-11-23 14:19:57 +00:00
grant 0bfb4106b0 no trailing comma at end of enum. 2004-11-20 06:40:01 +00:00
christos e1816fa337 Use sockaddr_snprintf() 2004-11-19 21:43:40 +00:00
snj 8ff9670d60 Remove a superfluous word. From David Krinsky in PR bin/28358. 2004-11-19 21:19:24 +00:00
wiz 4483c473cb Make HTML-save. 2004-11-19 18:48:43 +00:00
wiz 6c1d7355a3 Fix typo, and make HTML-save. 2004-11-19 18:48:29 +00:00
wiz 1dae5724d8 -u changed to -U when porting from FreeBSD; update comment. 2004-11-19 18:48:18 +00:00
thorpej f30d060939 We have to read the config file the first time after we allocate the
kqueue descriptor, because we set up events after we parse the file.

Unfortuntately, this means that we also have to do the chroot before
we read the config file.  But this is OK -- the config file has to be
in the chroot environment anyway, because it has to be able to get to
it after SIGHUP.

Grrr, all because stupid kqueue descriptors are not inherited across
a fork.  LAME.
2004-11-19 02:51:18 +00:00
thorpej 83f70aba69 Merge the thorpej-syslogd-hack-branch down to the trunk. Enhancements
include:

- Extend the syntax of syslog.conf to allow selections of log destinations
  by comma-separated lists of program name (including kernel-generated
  messages) and originating host name.
- Ability to pipe selected messages through arbitrary filter commands.
- Ability to specify priority comparison operations.
- Improvements to domain name handling.
- Conversion to use kqueue for communication and signal events, eliminating
  all unsafe signal handlers.
- Allow spaces as well as tabs in syslog.conf.
- Log kernel printfs at LOG_NOTICE instad of LOG_CRIT.
- Ability to log facility/priority with a log message.
- Reliability improvements.
2004-11-19 02:18:11 +00:00
wiz 98b8f0e005 Sort options. Second part of PR 26533. 2004-11-17 14:54:47 +00:00
hira 5d59c3c005 usage: Add -d and -r. Use getprogname().
Reviewed by uebayasi@.  This closes PR bin/26686.
2004-11-17 13:35:32 +00:00
hira b1440f782d usage: Add -d. Use getprogname().
Reviewed by uebayasi@.  This closes PR bin/26685.
2004-11-17 13:32:16 +00:00
hira c79d0a54ae usage: Add -f and -m. Use getprogname(). Print to strerr.
Reviewed by uebayasi@.  This closes PR bin/26535.
2004-11-17 13:28:31 +00:00
hira 75febfe0c8 usage: Print program name. Whitespace nit.
Reviewed by uebayasi@.  This closes PR bin/26534.
2004-11-17 13:21:09 +00:00
itojun bb4eb5b8cd NI_WITHSCOPEID was not picked up by IETF standardization 2004-11-16 06:00:37 +00:00
itojun b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00
yamt 057eb0b30f don't use variable arg macro, which is not supported by gcc2. 2004-11-16 05:14:12 +00:00
yamt 2918ba1f0d handle configinstall target correctly. 2004-11-14 20:27:13 +00:00
yamt 23c8222edb merge after importing pf from openbsd 3.6. (userland part)
some files were imported to the different places from the previous version.
v3_5:
	etc/pf.conf
	etc/pf.os
	etc/spamd.conf
	share/man/man4/pf.4
	share/man/man4/pflog.4
	share/man/man5/pf.conf.5
	share/man/man5/pf.os.5
	share/man/man5/spamd.conf.5
v3_6:
	dist/pf/etc/pf.conf
	dist/pf/etc/pf.os
	dist/pf/etc/spamd.conf
	dist/pf/share/man/man4/pf.4
	dist/pf/share/man/man4/pflog.4
	dist/pf/share/man/man5/pf.conf.5
	dist/pf/share/man/man5/pf.os.5
	dist/pf/share/man/man5/spamd.conf.5
2004-11-14 11:26:43 +00:00
he f5ee27d652 Add casts to unsigned char for the arguments to ctype.h functions. 2004-11-13 14:32:14 +00:00
he b659e3ae0f The size_t type isn't necessarily an int (on arm it's an unsigned int),
so add casts to int before using as a printf field width specifier.
2004-11-13 00:11:03 +00:00
wiz 1a496846ae Sort options, fix Xr, some nit fixes. 2004-11-12 02:39:21 +00:00
christos cd0f7573f1 Add support for lastlogx output. Unfortunately not many programs use it
yet.
2004-11-11 20:17:36 +00:00
yamt b1ef71d369 move common fragments into Makefile.inc. 2004-11-11 12:03:53 +00:00
yamt 096fec04a9 move pf reachover makefiles into usr.sbin/pf. ok'ed by itojun.
before:
	sbin/pfctl
	usr.sbin/authpf
	usr.sbin/spamdb
	libexec/ftp-proxy
	libexec/spamd
	libexec/spamd-setup
	libexec/spamlogd
after:
	usr.sbin/pf/pfctl
	usr.sbin/pf/authpf
	usr.sbin/pf/spamdb
	usr.sbin/pf/ftp-proxy
	usr.sbin/pf/spamd
	usr.sbin/pf/spamd-setup
	usr.sbin/pf/spamlogd
2004-11-11 11:54:51 +00:00
he ab248774f6 For the sh5 target, reduce optimization level for two files so that
BIND compiles on that platform.
2004-11-11 00:34:05 +00:00
agc 03ad6dc16c Document the "pre" magic string just added, and bump date for this. 2004-11-10 17:40:41 +00:00
wiz 95fafbc9a3 Recognize "pre" as pre-release version. Bump version to 20041110. 2004-11-10 16:51:16 +00:00
dsl 9d34a2e458 More fallout from removing the (int) casts from ctype.h
Should fix PR/28082
2004-11-08 08:05:20 +00:00
christos 4614af85f7 We control threaded or not from the Makefile 2004-11-07 02:54:55 +00:00
christos 1a8b79bc27 Add netbsd id 2004-11-07 01:13:32 +00:00
christos b1454ec955 - add netbsd id
- define that we have threads
2004-11-07 01:13:18 +00:00
christos 74786d7691 - add netbsd id
- use endian.h to determine endianness
2004-11-07 01:12:56 +00:00
christos 008f1a9208 includes for bind-9-3-0 2004-11-07 01:07:26 +00:00
christos d434bff667 Unsigned char casts for ctype functions. 2004-11-06 18:18:33 +00:00
mason 0418d87f4b fix typo in comment 2004-11-05 18:07:27 +00:00
wiz 2add0ff922 Sync usage with man page; sort options. 2004-11-03 14:01:04 +00:00
wiz 624de60311 Bump date for -N; sort options; add N to SYNOPSIS. 2004-11-03 13:58:23 +00:00
erh 7d7fb3bdbc As the comment says, not all files may be present in the tar file,
so don't attempt to extract the (usually) non-existant +PRESERVE file.
2004-11-02 01:03:29 +00:00
erh 4f022501ab Merge version 20041101 from pkgsrc. 2004-11-02 00:38:23 +00:00
grant 0e29cab3fe don't explicitly call gunzip, just pass the right arguments to tar. 2004-10-31 02:45:37 +00:00
dsl 78f35b774e Add (unsigned char) cast to ctype functions
Add fpurge(stdin) before prompt - unexpected question.
for usr.bin/crontab
2004-10-30 17:14:36 +00:00
dsl 3cca093e74 Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
dsl 9122339b9f Add (unsigned char) cast to ctype functions 2004-10-30 15:39:39 +00:00
dsl c4670c4ec7 Add (unsigned char) cast to ctype functions 2004-10-30 15:28:45 +00:00
dsl e2f49bd9e2 Add (unsigned char) cast to ctype functions 2004-10-30 15:15:37 +00:00
dsl 9efede97a9 Add (unsigned char) cast to ctype functions 2004-10-30 15:04:45 +00:00
dsl 3ab2c084c9 Add (unsigned char) cast to ctype functions 2004-10-30 14:31:45 +00:00
dsl e7df4576bb Add (unsigned char) cast to ctype functions 2004-10-30 08:56:00 +00:00
dsl 03f1c17583 Add (unsigned char) cast to ctype functions
The argument rules suck.....
2004-10-30 08:54:51 +00:00
dsl f7571bacc2 Add (unsigned char) cast to ctype functions 2004-10-30 08:46:12 +00:00
dsl 75ba9fc767 Add (unsigned char) cast to ctype functions
Some of this code could usefully be converted to use strtoul() and/or
some small helper functions.
2004-10-30 08:44:25 +00:00
dsl c32255add6 Add (unsigned char) cast to ctype functions
Change validation of -t<number> to use return ptr of strtoul (not isdigit)
2004-10-30 08:31:39 +00:00
dsl 91fe418901 Add (unsigned char) cast to ctype functions 2004-10-30 08:19:30 +00:00
dsl cfe7f80ff0 Add (unsigned char) cast to ctype functions 2004-10-29 20:51:11 +00:00
dsl e09553f3ac Add (unsigned char) cast to ctype functions 2004-10-29 20:33:06 +00:00
dsl 238960af7e Add (unsigned char) cast to ctype function 2004-10-29 19:51:36 +00:00
heas 3114eb2be3 Postpone initial setting of the alarm timer until after the call to daemon(),
as the timer would be cleared by daemon's fork().
2004-10-28 20:04:24 +00:00
christos 28c9afd120 Complete check for packet length, and add verbose errors for malformed
packets.
2004-10-28 17:07:27 +00:00
itojun e2426ca020 re-enable a length check which was commented out (why?).
http://www.securitylab.ru/49043.html
2004-10-28 07:50:34 +00:00
itojun 981eb66521 cbcp option length is too long, stop parsing.
http://www.securitylab.ru/49043.html
2004-10-28 07:45:21 +00:00
itojun e5802101b4 change description of -I to meet the current implementation. bump date 2004-10-26 06:42:14 +00:00
peter 224f01f920 Constify. 2004-10-22 18:41:09 +00:00
peter ebfed7ec9e Check the status for each test and print the result or an error message
according to the status code. This fixes a core dump in test 4.

Closes PR bin/27145 from ianzag at megasignal.com
Reviewed by christos, jdolecek.
2004-10-22 18:33:06 +00:00
pk 6b2734d11c Add two missing `#ifdef INET6's. 2004-10-20 11:37:42 +00:00
jmc 7a47cf149b Check for fstatvfs and provide/use it only if the host system has it.
Fixes PR#27221
2004-10-12 03:28:30 +00:00
wiz 87c2003f7c Add -S to usage. 2004-10-10 09:43:02 +00:00
wiz 9bb7ae7578 Add -S to SYNOPSIS; sort descriptions; bump date for new -S flag. 2004-10-10 09:42:11 +00:00
mycroft ad19a75b36 Don't fsync() kernel messages by default -- enable it with the "-S" flag.
This avoids some seriously gratuitous disk hosage in various cases.

XXX It would probably be better to allow this to be specified in the config
file somehow.
2004-10-08 17:25:52 +00:00
erh c857b022f4 Don't look for files at all unless -. is specified. Allows pkg_info to
work if there happens to be a uninstalled package present in the current
directory.
2004-10-06 15:40:11 +00:00
tron 84596c1d92 Fix bug which caused "ypinit" to die with a strange error message if
"/var/yp/binding" doesn't exist.
2004-10-05 11:35:35 +00:00
grant 8b9d374e09 suppress printing the network settings so that dhclient -q is actually
quiet. the most useful network info is already printed by dhclient
itself in noisy mode.
2004-10-04 12:54:06 +00:00
christos bb0410eb96 Account for ipfilter move. 2004-10-01 15:26:35 +00:00
dyoung 195c6d8723 Compile with -DDHAVE_PCAP_LIB_VERSION so that tcpdump will print
the libpcap version for us, instead of 'unknown'.  Thank you for
the problem report, Geoff Wing.
2004-09-30 06:40:19 +00:00
enami b54d2249c1 Fix indent. 2004-09-30 02:17:53 +00:00
enami dd01d48860 Don't set AI_NUMERICHOST in matchhost() to resolve given hostname since
it is supposed to be an arbitrary name (i.e. not restricted to numeric
representation).  Tested by Soda with our production server.  PR#27047.
2004-09-30 02:17:14 +00:00
wiz 2ea7a74e40 Improvements from Christian "naddy" Weisgerber:
sync with FreeBSD/OpenBSD
- Add a standard option list and make appropriate changes to the
  body of the description.
- Document "-G netgroup".
- Miscellaneous grammar and mdoc fixes.

Some option resorting by yours truly.
2004-09-28 16:37:08 +00:00
dyoung 79eff8033d Add radiotap support, which was not in release 3.8.3. 2004-09-28 00:01:02 +00:00
dyoung 88f1d7df8c Resolve conflicts in tcpdump-3.8.3 import. 2004-09-27 23:04:24 +00:00
rumble 7caa241563 Change the log that is produced when the maximum spawn count per
last 60 second interval is reached to more accurately reflect
what has happened.

Also, break up a few long strings, obey 80 columns, and remove a
superfluous newline passed to syslog(3).
2004-09-14 17:42:31 +00:00
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
jmmv 25298658a7 Fix indentation of a line in the sample file. 2004-09-02 11:41:27 +00:00
lukem bc3a6f3810 Refer to the pkgsrc/sysutils/ipw-firmware package. 2004-08-27 06:01:28 +00:00
lukem 89e309674d Improve statistics display. Consistency tweaks. From Damien Bergamini. 2004-08-27 00:05:37 +00:00
lukem 777a16793a Fix description of firmware. From Damien Bergamini. 2004-08-27 00:05:04 +00:00
wiz 6045854359 Remove duplicate include. Noted by Jeff Ito. 2004-08-26 20:26:08 +00:00
wiz 9029210e32 Avoid printing a useless \0. From SHIMIZU Ryo in PR 26766. 2004-08-26 13:05:14 +00:00
wiz c648671766 Sync usage with man page, and fix a typo in a comment. 2004-08-25 18:49:06 +00:00
wiz f8b131dd8f Minimally describe -g and -h; some consistency changes. 2004-08-25 18:48:54 +00:00
wiz ab0dd82b9c Bump date for -A documentation, and sort option descriptions. 2004-08-25 18:34:54 +00:00
wrstuden 2cf9ffa1ee Document recently-revived -A option, which sets the authentication
type. Eventually we want ifconfig to handle this, but we support
it here until ifconfig gets updated.
2004-08-25 18:29:28 +00:00
snj 8561540c0d Avoid comma abuse, remove a redundant word, and add a missing period. 2004-08-23 19:45:36 +00:00
cube 0d6cfa8af6 Provide a correct description of -R flag, as suggested by Jim Bernard in
PR 26698.
2004-08-23 19:41:05 +00:00
lukem 1b561b425f only build ipwctl on i386; it is not much use elsewhere 2004-08-23 13:51:05 +00:00
lukem 970073daaf descend into ipwctl 2004-08-23 13:27:38 +00:00
wiz a13de4f0f5 Move ipw(4) from usr.sbin/ipwctl to share/man/man4. 2004-08-23 13:25:40 +00:00
lukem 9aba85d110 Document where to get the firmware from, and the differences between
the firmware files.
2004-08-23 13:25:11 +00:00
wiz 35b794816f New sentence, new line; remove (R) after Intel. 2004-08-23 13:24:14 +00:00
wiz 894603cac1 New sentence, new line; remove explanations from synopsis;
remove (R) after Intel; style improvement.
2004-08-23 13:23:47 +00:00
wiz afbced614e Drop trailing whitespace. 2004-08-23 13:20:21 +00:00
lukem 6a94083b97 tweak usage 2004-08-23 13:11:45 +00:00
lukem ef381d40a5 NetBSD RCSID & style tweaks 2004-08-23 11:54:28 +00:00
lukem b1227d8619 ipwctl(8) - configure Intel(R) PRO/Wireless 2100 (ipw(4)) network adapter
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/
2004-08-23 11:45:37 +00:00
he c388a506cb Move the local array declaration of flist[] to the variable declaration
section, so that this compiles with gcc 2.95.3 as well.  Fixes build
problem for vax.
2004-08-18 19:10:15 +00:00
yamt b012ef443f revert a part of the previous. (uint -> u_int)
to make tools/installboot compile again.
2004-08-16 05:57:52 +00:00
dsl 0b10fdb3b8 Add an option to set bp_consaddr (serial console IO port address)
Only complain about small patch area if we would write something non-zero there.
2004-08-15 22:00:12 +00:00
jrf ea0b6a43d0 Add -v option to usage message. 2004-08-14 02:16:13 +00:00
wiz e682d869e8 Bump date for previous. 2004-08-13 13:45:53 +00:00
wiz bf78254603 Sort options, add -K to usage. 2004-08-13 13:45:46 +00:00
wiz 25ac688cb9 Bump date for new -q. 2004-08-13 13:38:14 +00:00
wiz 8a623e1980 Sort options in SYNOPSIS. 2004-08-13 13:37:14 +00:00
wiz 6579bae669 Add all options to usage. 2004-08-13 13:37:04 +00:00
agc 938f9f0f4f Modify pkg_info so that it will only print information on uninstalled
binary packages in the current working directory if -. is given on the
command line. If no -. is given, pkg_info will look for its information
in the ${PKG_DBDIR}.

This addresses a long-held gripe on the part of a number of people,
including myself, which completely violated the POLS.

Bump version for this and previous pkg_admin modification.
2004-08-13 13:34:42 +00:00
agc 50a555ad6a Add a -q switch to pkg_admin, which allows it to work in a quiet manner.
Fixes the change request in PR 26583, but in a different manner,
preserving existing behaviour and making the new behaviour dependent
upon a command line option.
2004-08-13 13:28:46 +00:00
hubertf 207fff285e pkg_info will not DTRT when applied to a binary package that doesn't
have all the files from ALL_FNAMES -- meta pkgs don't have +MTREE-files,
and as such it's impossible to retrieve _any_ information on them.
The fix is to only extract those +-files that are needed (as determined
by the command line options).

Problem noted by gavan@, code reviewed by grant@ and gavan@.
2004-08-07 01:55:06 +00:00
junyoung d4277bb7d5 Add -fno-strict-aliasing to CFLAGS to avoid gcc warning
"dereferencing type-punned pointer will break strict-aliasing rules"
which occurs when compiling crypto_openssl.c with -O[23s].
This should be gone once a new release of kame with a fix applied
is imported.
2004-08-05 17:13:54 +00:00
agc ef020cc402 Re-work the code which checks the recorded build versions of a binary
package to make pkg_add work properly when no +BUILD_INFO file exists.

Modify the return value from read_buildinfo() to return 1 for success
and 0 for failure.

Use symbolic constants, rather than integers.

If we can't read the build information, always tell of this fact.

Bump version to 20040730

Addresses PR 26429; a different version of these mods were verified to
allow a +BUILD_INFO-less binary package to be added by Martin Husemann.
2004-07-30 11:35:46 +00:00
dbj 2446aaf129 include <sys/statvfs.h> if HAVE_STRUCT_STATVFS_F_IOSIZE
addresses part of PR toolchain/26415
2004-07-24 16:30:50 +00:00
martti 7ff15b917f Upgraded IPFilter to 4.1.3 2004-07-23 05:39:03 +00:00
lukem 9cc32040b1 Implement -M to "merge" entries, even with different types.
This can be used in /etc/security to allow special.local to override
types of entries in special (e.g, replacing a dir with a link).

Rename Wflag to mtree_Wflag, to be more "external namespace" friendly.
2004-07-22 16:51:45 +00:00
atatat d2dd73eec2 More better description of current state of sendmail stuff in more
places.  This is intended to make some people a tad happier.
2004-07-22 03:44:12 +00:00
mycroft b96803cc00 Revert part of rev 1.31. It is *not* necessary to leave the executable
unstripped to load modules.  The symbol table that we strip isn't even loaded
or used by the dynamic linker.
2004-07-21 07:00:27 +00:00
wiz d776e96213 New sentence, new line; drop trailing whitespace; sort sections; use
\*[Lt]\*[Gt] instead of <>; use Dq foo instead of ``foo''; use
standard section headers; fix history: until pulled up, this appeared
in 3.0, not 2.0.
2004-07-16 14:53:13 +00:00
dyoung e0ca220c2c Add wlanctl(8), a utility for examining 802.11 node tables. 2004-07-16 03:13:48 +00:00
mycroft 20e25f9518 Fix portability problems, per PR 5783. 2004-07-06 13:05:25 +00:00
uch bfd65ea205 add hpcsh 2004-07-04 15:55:35 +00:00
drochner f375ea19c6 -before adding a "partition", check for an ISO9660 filesystem,
and print out volume label and creation time
-if the drive cannot be open()ed read-write, try read-only and
 print the information
2004-07-04 14:11:44 +00:00
uch 0afeae9aa7 add hpcsh 2004-07-03 12:55:47 +00:00
agc b186672660 Now that we have SHA1 passwords, modify useradd(8) so that it will accept
an encrypted SHA1 password on the command line.
2004-07-02 12:01:00 +00:00
itojun e090b691c1 pflog if support for tcpdump. Peter Postma 2004-06-29 04:46:35 +00:00
heas ca470f56bb Carriage return missing in error message. 2004-06-27 02:59:46 +00:00
he 30a10ee7dd Since spamdb and it's man page is in the set lists, we ought to
descend into the subdirectory to build and install it as well.
2004-06-26 13:14:27 +00:00
dsl 4114f04963 Put altq back - which Itojun deleted for us in the same revision. 2004-06-25 18:57:37 +00:00
itojun 344e6a89ca spamdb(8) and spamd.conf(5). noted by Thomas Klausner 2004-06-25 16:25:00 +00:00