cgd
d925296265
define a type for the ifnet queue's head.
1995-06-19 21:41:37 +00:00
mycroft
d2307f3ecb
Update to match data structure changes.
1995-06-13 05:52:42 +00:00
mycroft
80a0cdd913
There's no reason to set if_next here.
1995-06-13 05:31:00 +00:00
mycroft
4cabe662ac
Make sure to initialize ifnet correctly.
1995-06-12 02:22:13 +00:00
mycroft
e0d6716b6a
Various cleanup, including:
...
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.
1995-06-12 01:09:20 +00:00
mycroft
6897f39ae9
Various cleanup, including:
...
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.
1995-06-12 00:46:47 +00:00
cgd
d4f62dcb69
update from Ignatios Souvatzis
1995-06-07 00:13:52 +00:00
mycroft
0181b81de4
Newer version from CSRG.
1995-05-17 15:50:06 +00:00
cgd
c7d6aa46d5
copy routines should take size_t lengths for prototype consistency.
...
don't assume that tick is >= 1000; loses badly on alpha (div. by zero)
only try unaligned copies if NetBSD's UNALIGNED_ACCESS symbol is defined.
various misc type size cleanups, mostly short -> int16_t.
1995-04-22 13:26:20 +00:00
cgd
b5fb8715b0
quiet compiler warning via (ugly) cast
1995-04-22 13:08:30 +00:00
cgd
92fad4a481
be more careful when rounding sockaddr_dl sizes. also, one u_short * ->
...
u_int16_t * conversion.
1995-04-22 13:07:12 +00:00
chopps
999aa2cc32
update arc_input() proto to match reality.
1995-04-14 17:09:39 +00:00
chopps
5f90c17217
change args to arc_input also add check on link address which fixes pr#922. from Ignatios Souvatzis <is@beverly.rhein.de>
1995-04-14 17:06:39 +00:00
mycroft
8b77f9cd5f
Remove some explicit references to loif.
1995-04-11 04:30:47 +00:00
mycroft
1b863c2eca
if_start and if_watchdog should return void.
1995-04-07 22:20:24 +00:00
mycroft
da0921a4a2
Set if_output in ether_ifattach().
1995-04-07 22:19:29 +00:00
mycroft
6f131301b0
Make OSI and X.25 work on little-endian machines.
1995-04-05 21:38:50 +00:00
mycroft
0a2cdb6d61
Fix bogus buffer indexing when a value is split across a mbuf boundary,
...
as suggested by Greg Ansley. Also, redefine MINDEX() slightly to avoid
duplicating code.
1995-04-01 03:04:49 +00:00
briggs
6efcd1b6d4
KERNEL -> _KERNEL
1995-03-29 21:57:43 +00:00
jtc
db0046c14d
KERNEL -> _KERNEL
1995-03-28 19:59:56 +00:00
jtc
7c04233887
KERNEL -> _KERNEL
1995-03-26 20:23:52 +00:00
mycroft
b468ed3d00
Fix panic when an interface in promiscuous mode goes down and the BPF user
...
tries to turn off promiscuous mode. From Lon Willett.
1995-03-22 16:08:32 +00:00
mycroft
f75ba16b09
Update to use timer{add,sub}().
1995-03-21 13:33:34 +00:00
cgd
17d1e137e0
punt on using int8 types for chars, at least for now. char is 8 byts anyway.
1995-03-12 04:19:08 +00:00
mycroft
b880de68c5
ifconf() takes a u_long, not an int.
1995-03-09 09:47:25 +00:00
cgd
e363664703
fixed sized types, where appropriate. when casting pointers to
...
integers to do math on them, cast to long. ioctl commands are
u_longs.
1995-03-08 02:56:49 +00:00
mycroft
3ab590b35f
Undo an #include ordering change.
1995-03-06 10:58:25 +00:00
mycroft
8c5b80f538
Make this more type-safe for the Alpha. From the libpcap 0.0 distribution.
...
(Needs more work.)
1995-03-06 10:56:06 +00:00
chopps
7908b4858d
add prototypes
1995-03-02 09:14:38 +00:00
glass
48b5b94c4f
fix some typos. from frank@fwi.uva.nl (Frank van der Linden)
1995-02-27 09:10:24 +00:00
glass
f634dc196b
preliminary arcnet support. uses lame but RFC address resolution
1995-02-23 07:19:49 +00:00
jtc
ca7b8dce12
Protect from multiple inclusion with _NET_BPF_H_, for PR #679 .
1995-01-13 00:34:09 +00:00
mycroft
7fab282c89
timevalsub --> __timersub
1994-12-11 21:39:05 +00:00
cgd
6ac2bbfc35
be more careful with types, also pull in headers where necessary.
1994-10-30 21:43:03 +00:00
cgd
36ac18735f
fix pr 528; don't define struct if_data inside another structure.
1994-10-19 20:57:56 +00:00
deraadt
fb42f63898
bug 367. paulus says the fix is right & critical.
1994-07-27 09:05:33 +00:00
cgd
04753d13bf
kill vax code, at ragge's requeust.
1994-07-26 18:56:57 +00:00
paulus
ce6d680c66
The ppp interface now retries the mbuf allocation when it receives
...
a character and it doesn't already have enough space allocated.
It still needs cluster mbufs to be able to decompress VJ-compressed
packets. It drops packets if it can't allocate mbufs rather than
taking the interface down.
1994-07-20 01:49:20 +00:00
paulus
09264a28ec
Due to popular revulsion, the ppp interface now drops packets if
1994-07-20 01:40:11 +00:00
paulus
e7ba8f6b5a
If we can't get mbuf clusters, take the ppp interface down instead
...
of writing beyond the end of ordinary mbufs.
1994-07-18 23:45:33 +00:00
cgd
a7ec46ab8f
use NetBSD (defined in param.h) not __NetBSD__ to allow x-compilation
...
with native compiler.
1994-07-16 06:26:28 +00:00
cgd
d7fc64af84
don't use inline, use __inline, like cdefs intends (so it can kill it if nongcc
1994-07-15 22:29:22 +00:00
cgd
17c3553caf
kill bogus external declaration of time
1994-07-15 22:27:46 +00:00
deraadt
5044aff065
bug #319 . fix from <alasdair@wildcat.demon.co.uk>
1994-07-03 06:44:03 +00:00
cgd
ef9dc92b8e
this is what cdefs.h is for
1994-06-29 21:23:15 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
paulus
45c7c2fc56
Some restructuring of the PPP packet input procedure to make it easier
...
to implement PPP over sync lines and PPP compression protocols.
1994-06-20 00:35:39 +00:00
paulus
aa01a834a4
some minor splx-type bug fixes from christos@deshaw.com.
1994-06-14 03:09:23 +00:00
paulus
5d72d095e8
check for escaped char before checking for escape char
...
so if peer escapes 0x5d we interpret it correctly
1994-05-29 23:44:23 +00:00
deraadt
043657b599
MIN -> min
1994-05-26 00:47:19 +00:00
cgd
f42a80c7ea
MIN -> min, MAX -> max
1994-05-24 02:33:03 +00:00
deraadt
b9753772a1
repair protos and functions
1994-05-15 19:20:02 +00:00
mycroft
07b4f2ab54
Update to 4.4-Lite networking code, with a few local changes.
1994-05-13 06:02:48 +00:00
mycroft
d361acde18
Update to 4.4-Lite networking code, with a few local changes.
1994-05-13 06:01:27 +00:00
mycroft
d3be517803
Update to RTM version 3. Add prototypes. Add some new constants which are
...
not used yet.
1994-05-11 09:26:46 +00:00
paulus
cd4969fcb4
Version from ppp-2.1 release.
1994-05-08 12:34:20 +00:00
paulus
3f7fd64c45
Version from ppp-2.1 release;
...
this version has been restructured to make more of the code usable
with sync serial drivers
1994-05-08 12:33:49 +00:00
cgd
5742972bb4
kill kinfo stuff, for now
1994-05-07 04:26:58 +00:00
mycroft
e593e490db
Remove now-bogus cast.
1994-05-05 09:33:21 +00:00
cgd
a0a7429482
lots of changes: prototype migration, move lots of variables, definitions,
...
and structure elements around. kill some unnecessary type and macro
definitions. standardize clock handling. More changes than you'd want.
1994-05-05 05:35:42 +00:00
deraadt
946453260a
fixes from <brad@fcr.com> who claims it now works correctly
1994-05-03 23:02:07 +00:00
cgd
e0db92993a
change timeout/untimeout/wakeup/sleep/tsleep args to void *
1994-04-29 23:15:51 +00:00
mycroft
7b52dc20c4
NETISR_RAW is defunct.
1994-04-18 23:30:28 +00:00
mycroft
084a465c9a
Add NETISR_ARP.
1994-04-18 23:20:26 +00:00
glass
a3b042140f
revised nfs diskless support. uses bootp+rpc to gather parameters
1994-04-18 06:18:05 +00:00
cgd
ace91bc015
two reference count fixes, and minor cleanup (to offset the added goto! 8-).
1994-03-23 05:05:03 +00:00
glass
f5cea46e83
put declarations in argument order
1994-03-14 07:46:05 +00:00
cgd
b32da851b9
Some stability/safety/extensibility patches. Inspired by Christoph Badura.
...
Always make sure our buffer is large enough, and restart hung lines.
1994-03-08 07:27:23 +00:00
andrew
bc72e3a892
Fixed a bug with TUN_OPEN flag handling during tunclose(), as noted by
...
Mark Delany <markd@bushwire.apana.org.au>.
1994-02-28 07:16:10 +00:00
mycroft
73535dd9ce
IFF_ALLMULTI is not externally settable.
1994-02-16 20:12:50 +00:00
mycroft
4b8ec6c627
Clean up deleted files.
1994-02-10 17:28:02 +00:00
mycroft
7e9f402331
Clean up deleted files.
1994-02-10 17:26:56 +00:00
mycroft
bf98a55f37
Deprecate af.h.
1994-02-10 17:25:03 +00:00
mycroft
39d918e7ce
if_init and if_done are not actually used; no point in having them at all.
1994-02-10 17:16:33 +00:00
cgd
d2660232c1
mccanne convinced me that slip.h *should* exist. this is what
...
i "implemented" for 4.4, and the adjustments to the other files to
match.
1994-02-10 05:39:07 +00:00
mycroft
7ef678610c
Remove an #ifdef we no longer need.
1994-02-05 08:01:22 +00:00
hpeyerl
1f2c9ecdae
Multicast is no longer optional
1994-02-02 01:21:32 +00:00
deraadt
b45332d2b5
new from mccanne. be afraid.
1994-01-25 06:10:08 +00:00
deraadt
ad054dea7e
PPP_HEADER_LEN -> PPP_HDRLEN
1994-01-25 05:56:06 +00:00
deraadt
b8fdadd662
ether_output() & ether_input() take ether_type as a net-short.
...
AF_UNSPEC does not swap byte order of ether_type.
NOTE: this requires driver changes
1994-01-23 23:41:14 +00:00
glass
261832c5df
got rid of a warning reported by Bill Sommerfeld
1994-01-21 06:33:31 +00:00
cgd
a939028310
include <machine/cpu.h> not <machine/mtpr.h>
1994-01-16 02:22:51 +00:00
deraadt
47ef1f0c2e
multiple inclusion protection
1994-01-15 20:13:11 +00:00
mycroft
b8cc9a5cd2
Get the pkthdr.len calculation right.
1994-01-12 02:45:11 +00:00
deraadt
d553c09639
writing out of bpf; use a hdr mbuf and set the pkthdr.len as well.
...
(rarpd now works with if_ep.c!)
1994-01-12 00:38:50 +00:00
cgd
df2025f938
quench the grammar flames!
1994-01-08 02:54:04 +00:00
deraadt
a2d143ab3f
don't need to #include <sys/socket.h> twice.
1994-01-06 14:00:35 +00:00
deraadt
8c75649495
must pull in machine-cpu.h
1993-12-24 03:20:59 +00:00
cgd
61bcdb266e
include <machine/cpu.h> rather than <machine/mtpr.h> -- if the latter
...
exists at all, it's supposed to be included by <machine/cpu.h>
1993-12-23 07:36:06 +00:00
cgd
18d2f02bc9
serious cleanup
1993-12-20 07:47:15 +00:00
cgd
e1a021aee8
include machine/cpu.h, for machines which define soft interrupt stuff
...
there. marked XXX; they prolly shouldn't do that...
1993-12-19 02:09:41 +00:00
mycroft
f1a5c33098
Canonicalize all #includes.
1993-12-18 04:46:25 +00:00
mycroft
95b048b53a
Canonicalize all #includes.
1993-12-18 00:40:47 +00:00
mycroft
ea13c12adc
From magnum branch:
...
Remove Jolitz's netisr kluge. Make sure cpl == 0 really means base priority.
Other minor cleanup.
1993-12-17 00:10:06 +00:00
deraadt
1aac161bb3
change MTU to 1500 bytes. Should be settable?
1993-12-13 14:27:01 +00:00
deraadt
65824a7d8b
tunnel driver cleanup done by Brad Parker <brad@fcr.com> and myself
1993-12-13 05:06:33 +00:00
cgd
381d61d756
move slip compression configuration into the interface flags,
...
and diddle a couple of related things.
1993-12-10 13:24:21 +00:00
cgd
b556fd992e
slight fix to last
1993-12-10 11:45:25 +00:00
cgd
1da7a80f7e
the IFF_MULTICAST constant should always be defined. also,
...
move IFF_LLC* -> IFF_LINK*; they were misnamed.
1993-12-10 10:57:05 +00:00
hpeyerl
aa7f3b23a8
multicast support.
...
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.
1993-12-06 04:50:19 +00:00
hpeyerl
d1648996c9
multicast support.
...
From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.
1993-12-06 04:17:38 +00:00
deraadt
1786d90ff5
rename loattach() to loopattach() so that the pdevinit[] stuff can find it.
1993-11-23 08:16:55 +00:00
cgd
9e078d7394
defines change
1993-11-23 04:51:25 +00:00
deraadt
5c7d4e081c
add bpfilterattach(), as in magnum
1993-11-15 09:56:46 +00:00
deraadt
04c059f13c
use one stop shopping selwakeup/selrecord
1993-11-14 20:33:26 +00:00
deraadt
d19b5e0673
cleaned up version of the tunnel driver
1993-11-14 20:07:20 +00:00
glass
af72539915
T_LINEP member of struct tty becomes t_sc. This replaces the
...
#define t_sc T_LINEP
that appear in tty_tb.c, if_sl.c, and if_ppp.h
1993-11-09 06:22:08 +00:00
paulus
5fda6c1974
Removed test (CCOUNT(&sc->sc_ttyp->t_outq) == 0) for whether
...
to call pppstart or not: now we call pppstart for every packet,
which should aid recovery from lost transmitter interrupts.
Also a fix for 386BSD/FreeBSD which doesn't affect NetBSD.
1993-11-04 03:45:23 +00:00
glass
7a7e6dbd95
removed slip and ppp specific prototypes from tty.h where they didn't belong.
...
moved them to tty_conf.c within #if Nwhatever > 0 where they do belong.
made sure that if_sl.c, and if_ppp.c still compile quietly.
1993-10-31 19:27:45 +00:00
mycroft
614a71039d
Call output routine redundantly to possible avoid some hangs due to missed
...
interrupts.
1993-10-02 09:28:04 +00:00
mycroft
188ab15167
Ignore carrier if not using hardware carrier detect (i.e. CLOCAL is set).
1993-10-02 08:55:16 +00:00
mycroft
c179e54a04
Ignore TS_CARR_ON when CLOCAL is set.
1993-09-23 22:16:15 +00:00
davidg
a5f8e1f738
added include of select.h to bpfdesc.h because it now has a reference to
...
struct selinfo.
1993-09-09 09:43:18 +00:00
cassidy
660c5a501a
Add definitions for RARP request and reply.
1993-09-05 00:46:54 +00:00
jtc
f7b7d95850
include systm.h to get prototypes (and possibly inlines) of *max functions.
1993-09-04 00:00:19 +00:00
paulus
3ecb88ccbc
Fixed bug in if_ppp.c so that received IP packets are passed correctly to BPF.
1993-09-02 12:10:59 +00:00
paulus
d71061b357
Modified if_ppp.c and if_ppp.h to add priority queueing for "interactive"
...
traffic (done in a similar fashion to if_sl.c), and BPF support.
1993-08-31 00:05:27 +00:00
mycroft
bc2088820b
+ #if defined(INET) && NETHER > 0
...
+ #endif
Around the:
/* XXX -- Temporary fix before changing 10 ethernet drivers */
so you can compile a kernel with out INET and ETHERNET support.
1993-08-27 10:26:08 +00:00
deraadt
3604916e13
ppp from paul mackerras
1993-08-14 06:29:28 +00:00
deraadt
b7fcd001c8
add an additional suser() check.
...
regular users should not be able to change slip interface characteristics!
1993-08-09 05:11:52 +00:00
deraadt
13b002b9d3
suser() was being called in the old 4.3 way
1993-08-09 01:19:38 +00:00
cgd
cd56dd1638
merge in changes from netbsd-0-9-ALPHA2
1993-08-07 07:53:27 +00:00
glass
76f78fcf75
more "warning: `/*' within comment" fixes
1993-08-03 01:51:16 +00:00
mycroft
4862b84c92
Add RCS identifiers (this time on the correct side of the branch), and
...
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +00:00
mycroft
3be4221095
Change tty code to use clist interface, but with ring buffer implementation.
...
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.
1993-07-12 11:36:53 +00:00
andrew
0e6cb953ea
ANSIfications - removed all implicit function return types and argument
...
definitions. Ensured that all files include "systm.h" to gain access to
general prototypes. Casts where necessary.
1993-06-27 06:01:27 +00:00
cgd
fe1802950b
add include of select.h if necessary for protos, or delete if extraneous
1993-05-22 11:40:42 +00:00
cgd
a82018489a
add rcs ids to everything, and clean up headers
1993-05-20 03:05:46 +00:00
cgd
8d6c77881c
make kernel select interface be one-stop shopping & clean it all up.
1993-05-18 18:18:40 +00:00
deraadt
64f341ec2a
ring buffer now uses rbchar's (shorts) instead of chars.
1993-05-10 23:15:37 +00:00
cgd
e0e82746ae
patch for multiple loopback interfaces (via "pseudo-device loop 2", etc.)
...
from David Burren <davidb@otto.bf.rmit.oz.au>
1993-05-07 09:27:52 +00:00
mycroft
235bd1db44
Add consistent multiple-inclusion protection.
1993-04-19 03:45:34 +00:00
glass
39a3e30f00
fixed missing include to avoid warning
1993-04-10 15:59:30 +00:00
cgd
f16a01db9c
bump slip MTU back down to 296...
1993-04-09 20:42:06 +00:00
glass
696d0f1953
fixes stupid piece of bpf code that duplicates cdefs.h's handling of
...
'inline' in such a way as to cause stupid warnings.
1993-04-09 11:02:51 +00:00
deraadt
bacbdac9c8
commit damnit!
1993-04-06 06:50:20 +00:00
deraadt
d64d6e2c56
selwakeup() takes a "pid_t" rather than "struct proc *" now.
1993-04-05 22:04:09 +00:00
cgd
a029deb322
one line got botched during bpf patch installation
1993-03-25 10:08:55 +00:00
cgd
73119bc337
added BPF support, as provided by David Greenman (davidg@implode.rain.com)
1993-03-25 00:27:49 +00:00
cgd
e541169ce2
after 0.2.2 "stable" patches applied
1993-03-21 18:04:42 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00