dragonfly.git
19 years agoRemove unused macro.
David Xu [Mon, 21 Feb 2005 13:40:54 +0000 (13:40 +0000)]
Remove unused macro.

19 years agoRemove debug code.
David Xu [Mon, 21 Feb 2005 13:40:00 +0000 (13:40 +0000)]
Remove debug code.

19 years agoGC TULIP_CRC32_POLY, TULIP_ADDREQUAL and TULIP_ADDRBRDCST.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:25:49 +0000 (05:25 +0000)]
GC TULIP_CRC32_POLY, TULIP_ADDREQUAL and TULIP_ADDRBRDCST.
Move tulips definition into if_de.c.

19 years agoGC TULIP_NEED_FASTTIMEOUT
Joerg Sonnenberger [Mon, 21 Feb 2005 05:18:29 +0000 (05:18 +0000)]
GC TULIP_NEED_FASTTIMEOUT

19 years agoGC TULIP_DEBUG.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:16:16 +0000 (05:16 +0000)]
GC TULIP_DEBUG.

19 years agoGC TULIP_VERBOSE.
Joerg Sonnenberger [Mon, 21 Feb 2005 05:03:51 +0000 (05:03 +0000)]
GC TULIP_VERBOSE.

19 years agoGC !__DragonFly__ section.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:59:42 +0000 (04:59 +0000)]
GC !__DragonFly__ section.

19 years agoGC TULIP_BUS_DMA.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:58:34 +0000 (04:58 +0000)]
GC TULIP_BUS_DMA.

19 years agoGC TULIP_PERFSTAT support.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:48:57 +0000 (04:48 +0000)]
GC TULIP_PERFSTAT support.

19 years agoGC __alpha__ support.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:44:22 +0000 (04:44 +0000)]
GC __alpha__ support.

19 years agoTLUIP_HDR_DATA was always defined, unconditionalize.
Joerg Sonnenberger [Mon, 21 Feb 2005 04:38:21 +0000 (04:38 +0000)]
TLUIP_HDR_DATA was always defined, unconditionalize.

19 years agoRemove TULIP_USE_SOFTINTR support. If someone really needs it, we can
Joerg Sonnenberger [Mon, 21 Feb 2005 04:35:40 +0000 (04:35 +0000)]
Remove TULIP_USE_SOFTINTR support. If someone really needs it, we can
add DEVICE_POLLING support later, which is the more general and less
hackish solution.

19 years agoRemove LE_NOLEMAC and LE_NOLANCE conditionals.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:38:55 +0000 (03:38 +0000)]
Remove LE_NOLEMAC and LE_NOLANCE conditionals.

19 years agoUse normal inb / outb / inw / outw / inl / outl functons.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:37:44 +0000 (03:37 +0000)]
Use normal inb / outb / inw / outw / inl / outl functons.

19 years agoExpand some macros.
Joerg Sonnenberger [Mon, 21 Feb 2005 03:04:00 +0000 (03:04 +0000)]
Expand some macros.

19 years agoUse ether_crc32_le.
Joerg Sonnenberger [Mon, 21 Feb 2005 02:46:50 +0000 (02:46 +0000)]
Use ether_crc32_le.

19 years agoSome cleanup.
Joerg Sonnenberger [Mon, 21 Feb 2005 02:33:42 +0000 (02:33 +0000)]
Some cleanup.

19 years agoFix timeout verification bug. Matt Dillon asked to check tv_sec,
David Xu [Mon, 21 Feb 2005 01:36:05 +0000 (01:36 +0000)]
Fix timeout verification bug. Matt Dillon asked to check tv_sec,
but I wrote wrong code. ;-)

19 years agoRename local variables and arguments "index" to "idx".
Joerg Sonnenberger [Mon, 21 Feb 2005 01:27:08 +0000 (01:27 +0000)]
Rename local variables and arguments "index" to "idx".

19 years agoRequire NETWORKING, not DAEMON for ntpd. The former makes much more sense
Joerg Sonnenberger [Sun, 20 Feb 2005 21:52:33 +0000 (21:52 +0000)]
Require NETWORKING, not DAEMON for ntpd. The former makes much more sense
and fixes the order issue for rpcbind.

