Commit Graph

3870 Commits

Author SHA1 Message Date
eeh 780f68fd71 Add a flag to turn on debugging so you don't need to recompile or patch
the binary to turn it on.
2000-08-03 21:14:19 +00:00
itojun afa5315364 correct typo in #define. ICMP6_NI_SUCESS -> SUCCESS (notice missing C).
sync with kame.
2000-08-03 14:31:04 +00:00
ad 308c65aabe KNF. 2000-08-03 08:22:33 +00:00
assar d6e38c7f36 update build infrastructure for heimdal 0.3a 2000-08-03 04:13:22 +00:00
fvdl 018ee18dee Do not check unitialized variables as error values. This is generally
frowned upon, or so I hear.
2000-08-03 00:07:22 +00:00
fvdl ad91c2992c When merging addresses, and no direct match is found, pick the first
configured interface that is preferably not local or point to point.
This appears to be what Solaris does as well.
2000-08-03 00:04:30 +00:00
jwise b240da3ec1 Fix circular reference. Instead of cross referencing itself, dhcpd.conf(5)
now cross-references dhcpd(8).
2000-08-02 18:23:44 +00:00
hubertf d3bf5ce16a add missing .TP 2000-08-01 18:46:22 +00:00
itojun 51156effd6 be more paranoid about UDP-based echo services validation. namely,
reject the following sources:
	0.0.0.0/8 127.0.0.0/8 240.0.0.0/4 255.0.0.0/8
	ff00::/8 ::/128
	::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule.
hint from deraadt.
2000-08-01 18:42:08 +00:00
itojun 058e85bfc6 we shouldn't use "(ip + 1)" to detect intermediate headers (AH/ESP).
we should use ip_p == IPPROTO_TCP/UDP.
2000-08-01 17:39:46 +00:00
itojun bec9b9854d IPv6 UDP header checksum. 2000-08-01 17:35:18 +00:00
itojun 1c0969bf27 use of ip_p is irrelevant in tcp_cksum, as we may have AH/ESP inbetween. 2000-08-01 17:34:00 +00:00
itojun d9bba2ca98 some merge from tcpdump.org code.
- print-telnet.c: do not print control character
- print-icmp6.c: improve icmp6 node information printing
  (we need to at least meet our kernel code!)
- update dhcp6 printing to 15 draft (14 and 15 are totally incompatible)
- add safeputc() and safeputs() into util.c
2000-08-01 17:29:47 +00:00
itojun 1174b9a1a9 implement tcp6 pseudo header cksum. 2000-08-01 17:24:40 +00:00
jdolecek 973a6510c5 backup previous - including ../Makefile.inc does have some
side effects (as pointed by enami), and I changed my build
environment to not need such hack
2000-07-31 17:25:47 +00:00
itojun 8e95963981 fix behavior or -A. routing table check does not seem to working right. 2000-07-30 17:26:14 +00:00
itojun f96e3b36f6 generate ipnodes.{byname,byaddr} for IPv4/v6 lookups.
hosts.{byname,byaddr} is still an IPv4 only mapping.
obeys solaris8 practice.  see comments in ypinit/Makefile.yp for details.

TODO: interop test with solaris8 (any takers?)
2000-07-30 02:33:13 +00:00
itojun 863848734f with -n, permit non-IPv4 address in the output.
option name synchronized with solaris 8.
2000-07-30 02:25:08 +00:00
christos d9737d6850 - detect duplicate keys when initializing the database. abort if too many
duplicate keys are found indicating a corrupted database (avoids problem
  where sa would loop forever).
