Commit Graph

8982 Commits

Author SHA1 Message Date
Max Khon
d4c6c8f992 RFC1548, section 5.8:
Echo-Request and Echo-Reply packets may only be sent in the LCP
Opened state.  Echo-Request and Echo-Reply packets received in any
state other than the LCP Opened state SHOULD be silently discarded.

PR:		45760
Submitted by:	Eugene Grosbein
MFC after:	2 weeks
2003-04-07 13:34:00 +00:00
Maxim Konovalov
0389572f96 Free login_cap(3) resources after usage.
Submitted by:	demon
2003-04-07 10:16:37 +00:00
Stephen McKay
91d7dc23c1 Remove the maximum patch size limit. It was intended as a check against
applying corrupt deltas, but has never (to my knowledge) caught any sort
of corruption, but instead has caused failures on correct deltas several
times.  I don't see any way to make the check useful, so it's gone.

Submitted by:	Stephen Montgomery-Smith <stephen@math.missouri.edu>
PR:		50461
MFC after:	7 days
2003-04-07 08:09:53 +00:00
Robert Watson
3e3a4395a9 s/obsoelte/obsolete/ 2003-04-07 04:42:37 +00:00
Warner Losh
07057f7675 Improve, and slightly soften, the deprecated flags. Call them deprecated
and not obsolete, but add a warning about their disappearance.

Add additional notes that explain the lameness of WEP.
2003-04-06 19:27:49 +00:00
Warner Losh
e0b29225ea o Tone down the obsolete messages since we actually do something, for
the moment, with the deprecated flags.
o Better error reporting on getting values from the driver.  When we can't
  get one for the default dumpinfo output.  The old driver would succeed
  for invalid RIDs, while the new driver reports errors.  Since the info
  we're getting from the card/driver doesn't exist for all cards, we just
  don't report them.  Improve error reporting elsewhere now that wi_getval
  doesn't exit.  Also fix a file descriptor leak as a side effect.

Reported by: scottl
2003-04-06 19:11:33 +00:00
Nate Lawson
3f171d2283 Use assignment, not equivalence test.
No response from:	suz
2003-04-05 20:54:54 +00:00
Hajimu UMEMOTO
b706c03da0 When session is over, IPv6 default route to tun should be
removed, too.

MFC after:	1 week
2003-04-05 10:10:33 +00:00
David E. O'Brien
052238b16c style.Makefile(5) 2003-04-04 17:49:21 +00:00
Robert Drehmel
b61ee45f0e - Print out an error message instead of dereferencing a NULL pointer
if matchinstalled() found no packages, which happens to be the
   case after fresh installations.
 - Instead of using strstr(3) to match the package name, depend on
   matchinstalled()'s MATCH_REGEX package matching.

PR:		bin/50384
MFC after:	2 weeks
2003-04-04 14:40:49 +00:00
Hajimu UMEMOTO
977e6c08fe Set link-local address of tun interface with prefixlen = 64
instead of 128.  It makes RA happy.

Reported by:	rafa@dif.um.es,
		SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp>
Reviewed by:	SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp>
MFC after:	1 week
2003-04-04 11:09:08 +00:00
SUZUKI Shinsuke
ac03f2af25 fixed invalid pointer reference
Obtained from: KAME
2003-04-02 11:35:51 +00:00
Maxim Konovalov
b026ec0eb8 o Fix error messages formatting, style.
Prodded by:	bde
Reviewed by:	bde
2003-04-02 09:20:08 +00:00
David E. O'Brien
2d57da023a Back out the totally unapproved backout of my commits. 2003-03-29 03:03:42 +00:00
Hajimu UMEMOTO
bbdd270714 If IPCP is disabled, susccess of IPV6CP negotiation is sufficient
to communicate by IPv6.  So, the prompt should be `PPP' rather
than `PPp'.
2003-03-28 18:23:43 +00:00
Robert Watson
8cd5699048 Don't pass NULL in as a flags argument to libfetch's fetchGetURL()
as this can result in a NULL pointer deference when parsing the
flags later.  This change fixes "pkg_add -r" on 5.0-CURRENT for
me; not quite clear how the problem was introduced.
2003-03-27 20:44:09 +00:00
Maxim Konovalov
d6131f4b8e o Add -u <username> flag to jail(8): set user context before exec.
PR:		bin/44320
Submitted by:	Mike Matsnev <mike@po.cs.msu.su>
Reviewed by:	-current
MFC after:	6 weeks
2003-03-27 12:16:58 +00:00
Eivind Eklund
b11003f306 Change DEFMX to 0. This removes the size limit for print jobs by default.
Discussed with: gad (now), arch (a year ago)
2003-03-27 08:33:01 +00:00
Chris Costello
03b920e1a8 Add a sample specfile listing to FILES.
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-26 20:25:13 +00:00
Hajimu UMEMOTO
8a9448cabc tightened check for the length of ND options.
Submitted by:	jinmei@kame.net (JINMEI Tatuya)
Obtained from:	KAME
2003-03-26 17:28:47 +00:00
Hajimu UMEMOTO
34894c56bc Don't install wrong IPv6 route by add command. 2003-03-26 06:30:11 +00:00
Brian Somers
92941b9076 Passing a u_char to ntohs() is guaranteed to give the wrong answer !
Submitted by:	Francis Dupont <Francis.Dupont@enst-bretagne.fr>
2003-03-26 02:27:32 +00:00
Brian Somers
9603d5b40d Add a ``force-scripts'' option for using chat scripts with -direct and
-dedicated links.

