Commit Graph

153544 Commits

Author SHA1 Message Date
jmmv 52b7ca57d3 Fix typo in comment. 2006-11-13 11:47:37 +00:00
he 0b108ad573 Adapt to the wsmouse_input() change where we now require the 'w' axis. 2006-11-13 09:35:34 +00:00
dyoung 2d1d707101 Plug memory leak. 2006-11-13 05:48:00 +00:00
dyoung f6957fedf7 Cosmetic: join lines. 2006-11-13 05:44:37 +00:00
dyoung a25eaede91 Add a source-address selection policy mechanism to the kernel.
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.
2006-11-13 05:13:38 +00:00
dyoung 075fd7d1e9 Stop using typeof() in the bit-twiddling macros, per yamt@'s
suggestion.  This change requires that I use the __PRIuBITS format
string in atw and rtw, so do that.
2006-11-13 03:35:59 +00:00
dyoung e3361bb265 Add strsep(3) to libkern.
To avoid code duplication, move strsep.c to the kernel/userland
common files.

Soon I will commit source-address selection (options IPSELSRC).
It will use strsep(3).
2006-11-13 03:26:43 +00:00
christos b7cb52a381 for pt_syscall, send a signal to our parent, not out grandparent. Noted by
mrg and ad.
2006-11-13 02:52:08 +00:00
cbiere 28fb298561 Added missing F_GETLK, F_SETLK, F_SETLKW to print_fcntlcmd(). 2006-11-12 23:29:37 +00:00
dyoung fabb7d3379 Improve the tags target for i386:
Update the Atheros HAL directories.

	Don't compute tags for nonexistent assembly-language sources
	in sys/arch/i386/isa/.

	Don't echo the rm -f step.
2006-11-12 22:44:00 +00:00
bouyer df1600e329 Properly detect if BAR5 is IO or MEM type; avoid a message about not being
able to map the BAR on boot (note that it's just cosmetic, the registers were
mapped anyway). Tested by paul at whooppee.com; thanks !
2006-11-12 22:42:20 +00:00
yamt ec585a4e4d protect bt_poolcache by splvm because it's shared among all arenas
including ones which can be used in interrupt context.
PR/35042 from Manuel Bouyer.
2006-11-12 22:28:17 +00:00
plunky 57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
he f50e36b715 Move settings of CLEANFILES and LDFLAGS outside the conditional, so that
the dummy libssp_nonshared.a file will be cleaned under clean/cleandir.
2006-11-12 15:18:29 +00:00
tsutsui d990bcf038 Replace RTK_ETHER_ALIGN with RE_ETHER_ALIGN, which I missed.
Pointed out by dieter roelants in PR kern/35041.
2006-11-12 15:12:02 +00:00
tsutsui 26a4066f11 Remove an extra semicolon. 2006-11-12 12:02:19 +00:00
bjh21 867c8b45a3 Add GWS. 2006-11-12 11:29:51 +00:00
jmmv d4e479987d Regen. Per bernd@'s instructions. 2006-11-12 09:14:32 +00:00
itohy 96de608110 Oops, I didn't notice the file had been updated and overwrote
the changes in 1.93....
Rescue the changes in 1.93 (IPv4 checksum fix).
2006-11-12 07:16:14 +00:00
itohy 3b284b614d - In some rare cases, both Tx Complete and Dn Complete bits are set.
I'm not sure what it exactly means, but at least, the packet in question
  is reloaded in ex_txstat() and should not handle the Dn Complete event
  at the moment ---  it should be served on later interrupt.

- Reload packet on collision, too.
2006-11-12 07:07:39 +00:00
christos 5b239d0be1 PR/35039: jklowden: Fix example to include -i or -p for ipf or pf. 2006-11-12 06:24:08 +00:00
tsutsui 0d397b62fe - merge re_encap() into re_start() so that we can handle each error case
more flexible
- account a number of free txq and use it to see if packets are queued or sent
- assume free TX descriptors are not owned by the chip in re_start() and
  panic if there is any inconsistency on them #ifdef DIAGNOSTIC case.
- replace a magic number (reserved TX descs?) with macro
2006-11-12 03:09:37 +00:00
christos 92bb57d7f6 put back phones, used by tip 2006-11-12 03:02:50 +00:00
tsutsui cad156cdf4 Add a workaround for a hardware ip4csum-tx bug which would sometimes put
wrong IPv4 checksum on sending 21 or 22 byte IP packets.