- add open flags and mode in dbopen in case someone wants to debug...
2000-07-29 19:15:40 +00:00
christos d04a051588 remove unused debugging variable 2000-07-29 19:13:34 +00:00
christos 272ef31d3b declare formatting function. 2000-07-29 19:12:48 +00:00
christos b834536a8d - read file using stdio
- knf
- add usage function
- add DBT formatting function used for diagnostics
2000-07-29 19:12:17 +00:00
jdolecek 19c28ebcf8 pull in ../Makefile.inc before bsd.prefs.mk, in case someone (like me)
has some stuff depending on e.g. value of WARNS in /etc/mk.conf
2000-07-29 12:44:45 +00:00
onoe 2761069b0f Confirmed the maximum length of the key for WaveLAN Gold cards is
13 characters, not 14.  The 13 characters (104bit) secret will be
combined with 24-bit IV to consist the seed for 128-bit RC4.
Though maximum 14 characters can be configured in seven 16-bit hardware
registers, the last charactoer is apparently ignored both for encryption
and decryption.
2000-07-27 20:24:19 +00:00
itojun 0e416c083c add usr.bin/{hoststat,purgestat}, which are new argv[0] hack
for sendmail 8.10.x and beyond.  sorry that i forgot to add this one.

From: Andrew Brown <atatat@atatdot.net>
2000-07-26 16:35:33 +00:00
hubertf 8102826629 Keep *roff from eating things.
Noted in PR 10687 by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
2000-07-26 15:18:09 +00:00
mycroft 98a44cdc45 Do the PTRSIZE_64BIT thing in the port-specific .h file instead. 2000-07-26 14:41:23 +00:00
ad 93508ea1b3 Print a space after printing 802.1Q header information. 2000-07-26 10:48:15 +00:00
cgd 4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
dmcmahill 43301f1fee Fix a buffer overrun bug. The TOOBIG macro had some hard coded constants
which needed to be set at compile time but weren't (to handle the case where
TAR_CMD was set to something other than "tar", eg "gtar".  In addition to
the constants being wrong, the wrong directory name was being examined for
its string length.

