archie [Mon, 13 Mar 2000 19:19:48 +0000 (19:19 +0000)]
- 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
archie [Mon, 13 Mar 2000 19:18:10 +0000 (19:18 +0000)]
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
dcs [Mon, 13 Mar 2000 17:31:44 +0000 (17:31 +0000)]
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.
mjacob [Mon, 13 Mar 2000 16:30:00 +0000 (16:30 +0000)]
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.
bde [Mon, 13 Mar 2000 14:47:46 +0000 (14:47 +0000)]
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).
mdodd [Mon, 13 Mar 2000 11:59:21 +0000 (11:59 +0000)]
Copy how everyone else is doing packet transmission. (NetBSD mostly)
I've been running this for a month or so and have had no problems with it
and if I recall it was my last speed tweak. Holler if this breaks anything.
mdodd [Mon, 13 Mar 2000 11:48:03 +0000 (11:48 +0000)]
Call epstop() in ep_attach(). While this shouldn't be necessary we'll
do it just in case. (Actually, with PCMCIA cards we can get in a state
where it may be required.)
kris [Mon, 13 Mar 2000 09:55:53 +0000 (09:55 +0000)]
Add a new function stub to libcrypto() which resolves to a symbol in
the librsa* library and reports which version of the library (OpenSSL/RSAREF)
is being used.
This is then used in openssh to detect the failure case of RSAREF and a RSA key
>1024 bits, to print a more helpful error message than 'rsa_public_encrypt() fai
led.'
dmlb [Sun, 12 Mar 2000 22:54:29 +0000 (22:54 +0000)]
* add the start_join_net - done
* i needed it anyway
* remove startccs and startcmd - done
* as those were used for the NetBSD start timeout
* multicast - done but UNTESTED
* I don't have the ability/facilty to test this
* rxlevel - done
* stats reported via raycontrol
* getparams ioctl - done
* reported via raycontrol
* start_join_done needs a restart in download_done - done
* now use netbsd style start up
rwatson [Sun, 12 Mar 2000 22:16:18 +0000 (22:16 +0000)]
Expand the increasingly inaccurately named NOSPAM /etc file list to include
new sample database files, so that they will be installed with make
distribution. NOSPAM probably ought to be renamed to MAIL.
rwatson [Sun, 12 Mar 2000 22:08:35 +0000 (22:08 +0000)]
Add sample databases for sendmail (access, mailertable, virtusertable),
as well as rename access.txt back to the standard access. Also modify
the Makefile to know how to build hashes for each of these databases.
If one of the databases is missing when Make is run, use a commented
out version of the sample.
shin [Sun, 12 Mar 2000 20:35:54 +0000 (20:35 +0000)]
IPv6 related configuration updates.
- 6to4(stf) interface configuration.
- Static route configuration.
- Comment additions.
- Replaced a still existed '@' to '%' in IPv6 scoped addr format.
(This became necessary as previous IPv6 scoped addr format change.)
Much thanks to ume, who helped me reviewing, testing, and finding problems
with these changes.
shin [Sun, 12 Mar 2000 20:27:26 +0000 (20:27 +0000)]
Change __KAME_VERSION value. Added the word "FreeBSD4.x" to identify the
system with other platform and/or other version of FreeBSD, which is also
integrated KAME code based on another date.
bde [Sun, 12 Mar 2000 14:23:21 +0000 (14:23 +0000)]
Try harder to make the lower 16 bits of fsids unique. The vfs type
number was packed very wastefully, giving perfect non-uniqeness in
the lower 16 bits of fsids for filesystems with the same vfs type.
This made linux_stat() return perfectly non-unique (broken) 16-bit
st_dev's for nfs mount points, and effectively reduced mntid_base to
8 bits so that the vfs_getnewfsid() looped endlessly when there are
already 256 mounted filesystems with the required vfs type.
dufault [Sun, 12 Mar 2000 13:25:14 +0000 (13:25 +0000)]
Disable RTPRIO and P1003.1B scheduling in ntpd. Only leave BSD_NICE
for a scheduling boost. This is a conservative change that should
make no difference in practice and eliminate concerns about this being
the source of some SMP hangs.
Configuration scripts should never auto-configure P1003.1B
without a second test. The behavior with respect to regular time
sharing, who can access it, etc., is not defined.
shin [Sat, 11 Mar 2000 20:57:31 +0000 (20:57 +0000)]
Add missing return.
"ndp" command should deletes only neighbor cache entries, but the
program lacks necessary "return" after the neighbor cache
entry check, so it might deletes non neighbor cache entries.
(it seems that usually no problem happens.)
shin [Sat, 11 Mar 2000 20:52:01 +0000 (20:52 +0000)]
Clear sin6_scope_id before passing routes into kernel, becaues kernel
don't support routes with sin6_scope_id set.
Without this fix, routes with IPv6 scoped addr won't work when it is
assigned by "route" command.
shin [Sat, 11 Mar 2000 20:44:53 +0000 (20:44 +0000)]
Forbid include of netinet6/ip6.h from user-land, and if included,
print an error message which say, "include netinet/ip6.h".
This is postponed to apply to avoid tcpdump compile error.
Now apply this because tcpdump has been already fixed.
imp [Sat, 11 Mar 2000 20:22:09 +0000 (20:22 +0000)]
Fix crashes on card eject for pccard modems. We check for NULL when
we get the com address. If so, we go ahead and return. Bruce thinks
there's a bug in the pccard layer that it terminates devices with
extreme prejustice rather than letting them deside for themselves when
to terminate (and he's likely right). This fix doesn't change that,
but instead works around it by checking for NULL pointers at more
places than before.
The detach routine still calls functions at interrupt level that
aren't reentrant. In theory this could cause a problem, but none
showed up in practice. Future versions should correct this problem,
likely by making the detach process a thread/process at the pccard
level. NEWCARD will do this, and the current pccard layer should
likely be modified to that as well, should it live long enough.
A few style nits of the same form that were in my original patch sent
off to bde were also fixed as part of this process. Mostly use of
!ptr and return ENOPARENS.
This should prevent a crash on suspend with an active ppp link as
well, but that wasn't tested.
shin [Sat, 11 Mar 2000 20:10:39 +0000 (20:10 +0000)]
Prevent multicast packets from being sent over stf0 interface,
to avoid error messages printed on /var/log/messages.
Recently added "stf" interface has IFF_MULTICAST bit set,
because IPv6 don't work on non IFF_MULTICAST set interfaces
in current implementation.
But "stf" interface is multi-dest IPv6 over IPv4 tunnel, so
can't treat multicast packet with no special configuration.
On the other hand, tools like "rtadvd", "pim6dd", "pim6sd"
send messages on IFF_MULTICAST set interfaces by default.
So there will be many bogus error message on /var/log/messages,
that multicast packets sent to "stf0" failed.
So,
-strip "stf0" from rtadvd sending interfaces in rc.network6
("rtadvd" is a daemon used only for local subnet, so it
will never need to send its packets over "stf0" interfaces.)
-Add default configuration files for "pim6dd" and "pim6sd",
and disable "stf0" in those files.
shin [Sat, 11 Mar 2000 20:03:22 +0000 (20:03 +0000)]
Replace m_pkthdr.rcvif with oif when oif is not NULL, to count
icmp6 error statistics based on sending interface.
This also prevent kernel panic when rcvif is not initialized after M_PKTHDR().
(The initialization issue also need to be fixed in the future.)
dmlb [Sat, 11 Mar 2000 13:25:33 +0000 (13:25 +0000)]
Start to use ray_start_join_net (my old code removed on next checkin)
requires current and desired network parameters, so I have created a network parameter structure and used two on them in the softc. This gives a bit of room of expansion. Re-wrote the update check in _net to work with this.
Tidyed up softc due to above.
Removed startccs and startcmd as they were only used by NetBSDs startup timeout.
shin [Sat, 11 Mar 2000 11:25:00 +0000 (11:25 +0000)]
Prevent sockstat print out some empty entries related to IPv6.
Sockstat use netstat tcp/udp socket print, and fstat tcp/udp
socket print, but it just specify all of IPPROTO_IP and
IPPROTO_IPV6 sockets for fstat.
Now IPv6 socket also use raw socket, but only netstat don't print it,
so now they are printed as empty entries in sockstat output.
shin [Sat, 11 Mar 2000 11:20:52 +0000 (11:20 +0000)]
This is null commit to add correct comment for the last fix to this file.
(Last commit message is not related to this file. This file is mistakenly
committed with last commit of other files.)
Prevent possible kernel panic at tcp_input().
When some IPv4 apps do setsockopt() to control message receipt,
then kernel will panic at control message creation processing.
(Currently, only bgp daemon in KAME package known to cause the problem.)
shin [Sat, 11 Mar 2000 11:17:24 +0000 (11:17 +0000)]
IPv6 6to4 support.
Now most big problem of IPv6 is getting IPv6 address
assignment.
6to4 solve the problem. 6to4 addr is defined like below,
2002: 4byte v4 addr : 2byte SLA ID : 8byte interface ID
The most important point of the address format is that an IPv4 addr
is embeded in it. So any user who has IPv4 addr can get IPv6 address
block with 2byte subnet space. Also, the IPv4 addr is used for
semi-automatic IPv6 over IPv4 tunneling.
With 6to4, getting IPv6 addr become dramatically easy.
The attached patch enable 6to4 extension, and confirmed to work,
between "Richard Seaman, Jr." <dick@tar.com> and me.
yokota [Sat, 11 Mar 2000 07:44:10 +0000 (07:44 +0000)]
One more patch for the atkbd driver. It will make sure that the
keyboard port and interrupt is enabled and the driver is attached even
when the keyboard itself is not present when the system is booting.
(This has been the behavior through out 2.X and 3.X, but is somehow
broken in 4.0.)
# I certainly don't recommend people to `hot-plug' the AT keyboard,
# because the interface isn't designed for hot-plugging and such act
# will often break the keyboard controller. But, so many people want to
# do that anyway...
msmith [Sat, 11 Mar 2000 05:20:56 +0000 (05:20 +0000)]
Teach the 'dc' driver how to pick up settings left over by the
SRM on alpha systems. This is an expedient if not entirely
elegant solution to the problem.