Submitted by:	Maksim Yevmenkin <myevmenk@exodus.net>
2003-03-26 02:03:08 +00:00
Hajimu UMEMOTO
3efad8b488 Once ppp session is over, the route to ff02::tun0/32 was
deleted, and never came back.  Now, the route to
ff02::tun0/32 is installed at the end of IPV6CP negitiaton.
2003-03-25 17:01:39 +00:00
Hajimu UMEMOTO
93193fc76c We need filling scopeid to install routes for link-local
scope addresses.
2003-03-25 16:49:08 +00:00
Hajimu UMEMOTO
11f9e243a2 Since ppp.link{up,down} is invoked at the end of IPCP negotiation, if
we need ppp.link{up,down}, we couldn't disable IPCP.  Now, if IPCP is
disabled, ppp.link{up,down} is invoked at the end of IPV6CP
negotiation.
2003-03-25 15:59:27 +00:00
Matthew N. Dodd
a9cd061a2a - Add the 'b' option which causes BLOCKSIZE to be hornored when
the 'q' or 'Q' options are present.
- Document BLOCKSIZE.
2003-03-25 01:22:42 +00:00
Matthew N. Dodd
5e3714183f Implement the 'Q' option which is like 'q' (quiet output) except
that it prefaces the output with the package name.

This is useful for things like this:

# pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10
2003-03-25 00:51:41 +00:00
Eivind Eklund
feb33ffc3a Use correct item to track max width of list 2003-03-24 20:55:28 +00:00
Eivind Eklund
07796aea23 Fix bug that made cdcontrol play <track> play <track> - 1 2003-03-24 20:54:30 +00:00
Mike Makonnen
e33b8d973e Document the -g option in the usage message.
Approved by:	markm (mentor)(implicit)
2003-03-23 23:06:44 +00:00
Giorgos Keramidas
6bf611a72d Make -c only set flag_c and not a toggle. With flag_c disabled by
default, this makes the behavior of gstat more predictable when -c is
specified multiple times on the command line.
2003-03-22 09:47:02 +00:00
Giorgos Keramidas
ceecf6a783 Add a small manpage. 2003-03-22 09:44:56 +00:00
Giorgos Keramidas
ab42be1fbf Add & use a usage() function. 2003-03-22 09:39:52 +00:00
Giorgos Keramidas
4fe8c1b67b Add error and range checking to strtoul() to avoid ending up with a
delay time of ULONG_MAX when -I is passed a non-numeric arg.
2003-03-22 09:23:29 +00:00
Poul-Henning Kamp
3cc4ca2df5 Why doesn't anybody ever tell me anything? When did we get a libsbuf ?
Geeze, I'll just crawl back into the kernel where I know what's going on...

Use libsbuf instead of pulling a file in from the kernel.

Taught by:	jhb
2003-03-21 17:10:54 +00:00
Ruslan Ermilov
09823ba540 Fixed a typo in ${.CURDIR} spelling, fatal on systems
without the /sys symlink pointing to the current tree.
(Revision 1.2 made it non-fatal, but anyway.)