See discussion on tech-kern and tech-net for details:
http://mail-index.netbsd.org/tech-kern/2006/11/04/0004.html
2006-11-12 02:49:46 +00:00
christos 1bb72362cf more uucp removal. 2006-11-12 02:44:51 +00:00
christos ab6d6d1244 more uucp removal 2006-11-12 02:43:39 +00:00
dogcow 873dd89778 missed UUCP obsolete 2006-11-12 02:29:44 +00:00
christos eef8c97c9c Don't disable the tests, otherwise 'make obj', 'make clean', or 'make cleandir'
will create the archive.
2006-11-12 01:41:46 +00:00
christos 15de3f2f5d remove uucp, add ssp 2006-11-12 01:31:41 +00:00
christos bc2479d202 no more rmail. 2006-11-12 01:27:29 +00:00
christos 733988be60 goodbye uucp 2006-11-12 01:24:51 +00:00
christos 64f067eaa0 sprinke -Wno-stack-protector 2006-11-12 01:24:44 +00:00
christos 3353f7d077 goodbye uucp 2006-11-12 01:20:00 +00:00
he cb4c2207ba Add a netbsd-sd0 kernel, so that the corresponding gzimg can be built. 2006-11-11 23:50:54 +00:00
he 6c94afac43 Disable the libssp regression tests for alpha, mips and hppa. These
architectures do not have -fstack-protector support in gcc (yet).
2006-11-11 23:37:18 +00:00
jld bd403112d6 Under Xen2, timestamp updates should happen every 10ms, and a timer
event should be raised every 10ms if we're runnable.  Unfortunately,
there seems to be an intermittent bug in the hypervisor such that,
for about 1<<32 ns (~4.3s) after it manifests, every running domain
continues to run but not get its timer events and new timestamps (nor
is it preempted in favor of other domains on that CPU).  This can cause
strange behavior from our timekeeping; for example, hardclock() is never
called during this interval.

So here's a workaround: if timestamp is allegedly up to date but is more
than 40ms old (this is semi-arbitrary), the domain sets its timer to a
time in the past, which causes it to become immediately pending, and also
results in the publication of a new timestamp.
2006-11-11 23:33:12 +00:00
christos 36534cb271 move USE_SSP=no one level up. 2006-11-11 22:38:38 +00:00
macallan 3f9bd18e6d add 1024x768 @ 89Hz for the Apple eMac
from Marco Trillo
2006-11-11 22:14:44 +00:00
dsl 29479294dd If the last 3 bytes of the debug filename supplied with -DFxxxx are .%d then
replace the %d with getpid().
Allows the trace files for different make process is a big recursive make
to be written to different files - and have a slight chance of being useful.
2006-11-11 22:07:37 +00:00
apb e81d0de4e0 Fix a bug that caused 0.0.0.0/0 to be treated like 0.0.0.0/32.
foo << 32 is undefined per section 6.5.7 of the C99 standard
if foo is (or is promoted to) a 32-bit type.
2006-11-11 21:50:19 +00:00
christos 31b7f8ae5f Don't build lkms with SSP for now. 2006-11-11 21:35:45 +00:00
dsl d2c6b9d3fe Return the non-zero value that caused the Lst_ForEach[From] call to
terminate early to the caller.
2006-11-11 21:23:36 +00:00
dsl e2455acf6d Point a few diagnostic printfs (the ones that got away) to debug_file
instead of stdout.
2006-11-11 21:21:17 +00:00
christos 21b2d7e28c on non-x86 execl*.c needs alloca. 2006-11-11 21:16:00 +00:00
bouyer a897b56088 Simplify XEN3 domU kernel config by including the XEN2 domU configs and
adding only XEN3 specific options/devices.
2006-11-11 20:00:39 +00:00
bouyer b8f3db3eea Follow GENERIC and enable TMPFS 2006-11-11 19:34:54 +00:00
jmmv fd36a0e13f Note that tmpfs's experimental status has been dropped. OK'ed by core@. 2006-11-11 19:03:17 +00:00
jmmv 98f101bc9c tmpfs is not considered experimental any more. OK'ed by core@. 2006-11-11 19:01:30 +00:00
jmmv fb3e66fdb3 Enable TMPFS by default. OK'ed by core@.
I'm leaving those platforms with few users and those whose machines are
not very powerful untouched per uwe@'s suggestion.  The port masters or
the real users of those ports are better suited to make the decision of
enabling it.
2006-11-11 19:00:16 +00:00
jmmv 7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00