drochner
b86fdd7409
don't expose structures and prototypes to _STANDALONE programs
1999-04-09 09:32:51 +00:00
bad
6bdc01f098
Fix version id strings in comment.
1999-04-08 15:53:31 +00:00
explorer
9350aaaee9
Add NetBSD rcsid tags, and preserve old ones from i4b source
1999-04-04 06:57:03 +00:00
explorer
6249482be9
Install if_sppp.h in include/net/
1999-04-04 06:08:40 +00:00
explorer
a6a18662a2
switch to the i4b version of if_sppp*.[ch] (with mods)
1999-04-04 06:07:56 +00:00
chopps
0723de9c6c
deal with failure of malloc NOWAIT by restarting after mallocing with WAIT.
...
don't write beyond the users given buffer size (this happened if there was
enough space for the initial malloc to succeed).
1999-04-02 17:22:21 +00:00
kleink
22ac9f8845
ANSI C police.
1999-03-28 17:13:47 +00:00
dbj
a6f0126b1a
fixes to compile if NBPFILTER == 0
1999-03-27 22:48:36 +00:00
aidan
da1b3a7abf
Added per-addr input/output statistics. Currently just support netatalk
...
and netinet, currently only tested under netinet.
Disabled by default, enabled by compiling the kernel with option
IFA_STATS. Enabling this feature seems to make the ip_output function
take 13% longer than before, which should be OK for people that need
this feature.
1999-03-27 01:24:49 +00:00
thorpej
9da505740a
Define several constants related to the Ethernet protocol:
...
- ETHER_ADDR_LEN: length of Ethernet address (actually, we already defined
this).
- ETHER_TYPE_LEN: length of the Ethernet header `type' field.
- ETHER_CRC_LEN: length of the Ethernet CRC (explorer got this already, mostly
because I forgot to commit these changes earlier).
- ETHER_HDR_LEN: total length of the Ethernet header
- ETHER_MAX_LEN: maximum length of an Ethernet frame, including header and CRC
- ETHER_MIN_LEN: minimum length of an Ethernet frame, including header and CRC
Define ETHERMTU and ETHERMIN (payload sizes) in terms of the above constants.
1999-03-25 23:08:28 +00:00
explorer
f388d47b3b
put RCS ids in the right place. And yes, this is a SYNC ppp interface,
...
used for high-speed (T1, HSSI, DS3) interfaces.
1999-03-25 05:25:42 +00:00
explorer
eb94e6147c
define ETHER_CRC_LEN, for if_vr.c
1999-03-25 04:45:37 +00:00
explorer
2a91ea8a57
port FreeBSD's serial ppp layer to NetBSD. The PPP part seems broken still,
...
but the lmc driver uses the HDLC bits from here anyway.
1999-03-25 03:38:00 +00:00
tron
bbee1b42b1
Make it possible to set MTU via "ifconfig" at run time. "SLMTU" is now
...
used to set the initial value.
1999-03-25 00:52:14 +00:00
thorpej
86f87d7c5f
Add a new shared media option, IFM_FLOW, used to enable link-level
...
flow control. IEEE 802.3x is in mind, but this could be generally
useful for different types of media.
1999-03-23 21:46:47 +00:00
bad
8bb131360c
Appease GCC.
...
#ifdef FreeBSD some debug code as is done if if_fddisubr.c.
1999-03-22 23:14:14 +00:00
bad
a4e508928f
Oops. RcsID police.
1999-03-22 23:01:36 +00:00
bad
b6163c625a
Add LLC_SNAPFRAMELEN.
1999-03-22 22:29:27 +00:00
bad
ab3f3172c5
Add ARPHRD_IEEE802.
1999-03-22 22:28:40 +00:00
bad
76c3e33738
Add if_token.h to INCS.
1999-03-22 22:27:41 +00:00
bad
52c3a56a05
Support routines for Token-Ring network drivers.
...
By Onno van der Linden.
1999-03-22 22:22:52 +00:00
thorpej
49d0b5de2b
Define the PPPoE Discovery and PPPoE ethertypes.
1999-03-20 03:37:52 +00:00
drochner
98294086d9
make this compile again
1999-03-13 14:09:46 +00:00
perry
d446fb449c
exterminate ovbcopy. patches provided by Erik Bertelsen, pr-7145
1999-03-12 22:42:30 +00:00
thorpej
5fa25527ac
Const poison ether_ifattach().
1999-03-10 21:05:08 +00:00
thorpej
f48012dee8
Const poison ether_sprintf().
1999-03-10 03:28:50 +00:00
mjacob
d7e48cb804
adjust format args for compiler changes
1999-03-04 02:38:31 +00:00
is
06420a5af7
So... after all, the ATA878.2 copy I had was buggy. The newer revision has
...
this fixed in the figures (but still not in the text); anyway, the intention
of the ATA is that this is identical to the PHDS specification.
Remove the ...EXC_8782 constant, and change the _EXC_1201 constant to be
a simple ...EXC.
1999-02-25 11:20:34 +00:00
is
874801e906
Remove zero length array
1999-02-23 20:11:06 +00:00
kleink
cd577c539a
Addendum to rev. 1.15: use of __extension__ here is supported in GCC 2.8.0 and
...
above only; since this is the only occurence, fix it locally rather than in
<sys/cdefs.h> as to not remove all the functionality on pre-2.8 systems.
XXX Shouldn't use zero-length arrays at all.
1999-02-23 16:59:38 +00:00
kleink
10a02a6706
Zero-sized arrays are a GNU C extension; from Dave Sainty in PR kern/6271.
1999-02-21 17:35:17 +00:00
hubertf
56f2d188fc
RCS ID police
1999-02-15 04:54:34 +00:00
hwr
fbd6e613b3
We no longer support IPIP (IP proto 4).
1999-01-26 21:21:14 +00:00
msaitoh
3af083d212
fix "CMSA CD" to "CSMA/CD"
1999-01-18 06:31:13 +00:00
is
5854b4eafe
Yet another performance optimization for exceptional length ARCnet packets.
...
This time in the receive path.
1999-01-16 14:08:05 +00:00
is
f77decf65c
Make the code path for exceptional length packets a bit faster (2 mbuf
...
operations less) and better readable.
1999-01-16 13:04:13 +00:00
is
0a3d4d8915
- define protocol type for diagnostics (0x80 as per ANSI 878.1)
...
- define protocol type for IP version 6
- define length of exceptional length packets for both RFC 1201-style and
ATA 878.2-style fragmentation.
1999-01-16 13:01:20 +00:00
thorpej
6ae68b4feb
Pull the IP-in-IP tunneling support out of the GRE code. It's not handled
...
by a separate IP-IP input path.
XXX Should eventually do the same thing for IPPROTO_MOBILE.
1999-01-11 21:32:13 +00:00
thorpej
d70bb64a38
Use M_LINK{0,1} for our own mbuf flags, rather than arbitrarily picking
...
2 bits.
1999-01-09 21:47:09 +00:00
thorpej
f079e8d39c
Simplify the rttimer code somewhat; use TAILQs instead of CIRCLEQs (we
...
didn't really need to traverse the queues backwards anyhow), and other
minor code simplification.
1998-12-27 18:27:48 +00:00
veego
50cc03465e
Fix kern/6658 from Martin Husemann:
...
After booting a current kernel and receiving a few arp requests on the
network it panics (data modified on free list). The panic message is wrong,
as code inspection shows the memory pool for routing entries is intialized
twice, while the routing timer memory pool is never initialized.
1998-12-27 11:44:41 +00:00
thorpej
0a87ec1ac7
Use pools for rtentry and rttimer structures.
1998-12-22 02:27:06 +00:00
thorpej
3322b9a32e
Add an extern declaration of gre_softc[] here. Wrap it and the prototypes
...
in #ifdef _KERNEL.
1998-12-22 01:33:45 +00:00
christos
bdaefe06f3
Synchronize with the Ultrix version of the ppp release.
1998-12-12 18:22:39 +00:00
christos
a0823f0a89
#include "opt_ppp.h" otherwise struct ppp_softc can be the wrong size
...
(From mycroft)
1998-12-12 18:21:32 +00:00
christos
c748ecf74a
fix thinko in previous change.
1998-12-12 17:26:09 +00:00
christos
52f565dcfd
Revert IPX changes that I committed accidentally.
1998-12-10 17:48:40 +00:00
christos
13d58281de
IPX counters and centralize statistics routine.
1998-12-10 15:52:39 +00:00
christos
e856516838
IPX fixes.
1998-12-10 15:51:48 +00:00
christos
7e5316ae6e
IPX fixes.
1998-12-10 15:50:54 +00:00