Mark Newton
545dccdc92
Un-botch my botched reduction in permitted characters in the permitted
...
username check which resulted from my attempt to expand them.
PR: bin/17372
Reviewed by: sheldonh
2000-03-14 14:27:34 +00:00
Bruce Evans
05ecdd7037
Don't try so hard to make the lower 16 bits of fsids unique. It tended
...
to recycle full fsids after only 16 mount/unmount's. This is probably
too often for exported fsids. Now we recycle the full fsids only
after 2^16 mount/ umount's and only ensure uniqueness in the lower 16
bits if there have been <= 256 calls to vfs_getnewfsid() since the
system started.
2000-03-14 14:19:49 +00:00
Mark Newton
44dfd6a858
Fix the case where username validity test would incorrectly fail if
...
the specified username contained uppercase alphabetics.
PR: bin/17372
2000-03-14 14:19:17 +00:00
Ruslan Ermilov
d137714f11
Fix reporting of src and dst IP addresses for ICMP and generic IP packets.
...
PR: 17319
Submitted by: Mike Heffner <spock@techfour.net>
2000-03-14 14:11:53 +00:00
Jeroen Ruigrok van der Werven
612a914d90
Remove wd entries.
...
Reviewed by: sos
Approved by: sos, phk, peter
2000-03-14 13:23:10 +00:00
Jeroen Ruigrok van der Werven
b2381471b9
Remove the wd driver from the i386 kernel options.
2000-03-14 13:18:14 +00:00
Jeroen Ruigrok van der Werven
844a81a990
Remove unused options.
...
Reviewed by: sos
Approved by: sos, phk, peter
2000-03-14 12:55:23 +00:00
Sheldon Hearn
b3d642a00a
Cope with quotation marks around font names in /etc/rc.conf .
...
PR: 17330
Reported by: Anatoly Vorobey <mellon@pobox.com>
2000-03-14 09:28:00 +00:00
Sheldon Hearn
060ac658cc
Open the device read-only initially and re-open read-write if necessary
...
later. This allows tunefs -p on mounted filesystems.
Side-effects:
Use K&R prototypes.
Use definitions from fcntl.h for the flags argument to open(2).
There are cosmetic differences between this and the submitted patch.
PR: 17143
Reported by: Peter Edwards <peter.edwards@ireland.com>
Submitted by: luoqi
2000-03-14 07:44:32 +00:00
Brian Somers
2a30e2ac0b
Understand environment variables in commands
...
Submitted by: Mark Knight <markk@knigma.org>
2000-03-14 01:47:31 +00:00
Brian Somers
d568d6c405
Add the ``resolv'' command for telling ppp how to deal with resolv.conf.
...
You can now ``resolv restore'' in ppp.linkdown !
Add DNS0 and DNS1 macros.
2000-03-14 01:47:27 +00:00
Brian Somers
574a3ffd78
Refresh the NAT IP pointer after a potential mbuf reallocation. This
...
caused frequent lock-ups for individual sessions over a NAT'd ppp link
when MTU sizes ended up more or less exactly wrong.
2000-03-14 01:47:21 +00:00
Brian Somers
209dc10239
Fix some printf-style argument bugs
2000-03-14 01:47:19 +00:00
Brian Somers
ceecaea3de
Fix some typos
...
Obtained from: OpenBSD
2000-03-14 01:47:13 +00:00
Brian Somers
499640f195
Adjust whitespace
2000-03-14 01:47:11 +00:00
Brian Somers
b9fa960d93
Don't include netinet6/in6.h directly.
2000-03-14 01:47:09 +00:00
Brian Somers
8e7bd08ea4
Correct some typos introduced in the descriptor -> fdescriptor change.
2000-03-14 01:47:07 +00:00
Brian Somers
10e629b937
Introduce LOCALNAT and LOCALRAD defines so that the sources can stay
...
exactly the same in FreeBSD & OpenBSD despite libalias and libradius
being local to the ppp sources under OpenBSD.
2000-03-14 01:47:02 +00:00
Brian Somers
f84f2c0057
Correct UN_SIZE definition
...
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
2000-03-14 01:46:58 +00:00
Brian Somers
24731321e6
Don't ``break'' when we come accross a non-RTM_IFINFO type
...
entry in the block returned by the NET_RT_IFLIST mib,
``continue''
Broken a few minutes ago by: me
2000-03-14 01:46:56 +00:00
Brian Somers
d6d3eeab46
When ppp can't identify the relevant name, don't use "???", use
...
<nnn> or <0xxxx> instead.
2000-03-14 01:46:54 +00:00
Brian Somers
52c9ca1968
Add ``set log dns'' to log DNS QUERY packets.
...
This is invaluable for dial-on-demand connections...
In ppp.linkup:
set log -dns -tcp/ip
and in ppp.linkdown
set log +dns +tcp/ip
giving a much better account of why the link came up.
2000-03-14 01:46:49 +00:00
Brian Somers
6b4579784c
The interface list that comes back from the PF_ROUTE/NET_RT_IFLIST mib
...
is aligned. Teach this to ``show route''.
Clean up some of the sockaddr parsing routines.
2000-03-14 01:46:44 +00:00
Brian Somers
6b38466448
Support IP6 addresses in ``show route''
...
Also, don't try to output routing entries if either the
RTA_DST or RTA_GATEWAY sockaddrs aren't present.
2000-03-14 01:46:38 +00:00
Brian Somers
76ce2d4bcb
When adjusting timer::rest, round to the closest TICKUNIT usecs
...
value.
This has minimal impact here, but if ppp ever needs to frequently
remove timers before they've timed out, it can badly skew the next
item in the timer list without this change.
The correct fix would be to store usecs in `rest' rather than
TICKUNITs, but the math is easier if we just round...
2000-03-14 01:46:34 +00:00
Brian Somers
e722aa17f8
When we stop a timer that's the first in the timer list, ensure
...
that we adjust that timers `rest' value (with the current getitimer()
values) before using that to adjust the next items `rest' value.
After adjusting that value, restart the timer service so that we've
now got the correct setitimer() values.
2000-03-14 01:46:31 +00:00
Brian Somers
f013f33ee2
To avoid namespace polution in NetBSD:
...
``struct descriptor'' -> ``struct fdescriptor''
2000-03-14 01:46:09 +00:00
Brian S. Dean
56fc73ff9b
In 'ipcperm()', only call 'suser()' if it is actually required.
...
Previously, it was being called whether it was needed or not and the
ASU flag was being set (as a side affect of calling 'suser()') in
cases where superuser privileges were not actually needed. This was
all pointed out to me by Bruce Evans.
Reviewed by: bde
2000-03-13 23:00:08 +00:00
Kris Kennaway
c9b2af93fa
Test for existence of secure/, not crypto/ for consistency
...
Submitted by: jhay
2000-03-13 21:38:10 +00:00
Kris Kennaway
ee9e4faa2d
Fix world with -DNOCRYPT, hopefully fix release for non-crypto collection.
...
Reported by: Jason Garman <jgarman@wedgie.org>
Feedback by: bde, Bob Bishop <rb@gid.co.uk>, jhay
2000-03-13 21:35:30 +00:00
Daniel C. Sobral
370af64c61
Rescan the SCSI bus of just-added aic devices, so they can be used
...
during installation.
2000-03-13 20:41:29 +00:00
Ruslan Ermilov
b0642e8fda
Teach Fx and Os about FreeBSD 4.1 and FreeBSD 5.0.
2000-03-13 19:44:24 +00:00
Archie Cobbs
b1ea638805
Remove erroneous built-in help information for the 'msg' command.
2000-03-13 19:23:16 +00:00
Guy Helmer
5b0e9f8cb1
Fix parsing of commands after @ keywords (@hourly, @daily, etc.).
...
Fix setting of "hour" bitmap when @hourly keyword is specified.
MFC candidate after 4.0-RELEASE.
Problem-found-by: Sheldon Hearn <sheldonh@uunet.co.za>
2000-03-13 19:21:17 +00:00
Archie Cobbs
a7dc837919
- Document updates in iface netgraph node type functionality
...
- Remove makefile hacks for opt_inet.h, etc: the KLD now supports
whatever address families your kernel was compiled with automagically
2000-03-13 19:19:48 +00:00
Archie Cobbs
15ba31b9ad
Updates to the ng_iface(8) netgraph node type:
...
- Make iface nodes removable on shutdown since FreeBSD now supports
removable interfaces
- Simplify supporting new protocols using family_enqueue(); add a
few new ones including IPv6
- Add support for configurable interface mode using new
NGM_IFACE_POINT2POINT and NGM_IFACE_BROADCAST control messages
- Remove NGM_IFACE_GET_IFADDRS control message; it just duplicates
the functionality of SIOCGIFCONF
2000-03-13 19:18:10 +00:00
Sheldon Hearn
465c6ce100
Back out previous commit. The code is not ready for it.
2000-03-13 19:13:48 +00:00
Archie Cobbs
9a9a26fd5a
Some minor prototype tweaks.
2000-03-13 19:05:11 +00:00
Archie Cobbs
af207f2160
Use snprintf() instead of sprintf().
2000-03-13 18:54:10 +00:00
Archie Cobbs
c1b9e5f25b
Fix typo: "ng_parse_fixedsstring_info" -> "ng_parse_fixedstring_info"
2000-03-13 18:50:38 +00:00
Bill Fumerola
3bbd4ccc80
-CURRENT is now 500000, reflect that.
2000-03-13 18:47:48 +00:00
Bill Fumerola
1df05fbeab
Welcome to 5.0-CURRENT. (__FreeBSD_version = 500000)
...
Approved by: jkh, phk
2000-03-13 18:44:36 +00:00
Archie Cobbs
ef02c1e500
Fix typo.
...
Reported by: Robert Swindells <swindellsr@genrad.co.uk>
2000-03-13 18:29:58 +00:00
Daniel C. Sobral
3f688d5afb
RELENG_4 cvsup files. I'm betting these names are going to be changed,
...
but by virtue of no one else getting to do this after I mentioned it,
they get to be named this for now.
2000-03-13 17:31:44 +00:00
Matt Jacob
6ca3a52f59
Don't do bus resets for ULTRA2 or later cards because what seems to
...
happen currently is that several commands issued *after* the bus reset are
then reported destroyed.
2000-03-13 16:30:00 +00:00
Bruce Evans
03e4dc0805
Fixed a spelling error that disabled the rc driver.
2000-03-13 15:29:47 +00:00
Nick Sayer
c36837a8d8
Fix some style bugs. The long line is in a chunk of code that's
...
being rewritten, though.
Submitted by: bde
2000-03-13 15:27:19 +00:00
Sheldon Hearn
a7623b801d
Add a standard option list and make appropriate changes to the
...
body of the description.
This is based on a patch from Nick Sanders <fishy@hotbot.com>.
PR: 11978
2000-03-13 14:54:55 +00:00
Bruce Evans
311b554beb
Disabled the optimization of not doing an invltlb_1pg() when changing
...
pte's from zero. The TLB is supposed to be invalidated when pte's are
changed _to_ zero, but this doesn't occur in all cases for global pages
(PG_G stops invltlb() from working, and invltlb_1pg() is not used
enough).
PR: 14141, 16568
Submitted by: dillon
2000-03-13 14:47:46 +00:00
Jeroen Ruigrok van der Werven
023caa7b58
Fix another include error. Inspired by the last commit.
2000-03-13 13:41:40 +00:00