Apply style.Makefile(5).

Fixed ``make checkdpadd''.
2003-03-21 14:45:46 +00:00
Poul-Henning Kamp
5296f07660 Duh! Use correct number ../
spotted by:	imp
2003-03-21 14:30:16 +00:00
Robert Drehmel
80fc33c35f Add a target for the creation of a /etc/shells map and add it to
the maps which are built by default.
2003-03-21 11:44:03 +00:00
Giorgos Keramidas
dfb085cc35 Call endwin() to restore terminal state just before exiting.
Approved by:	phk
2003-03-21 09:34:23 +00:00
Poul-Henning Kamp
54a8adabd3 Add a rudimentary gstat(8) to the system.
This is a small curses based program which shows the diskactivity
inside GEOM.
2003-03-20 20:48:41 +00:00
Mike Makonnen
642a7af59a Add a -g option to specify a default login group.
Approved by:	markm (mentor)(implicit)
2003-03-20 16:36:03 +00:00
Anton Berezin
0f02c85ed1 The -s option should not assume -U.
MFC After:	2 weeks
2003-03-19 10:56:34 +00:00
Mike Makonnen
187a97aab9 o initialize a couple of local flags so the user can re-edit groups
next time the subroutine is re-entered
o s/configrun/configflag/
o Make the prompt make sense if the user was creating a configuration file

Approved by:	markm (mentor)(implicit)
2003-03-19 08:07:15 +00:00
Maxim Konovalov
3b8a7d4f4f portmap_enable -> rpcbind_enable.
Spotted by:	Andrew Khlebutin <andreyh@perm.ru>
2003-03-18 14:01:02 +00:00
Poul-Henning Kamp
7194d335cf Run a revision of the devstat interface:
Kernel:

Change statistics to use the *uptime() timescale (ie: relative to
boottime) rather than the UTC aligned timescale.  This makes the
device statistics code oblivious to clock steps.

Change timestamps to bintime format, they are cheaper.

Remove the "busy_count", and replace it with two counter fields:
"start_count" and "end_count", which are updated in the down and
up paths respectively.  This removes the locking constraint on
devstat.

Add a timestamp argument to devstat_start_transaction(), this will
normally be a timestamp set by the *_bio() function in bp->bio_t0.
Use this field to calculate duration of I/O operations.

Add two timestamp arguments to devstat_end_transaction(), one is
the current time, a NULL pointer means "take timestamp yourself",
the other is the timestamp of when this transaction started (see
above).

Change calculation of busy_time to operate on "the salami principle":
Only when we are idle, which we can determine by the start+end
counts being identical, do we update the "busy_from" field in the
down path.  In the up path we accumulate the timeslice in busy_time
and update busy_from.

Change the byte_* and num_* fields into two arrays: bytes[] and
operations[].

Userland:

Change the misleading "busy_time" name to be called "snap_time" and
make the time long double since that is what most users need anyway,
fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same
timescale as the kernel fields.

Change devstat_compute_etime() to operate on struct bintime.

Remove the version 2 legacy interface: the change to bintime makes
compatibility far too expensive.

Fix a bug in systat's "vm" page where boot relative busy times would
be bogus.

Bump __FreeBSD_version to 500107

Review & Collaboration by:	ken
2003-03-15 21:59:06 +00:00
Warner Losh
e0a6103d7d manufacturer id is typically 4 bytes 2003-03-14 21:11:01 +00:00
Jake Burkholder
a24fa5bdb2 Increase the size of the property buffer to 8192. 1024 wasn't enough to
retrieve certain nodes.
2003-03-14 16:12:42 +00:00
Peter Pentchev
2be1729151 Remove ftp2.it.FreeBSD.org from the list of mirrors.
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
Approved by:	silence on -arch
2003-03-14 15:47:14 +00:00
Warner Losh
62bac311fc Don't be so verbose about 'unknown' CIS tuples. We were printing each
one three times before we did the dump.  Also, we printed 0x00 for the
tuple type rather than the actual tuple type.  Now, we print the
actual tuple type.  This appears to have no ill effects.

Should get rid of the

Code NN not found
and
code Unknown ignored

messages.  The ignored messages are still generated for tuples tuples
who have a minimum length set and we find a tuple of that type that's
shorter than the minimum length.
2003-03-14 13:17:35 +00:00