19 years agoWe don't need syslogd support for chrooted ntpd.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:51:22 +0000 (21:51 +0000)]
We don't need syslogd support for chrooted ntpd.

19 years agoDon't depend on altqd.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:50:44 +0000 (21:50 +0000)]
Don't depend on altqd.

19 years agoRemove altqd's init script, we don't have it anyway.
Joerg Sonnenberger [Sun, 20 Feb 2005 21:49:51 +0000 (21:49 +0000)]
Remove altqd's init script, we don't have it anyway.

19 years agorcorder tries real hard to free things while processing the list but this
Matthew Dillon [Sun, 20 Feb 2005 19:47:17 +0000 (19:47 +0000)]
rcorder tries real hard to free things while processing the list but this
not only slows it down unnecessarily, it can also result in a double-free
when certain circular dependancies are encountered.  Remove the free()'s
causing the problem.

Reported-by: Gary Allan <dragonfly@gallan.plus.com>
19 years agoGet rid off conditionals for hpux, AIX, THINKC, TURBOC, MS_DOS, VMS.
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 17:34:11 +0000 (17:34 +0000)]
Get rid off conditionals for hpux, AIX, THINKC, TURBOC, MS_DOS, VMS.

19 years agoR.I.P. ARC
Sascha Wildner [Sun, 20 Feb 2005 17:21:53 +0000 (17:21 +0000)]
R.I.P. ARC

19 years agoGet rid of the #define mess for other platforms. We're just Unix.
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 17:19:11 +0000 (17:19 +0000)]
Get rid of the #define mess for other platforms.  We're just Unix.

19 years agoRemove Alpha support for ficl.
Sascha Wildner [Sun, 20 Feb 2005 16:38:22 +0000 (16:38 +0000)]
Remove Alpha support for ficl.

19 years agoRemove arch-alpha variable.
Sascha Wildner [Sun, 20 Feb 2005 16:31:53 +0000 (16:31 +0000)]
Remove arch-alpha variable.

19 years agoRemove Alpha support.
Sascha Wildner [Sun, 20 Feb 2005 16:30:39 +0000 (16:30 +0000)]
Remove Alpha support.

19 years agoGCC supports two pseudo variables to get the function name, __FUNCTION__
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 12:49:34 +0000 (12:49 +0000)]
GCC supports two pseudo variables to get the function name, __FUNCTION__
and __func__. The latter is C99, prefer that.

19 years agoUpdate comments for the Belarussian locale.
Jeroen Ruigrok/asmodai [Sun, 20 Feb 2005 12:13:21 +0000 (12:13 +0000)]
Update comments for the Belarussian locale.

Submitted by: Yury Tarasievich

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 05:45:38 +0000 (05:45 +0000)]
ALTQ support.

19 years agoRemove tulip_ifstart_one, always process the whole queue.
Joerg Sonnenberger [Sun, 20 Feb 2005 05:11:02 +0000 (05:11 +0000)]
Remove tulip_ifstart_one, always process the whole queue.

19 years agoALTQ support. The error handling in nv_ifstart should be reviewed,
Joerg Sonnenberger [Sun, 20 Feb 2005 04:52:22 +0000 (04:52 +0000)]
ALTQ support. The error handling in nv_ifstart should be reviewed,
it drops more packets than necessary. It now also drops packets if
the TX queue is full. This is indicated by
"nv_ifstart: transmit queue is full" in the system log.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:41:46 +0000 (04:41 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:29:28 +0000 (04:29 +0000)]
ALTQ support.

19 years agoReplace dc_coal with m_defrag.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:12:32 +0000 (04:12 +0000)]
Replace dc_coal with m_defrag.

19 years agoALTQ support
Joerg Sonnenberger [Sun, 20 Feb 2005 04:04:55 +0000 (04:04 +0000)]
ALTQ support

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 04:02:14 +0000 (04:02 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:58:04 +0000 (03:58 +0000)]
ALTQ support.