Add a few comments to hopefully avoid having this problem come back.
2000-07-24 20:09:15 +00:00
ad a73283ac00 Dump 802.1Q encapsulated packets. From tcpdump.org. 2000-07-24 15:32:43 +00:00
hubertf c0f021878e handle NULL pen variable more gracefully in find_play_pen() 2000-07-24 02:54:22 +00:00
mycroft 883a3e4835 Make alloc() return void*, and eliminate the use of typeof. 2000-07-23 23:14:10 +00:00
mycroft fddf849c29 Make this build for sparc64. 2000-07-23 23:07:39 +00:00
mycroft 1f1da49497 Eliminate a bunch more // annotations. 2000-07-23 23:05:38 +00:00
mycroft a6fc55d840 //#define -> #undef 2000-07-23 22:59:56 +00:00
mycroft 70c4e41552 Remove bogus typeof hack, and just use the type directly. 2000-07-23 22:54:51 +00:00
mycroft 64ef2ce0d3 Define PTRSIZE_64BIT for alpha and sparc64. 2000-07-23 22:44:07 +00:00
simonb 2e7c137de8 Use /usr/share/doc/html/ntp as location for html files.
Fixes remainder of PR bin/10613 from Jaromír Doleèek.
2000-07-23 14:34:14 +00:00
mellon 2749a115e8 Back out previons revision in favour of a simpler solution. 2000-07-23 07:13:57 +00:00
mellon 893c278cbb Put missing PATH= in CLIENT_PATH define. 2000-07-23 07:10:00 +00:00
thorpej 84ffef610f Set the PATH environment variable properly. Now this actually
works again.
2000-07-23 05:34:53 +00:00
thorpej f407f6eb9d CPP directives go into CPPFLAGS, not COPTS. 2000-07-23 05:33:21 +00:00
pk 171b3bf97a dhcp_option_ev_name: make argument `buflen' match the prototype. 2000-07-22 20:54:56 +00:00
tron fd8ae9c4ea Use correct argument type in call to "fparseln(3)". Fix supplied by
Motoyuki Konno in PR bin/10645.
2000-07-21 16:03:14 +00:00
mjl 0b02557654 Increase buffer size to maximum allowed by spec (filename may be
up to 128 chars long).
Ignore filenames longer than this.
Use syslog with %s as format, just in case.
The above changes come from OpenBSD.

Also use #define instead of magic constants.
2000-07-21 12:37:00 +00:00
agc 45fccde78f Fix typo. 2000-07-20 12:41:28 +00:00
mellon aa27884601 Client path defined in Makefile. 2000-07-20 06:33:50 +00:00
thorpej 29ea834f56 If we don't get direct match on the token, only attempt to canonicalize
the token if it does not contain globbing characters, and just skip onto
the next line if it does.
2000-07-20 06:21:51 +00:00
mellon 4b564fe2bf Merge 20000719 changes 2000-07-20 05:59:17 +00:00
mellon 8e7171f5ab Final (I hope) DHCP client security fix. 2000-07-20 05:49:35 +00:00
enami e1d0d284cf Free the storage allocated by fparseln when skipping an empty line. 2000-07-19 08:41:13 +00:00
enami edea8c9791 You can't just define read_line as fparseln since former keeps the storage
internally but latter allocates everytime.
2000-07-19 07:52:44 +00:00
tron eb738db50f Resolve conflicts from import. 2000-07-16 22:10:10 +00:00
jdolecek 9e1ce523c5 account(): fix so that number of copies is optional and whitespace
between it and hostname:username is optional as well (some software relies
in this); while here, covert to use sscanf() instead of explicit parse code,
sprinkle some comments

dumpit(): change so that the price is total price for this entry, instead of
beeing price per copy

Addresses bin/9996 by Brian Stark, though the implementation differs from
patch code attached to it.
2000-07-16 21:33:26 +00:00
itojun b141a4af1e always check getnameinfo errors. pass NI_WITHSCOPEID to
getnameinfo if declared.
2000-07-16 14:07:39 +00:00
enami 0eca5025a3 Fix a typo which causes coredump or wrong output when dumping NFS traffic. 2000-07-16 12:34:06 +00:00
itojun 55108de1d4 remove debug printf(). 2000-07-16 08:13:34 +00:00
itojun aa16ae57f1 fatal typo: need listen(tcp6sock). 2000-07-16 08:11:34 +00:00
itojun 06ee23e6b3 sync with latest kame.
- remove obsolete non-advanced-api support.
- if a routing entry exists for aggregate prefix (-A), do not overwrite
  the routing entry (exit with error).
2000-07-15 04:55:40 +00:00
mason 662fbfe2f1 Removed redundant / extra prototypes. 2000-07-12 22:36:12 +00:00
ad a90951c0f1 Xr newsyslog. 2000-07-11 12:43:50 +00:00
itojun 608c7038b1 sync with latest kame. wording and .Nm/.Xr clearifications. 2000-07-10 08:58:31 +00:00
mellon 803abd7fc5 Actually fix a bug I thought I'd alread fixed 2000-07-09 07:04:10 +00:00
itojun f85b415274 sync with more recent kame.
- fix memory leak with realloc()
- warn if we see packets with junk outside of IPv6 prefix length
- cosmetic
2000-07-09 03:06:18 +00:00
mellon f1157334e4 Oops, fix one more conflict. 2000-07-08 20:53:57 +00:00
mellon d1340e80d6 Fix conflicts in latest import. 2000-07-08 20:52:11 +00:00
mellon f1127576c6 Latest revision of the ISC DHCP Distribution, with many bug fixes. 2000-07-08 20:40:10 +00:00
itojun b44d184dec permit square-bracket notation (as in RFC2732) for the first element
in inetd.conf.  otherwise, we'll have (minor) problem putting IPv6 address in.
sync with kame.

[::1]:ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
2000-07-08 01:55:24 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
itojun 7bf16d3ecc explicitly check if the address family is supported, by using socket(2). 2000-07-07 14:56:45 +00:00
enami 2fffbc9c4c No space is allowed between owner and optional :group. 2000-07-07 13:21:32 +00:00
itojun fed1a1bf38 warnx?/errx? audit (don't pass variable alone). from openbsd. 2000-07-07 12:22:32 +00:00
itojun 7ebfc079d9 syslog() audit - do not use it with a variable alone. from openbsd 2000-07-07 11:39:41 +00:00
hubertf 0379a1727a remove/hide some debugging code 2000-07-06 16:06:36 +00:00
itojun 19a4d0910c sync with sys/netinet/icmp6.h change (no bitfield for router renumber).
more logging.  improve error handling/garbage collection.  sync with kame.
2000-07-06 12:37:56 +00:00
enami 3268786888 - Process all passed option rather than ignoring silently except the first one.
- Centerize the check whether an interface is specified.
- Print maximum data length.
- Swap wi_type and wi_code in struct wi_table so that wi_type matches with
  wi_type in wi_req.
2000-07-06 03:37:26 +00:00
itojun 4941865cd4 setproctitle fix. from openbsd 2000-07-05 22:21:15 +00:00
hubertf 7ca7a7f658 Only calculate MD5 checksum for plain files.
As a side effect, fixes handlink of links to dirs.
2000-07-05 20:18:16 +00:00
hubertf 2b35b3d322 * Move comment around a bit
* Document some return code
2000-07-05 20:17:04 +00:00
itojun 31431ac193 always use %s for setproctitle. from openbsd-current 2000-07-05 17:59:58 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
itojun 358c3cf8dc more change on getaddrinfo error handling.
XXX enami, I admit it is not a good thing to check the error code from
getaddrinfo.  it is sometimes mandatory, however.  gai_strerror message
can be too generic in some cases.  we can't really extend getaddrinfo,
as it was not invented by kame (see RFC2553)
2000-07-05 12:43:06 +00:00
matt 3ab02a8704 More #include <stdlib.h> string, etc. cleanup 2000-07-04 20:27:35 +00:00
thorpej 6851dd879b Update ifconfig example to show that the interface has to be created. 2000-07-04 20:08:32 +00:00
itojun e9bf9cf7a1 allow faithd(8) to be invoked via inetd(8), just like tcpd (of tcp_wrappers).
sync with kame.

benefits: allows us to access-control inbound traffic by using hosts.allow(5).
possible drawbacks: inetd mode has no chance for multi-connection-per-single-
process enhancement.  current faithd(8) needs 1 process per 1 connection
anyways.
2000-07-04 13:28:13 +00:00
itojun 798ee6865c add faithd(8) support. with "faith/tcp6" protocol specification,
it will open a socket with setsockopt(IPV6_FAITH).
2000-07-04 13:25:39 +00:00
itojun 9282955dca emit more friendly message on nonexistent service name.
From: enami
2000-07-04 09:33:55 +00:00
enami e9aaacc880 If the line wasn't for the client we are looking for, skip it.
While I'm here, I indented the continuation line properly.
2000-07-04 08:18:44 +00:00
itojun 0b740ef377 beautify SYNOPSIS section with .Bk - .Ek pair.
correctly describe "no option" behavior (show 802.11 setting).
add comment about statistics update delay (-o).

TODO: should put \n after sentences
2000-07-04 05:20:03 +00:00
itojun 0f20cdad3f check for mux service by ISMUX(), not by != NORM_TYPE
(the assumption can bite us if we extend se_type to have more cases).
2000-07-03 23:40:59 +00:00
itojun ee1989a0d1 remove duplicated ipsec setup code. we always call setup() on
socket reinitialization (like SIGHUP).
sync with kame.
2000-07-03 23:37:17 +00:00
enami 6412403c8a Fix few typos. 2000-07-03 10:16:10 +00:00
enami 8ab9946e10 Substitute the cross reference to portmap(8) with rpcbind(8). 2000-07-03 10:06:24 +00:00
itojun 1f62fd302f add more security notice about relaying rsh/rlogin taffic. (sync with kame) 2000-07-03 08:37:20 +00:00
enami d985c8daa6 Don't hardcode like "[ -v 1|2|3|4 ]". 2000-07-03 08:31:22 +00:00
enami 511d11787c Use .Ar macro for the flag arguments. 2000-07-03 05:21:19 +00:00
itojun f244aa6821 correct usage of route(8) in example. 2000-07-02 09:17:30 +00:00
jwise ea7e9f5176 Fix minor thinko in previous. Make sure we close and keep closed all
sockets in the situation where all of the following are true:

	* /etc/syslogd.conf contained forwarding actions when we were
	  started up or when we last received a HUP

	* /etc/syslogd.conf has had all forwarding actions removed

	* we are running with -s

and we receive a HUP.
2000-07-02 02:15:34 +00:00
augustss 826490bf58 Indicate that the device argument is not mandatory. 2000-07-02 00:55:47 +00:00