19 years agoRegen.
David Xu [Sun, 20 Feb 2005 03:24:47 +0000 (03:24 +0000)]
Regen.

19 years agoMove the m_freem from vr_encap to vr_start, making the passed mbuf effectively
Joerg Sonnenberger [Sun, 20 Feb 2005 03:21:58 +0000 (03:21 +0000)]
Move the m_freem from vr_encap to vr_start, making the passed mbuf effectively
const. Don't check for m_head == NULL in vr_encap, it can't happen anyway.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:11:53 +0000 (03:11 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:08:29 +0000 (03:08 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 03:04:51 +0000 (03:04 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 02:59:57 +0000 (02:59 +0000)]
ALTQ support.

19 years agoALTQ support. Fixes a small bug which could result in packets showing
Joerg Sonnenberger [Sun, 20 Feb 2005 02:54:21 +0000 (02:54 +0000)]
ALTQ support. Fixes a small bug which could result in packets showing
up multiple times in BPF.

19 years agoWe don't support DEC Alpha.
Sascha Wildner [Sun, 20 Feb 2005 02:35:28 +0000 (02:35 +0000)]
We don't support DEC Alpha.

19 years agoImplement cancellation points for sigwait, sigtimedwait and sigwaitinfo.
David Xu [Sun, 20 Feb 2005 01:58:00 +0000 (01:58 +0000)]
Implement cancellation points for sigwait, sigtimedwait and sigwaitinfo.

19 years agogenerate __sys_sigtimedwait and __sys_sigwaitinfo to allow
David Xu [Sun, 20 Feb 2005 01:54:30 +0000 (01:54 +0000)]
generate __sys_sigtimedwait and __sys_sigwaitinfo to allow
thread libraries override their libc version.

19 years agoImplement sigwait.
David Xu [Sun, 20 Feb 2005 01:52:25 +0000 (01:52 +0000)]
Implement sigwait.

19 years agoALTQ support.
Joerg Sonnenberger [Sun, 20 Feb 2005 01:49:21 +0000 (01:49 +0000)]
ALTQ support.

19 years agoPrepare for ALTQ.
Joerg Sonnenberger [Sun, 20 Feb 2005 01:26:05 +0000 (01:26 +0000)]
Prepare for ALTQ.

19 years agoImplement sigtimedwait and sigwaitinfo syscalls.
David Xu [Sun, 20 Feb 2005 01:17:44 +0000 (01:17 +0000)]
Implement sigtimedwait and sigwaitinfo syscalls.

Reviewed by: dillon

19 years agoFix a bug introduced earlier. We can't put packets back into
Joerg Sonnenberger [Sun, 20 Feb 2005 00:36:23 +0000 (00:36 +0000)]
Fix a bug introduced earlier. We can't put packets back into
the queue with ALTQ, so we have to handle the case of errors
after m_defrag has been called directly. We also have to remove
the packets from the queue before we free them to avoid races.
Same applies to calling bpf_mtap, which has to done on the
defragmented packet.

19 years agoAdd m_defrag_nofree, which works like m_defrag, but doesn't free the
Joerg Sonnenberger [Sun, 20 Feb 2005 00:20:43 +0000 (00:20 +0000)]
Add m_defrag_nofree, which works like m_defrag, but doesn't free the
passed-in mbuf.

Discussed-with: hmp

19 years agoRemove PC98 loader.
Sascha Wildner [Sat, 19 Feb 2005 23:43:35 +0000 (23:43 +0000)]
Remove PC98 loader.

19 years agoRemove PC98 and Alpha support.
Sascha Wildner [Sat, 19 Feb 2005 23:19:51 +0000 (23:19 +0000)]
Remove PC98 and Alpha support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 23:05:07 +0000 (23:05 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 22:49:34 +0000 (22:49 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 22:42:55 +0000 (22:42 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 22:24:13 +0000 (22:24 +0000)]
ALTQ support.

19 years agoDepend on ntpd. ntpdate is gone and the behaviour is the default now.
Joerg Sonnenberger [Sat, 19 Feb 2005 20:18:21 +0000 (20:18 +0000)]
Depend on ntpd. ntpdate is gone and the behaviour is the default now.

Noticed-by: Gary Allan <dragonfly@gallan.plus.com>
19 years agoAdd support for the Intel 82562ET/EZ/GT/GZ (ICH6/ICH6R) Pro/100 VE Ethernet.
Matthew Dillon [Sat, 19 Feb 2005 19:39:29 +0000 (19:39 +0000)]
Add support for the Intel 82562ET/EZ/GT/GZ (ICH6/ICH6R) Pro/100 VE Ethernet.

Submitted-by: Chuck Tuffli <chuck_tuffli@agilent.com>
19 years ago- SUSV3 states on error we should return > 1
Liam J. Foy [Sat, 19 Feb 2005 19:39:05 +0000 (19:39 +0000)]
- SUSV3 states on error we should return > 1
- Remove unnecessary header
- Style(9)

19 years agoUse ifq_set_maxlen instead of messing with the fields directly.
Joerg Sonnenberger [Sat, 19 Feb 2005 17:59:38 +0000 (17:59 +0000)]
Use ifq_set_maxlen instead of messing with the fields directly.

19 years agoFix #include.
Sascha Wildner [Sat, 19 Feb 2005 15:47:44 +0000 (15:47 +0000)]
Fix #include.

Noticed by: Gary Allan <dragonfly@gallan.plus.com>

19 years agoPC98 is not supported.
Sascha Wildner [Sat, 19 Feb 2005 15:43:10 +0000 (15:43 +0000)]
PC98 is not supported.

19 years agoRemove duplicate FreeBSD tag.
Sascha Wildner [Sat, 19 Feb 2005 15:16:39 +0000 (15:16 +0000)]
Remove duplicate FreeBSD tag.

Noticed by: Sarunas Vancevicius <svan@redbrick.dcu.ie>

19 years agoRemove PC98 and Alpha support.
Sascha Wildner [Sat, 19 Feb 2005 01:46:12 +0000 (01:46 +0000)]
Remove PC98 and Alpha support.

19 years agoRemove Alpha support.
Sascha Wildner [Sat, 19 Feb 2005 01:43:06 +0000 (01:43 +0000)]
Remove Alpha support.

19 years agoRemove PC98 support.
Sascha Wildner [Sat, 19 Feb 2005 01:42:16 +0000 (01:42 +0000)]
Remove PC98 support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 01:16:46 +0000 (01:16 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 01:07:24 +0000 (01:07 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 00:55:44 +0000 (00:55 +0000)]
ALTQ support.

19 years agoCall the "cluster_save buffer" type just "cluster_save", it doesn't fit
Joerg Sonnenberger [Sat, 19 Feb 2005 00:47:03 +0000 (00:47 +0000)]
Call the "cluster_save buffer" type just "cluster_save", it doesn't fit
the type column in vmstat -m output.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 00:40:45 +0000 (00:40 +0000)]
ALTQ support.

19 years ago- Remove unnecessary casts
Liam J. Foy [Sat, 19 Feb 2005 00:32:01 +0000 (00:32 +0000)]
- Remove unnecessary casts
- Style(9)

19 years agoDon't inline lnc_rint and lnc_tint, it's useless and GCC rightfully complains
Joerg Sonnenberger [Sat, 19 Feb 2005 00:16:54 +0000 (00:16 +0000)]
Don't inline lnc_rint and lnc_tint, it's useless and GCC rightfully complains
about it.

19 years agoALTQ support.
Joerg Sonnenberger [Sat, 19 Feb 2005 00:05:32 +0000 (00:05 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:40:10 +0000 (23:40 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:25:38 +0000 (23:25 +0000)]
ALTQ support.

19 years agoUse ifq_set_maxlen and don't change the field directly.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:19:08 +0000 (23:19 +0000)]
Use ifq_set_maxlen and don't change the field directly.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:15:00 +0000 (23:15 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:10:27 +0000 (23:10 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 23:06:00 +0000 (23:06 +0000)]
ALTQ support.

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 22:59:32 +0000 (22:59 +0000)]
ALTQ support.

19 years agoremove toast
Sascha Wildner [Fri, 18 Feb 2005 19:07:08 +0000 (19:07 +0000)]
remove toast

19 years agoharmless test
Sascha Wildner [Fri, 18 Feb 2005 19:00:14 +0000 (19:00 +0000)]
harmless test

19 years ago* For the direct modes, get rid of the predefined palettes and use the
Sascha Wildner [Fri, 18 Feb 2005 16:38:23 +0000 (16:38 +0000)]
* For the direct modes, get rid of the predefined palettes and use the
  system's EGA palette instead (like planar modes do). Since palette
  values can be 5:5:5, 5:6:5, 8:8:8 etc., add code to refresh them via
  the adapter's palette registers upon video mode change. Scrap the
  ugly vga_drawpxl() macro. This makes 15 and 16 bit modes faster than
  24 or 32 bpp.

* Fix mouse pointer drawing code for direct modes. Never draw the
  pointer in the border area so that direct and planar modes can now
  share a single function for removing the mouse.

* Do some minor cleanup and restructuring.

19 years ago- Remove unnecessary header
Liam J. Foy [Fri, 18 Feb 2005 16:33:53 +0000 (16:33 +0000)]
- Remove unnecessary header
- Sprinkle some warn() & err() magic
- Style(9)

19 years agoALTQ support.
Joerg Sonnenberger [Fri, 18 Feb 2005 15:48:11 +0000 (15:48 +0000)]
ALTQ support.

19 years agoAdd support for building modules with configured kernel options,
Simon Schubert [Fri, 18 Feb 2005 11:41:42 +0000 (11:41 +0000)]
Add support for building modules with configured kernel options,
iff building modules with kernel.  Building modules standalone
(cd $kmoddir && make) is not affected.

This introduces an environment variable ``BUILDING_WITH_KERNEL''
which gets set to the kernel compile dir by its Makefile.
Required opt_*.h and use_*.h headers get copied from there to the
module build dir by kmod.mk.

While changing module Makefiles, clean up (slightly) incorrect
uses of kldload and kldunload (which are there for testing
purposes).

Reviewed-by: joerg
19 years agoMake sure that length variable is set to zero before Var_Parse() is
Max Okumoto [Fri, 18 Feb 2005 01:23:22 +0000 (01:23 +0000)]
Make sure that length variable is set to zero before Var_Parse() is
invoked.  This is in preperation for accumilating the changes to the
length, sub-routines called and just update it to reflect how many
characters they consumed.

19 years agoThis is an ugly hack, but for now I am spliting ParseModifiers() out
Max Okumoto [Fri, 18 Feb 2005 01:21:52 +0000 (01:21 +0000)]
This is an ugly hack, but for now I am spliting ParseModifiers() out
from VarParseLong().  I am passing many the variables, but most of them
will go away once I fix the lengthPtr calculations.

19 years agoVarParseLong():
Max Okumoto [Fri, 18 Feb 2005 01:20:57 +0000 (01:20 +0000)]
VarParseLong():
Create new else block for if (haveModifier) {}
Move VarExpand() down into both branches of if () {}
Move cleanup section up into both branches.
Eliminate dead code.

19 years agoVarParseShort(): Change else blocks to fall through.
Max Okumoto [Fri, 18 Feb 2005 01:20:09 +0000 (01:20 +0000)]
VarParseShort(): Change else blocks to fall through.

19 years agoVarParseLong():
Max Okumoto [Fri, 18 Feb 2005 01:19:47 +0000 (01:19 +0000)]
VarParseLong():
Move setting of dynamic back before the if statement.
Moved lengthPtr down.

19 years agoChanged code to avoid modifying the input string, its not really
Max Okumoto [Fri, 18 Feb 2005 01:18:27 +0000 (01:18 +0000)]
Changed code to avoid modifying the input string, its not really
nessisary to null terminate substrings, when you have the length
of the substring you are interested in.