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
christos
bf10ca4eff
linted comment
1998-12-10 15:11:05 +00:00
christos
bee9dafdf5
defopt COMPAT_43
1998-12-10 15:07:01 +00:00
christos
c7578c510a
defopt
1998-12-10 11:01:01 +00:00
bouyer
433c02431e
Init the decriptors at boot time rather than at interface attach time.
...
Now that we have pcmcia hot-plug, it's not the same. Fixes kern/3189.
1998-12-04 11:04:37 +00:00
sommerfe
14dc6ddfe6
Fix PR6473: allow sends to tun* devices using bpf.
1998-11-30 21:43:11 +00:00
jonathan
fb020850a0
Increase compiled-in default bpf buffer size from 4096 to 8192.
...
(the libpcap API provides no way to resize the inkernel buffe,r and
4096 is too small to capture maximum-sized FDDI frames.)
1998-11-05 22:50:15 +00:00
thorpej
be4ce8c3f4
Add "10baseT-FDX" and "100baseTX-FDX" aliases to the end of the subtype
...
table. These are actually subtype+option combos, but these are the
strings displayed by the MII code to indicate 10Mbps full-duplex and
100Mbps full-duplex respectively, and it's Nice that ifconfig(8) can
grok them.
1998-11-02 22:10:26 +00:00
kml
afd8d9361f
Add call to splsoftnet() in rt_timer_timer to avoid possible race
...
condition in deleting timer queue (PMTU) entries.
1998-10-28 05:01:11 +00:00
kim
e34aa44c14
Put back ETHERTALK_AT (but I did convert *all* code to ETHERTYPE_ATALK),
...
so if vendors (or something) used it, it is still found. Also added short
comments for each alias to explain why they are there.
1998-10-13 02:55:18 +00:00
kim
cd7e3136ad
Use ETHERTYPE_ATALK instead of ETHERTYPE_AT. The former seems more common.
...
Our other constants also use "ATALK".
Added many new ETHERTYPE constants to sys/net/ethertypes.h, including the
ones from libpcap and tcpdump "ethertype.h" files.
1998-10-13 02:34:31 +00:00
thorpej
588ccb2d75
Fix some typos in comments, and clean up some whitespace.
1998-10-07 23:33:02 +00:00
kleink
44b31a4395
Use #error instead of causing parse errors; noticed by Heiko.
1998-10-06 18:38:08 +00:00
hwr
0959469679
Also install if_gre.h in /usr/include/net/
1998-10-02 19:23:55 +00:00
hwr
eaccb9cd8d
Start supporting IPPROTO_MOBILE (55) encapsulation. This is yet
...
another tunneling protocol used by the Mobile-IP people. See RFC 2004
for this.
1998-09-30 05:59:27 +00:00
matt
08e1d890a4
Changes so that BPF readers will get the data in fddi packet aligned along
...
normal boundaries. This makes tcpdump much happier.
1998-09-20 02:36:08 +00:00
hwr
6831c842f3
The post 1.3.2 world is actually ready for this.
1998-09-13 21:39:49 +00:00
hwr
366b9c4515
Add a gre tunnel pseudo network device. Gre = generic route encapsulation.
...
This device shows up like any other network interface and can be used to
tunnel L3 protocols as e.g. IP over IP.
1998-09-13 20:27:47 +00:00
thorpej
78f9387863
Add/move some Ethertypes, PR #5997 , Heiko W.Rupp.
1998-09-09 04:32:39 +00:00
christos
564a4c75d0
PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers.
1998-09-03 14:12:36 +00:00
enami
27d8639238
Make this compile with -DIFMEDIA_DEBUG.
1998-08-30 07:39:39 +00:00
mrg
a317393b79
use __NetBSD__ not NetBSD
1998-08-26 15:12:55 +00:00
thorpej
2cffea3962
Use do { ... } while (0) in RTFREE().
1998-08-25 04:22:33 +00:00
veego
ff2c3adddc
Add some braces to stop the new egcs warnings.
1998-08-20 19:55:06 +00:00
thorpej
7cc905f5c8
Add some braces to make egcs happy (ambiguous else warning).
1998-08-18 06:27:01 +00:00
thorpej
06b7eb9001
Explicitly dereference the route timer expiration function pointer.
1998-08-15 03:17:21 +00:00
thorpej
798cb235bc
Oops, I forgot aliases for some old names (10baseT/UTP, 10base2/BNC,
...
and 10base5/AUI).
1998-08-12 23:23:29 +00:00
thorpej
f996a2e194
Define IFM_INST_MAX, the largest possible "instance" value.
1998-08-08 22:12:30 +00:00
thorpej
ddb9746a51
Define the minimum and maximum "network type" values. These values are
...
incremented by the minimum to interate through them.
1998-08-06 19:16:37 +00:00
perry
b84f472652
Sigh. "consts in prototypes can be quite a drag..."
...
fix last two fixes one more time, this time dealing with ugly
prototype issues, including the fact that the bcopy returns nothing,
but memcpy returns a void *. Never mind that we don't use it...
1998-08-06 04:37:57 +00:00
perry
9f63941cfa
Fix botched prototype decl in last fix.
1998-08-06 04:25:55 +00:00
perry
df410f33db
Convert bcopy,bzero to memcpy,memset
...
This was semi-nontrivial, since a function pointer to bcopy gets used
in this file.
Note #1 : The catchpacket routine, which takes a function pointer to
bpf_mcpy or memcpy, should probably be converted to take a
flag that just says which is used, so memcpy can be inlined.
Note #2 : The code is heavily #ifdef'ed to run on older operating
systems. We probably want to clean that cruft out, unless
someone is planning a new release of the code at LBL (doubtful.)
1998-08-06 04:24:25 +00:00
thorpej
dd588c0660
Add a macro to create a media word from type, subtype, options, and instance.
1998-08-06 02:38:19 +00:00
thorpej
b04ded7264
Completely rewrite the way media descriptions are represented. The same
...
data structure is used, but a much saner matching mechanism is used, one
which allows greater ease in adding new types.
1998-08-06 02:19:34 +00:00
thorpej
1b58f59205
Add IFM_10_FL - 10baseFL (fiber)
1998-08-03 12:42:26 +00:00
sommerfe
6ee9772e54
Fix PR5898: ppp delays last packet.
1998-08-02 15:09:50 +00:00
is
a276ff33bc
Remove obsolete comment.
1998-07-28 12:25:53 +00:00
explorer
d83ea88a76
define DLT_HDLC
1998-07-25 11:31:18 +00:00
thorpej
e552760fbe
Glue in fast forwarding.
1998-07-09 22:30:01 +00:00
sommerfe
3858a1179a
Only run pppasyncstart (sc->sc_start) from the netisr handler.
...
This allows pppoutput to be called from splimp (e.g., when ipflow is
in use.) without requiring pppasyncstart to run at splimp.
This is believed to fix PR5624.
1998-07-08 18:05:48 +00:00
thorpej
9ab51d2224
Make this compile again.
1998-07-07 03:22:03 +00:00
jtk
14119e2944
use #ifdef INET so this compiles again
1998-07-06 13:51:32 +00:00
jonathan
b37021c1a1
defopt NATM.
1998-07-05 22:48:05 +00:00
jonathan
011f2bda08
defopt NS, NSIP.
1998-07-05 06:49:00 +00:00
jonathan
5c0c5dd0b4
defopt ISO TPIP.
1998-07-05 04:37:35 +00:00
jonathan
fe484937cf
defopt LLC
1998-07-05 03:14:41 +00:00
jonathan
8db0fcdbf7
defopt CCITT.
1998-07-05 02:12:22 +00:00
jonathan
3751946b97
defopt INET, NETATALK.
1998-07-05 00:51:04 +00:00
thorpej
816e12eac2
defopt COMPAT_SVR4
1998-06-26 00:07:06 +00:00
thorpej
c466f11939
defopt COMPAT_LINUX
1998-06-25 23:18:23 +00:00
cgd
651b44e211
Rework the way kernel include files are installed. In the new method,
...
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
kleink
3ecb81dc87
Sync the symbol used for multiple inclusion protection with the canonical
...
location of this header.
1998-05-29 13:37:39 +00:00
matt
b2c24dbcbe
Add an if_drain to the ifnet structure (call when the system is low
...
on mbufs). Add code to m_reclaim to call if_drain in each ifnet
that has one set. Remove register from declarations.
1998-05-22 17:47:21 +00:00
kml
051be14326
Correct copyright date.
1998-05-17 16:46:06 +00:00
thorpej
ff4919623e
Add missing RCS ID.
1998-05-16 00:49:45 +00:00
kml
e72782a137
Driver for Essential Communications' RoadRunner HIPPI (800 Mb/sec network)
...
card. With some modification, this could probably also work for their
Gigabit Ethernet card based on the same chipset...
1998-05-14 00:04:57 +00:00
drochner
63cecf5737
This comment is not true.
1998-05-06 18:23:34 +00:00
bouyer
de584a5245
Make ATM_LLC_SETTYPE do the rigth thing: swap byte on LE machines,
...
don't swap on BE machines. The previous revision required a ntohs()
in atm_output(), to work on LE machines. This was broken for BE machines.
1998-05-06 10:16:04 +00:00
christos
f648c916d5
Add IPX bits.
1998-05-04 12:54:22 +00:00
thorpej
5e7c21d896
Need <sys/socket.h> to stand alone.
1998-05-02 21:19:03 +00:00
christos
0f39feb773
Merge changes from pppd-2.3.4; adds ppp-deflate-draft stuff and updates
...
zlib. Maybe we can merge our other copy of zlib with this one now and
avoid having two copies?
1998-05-02 14:34:24 +00:00
thorpej
4c5d87fd09
Squash a typo.
1998-05-01 03:58:55 +00:00
thorpej
2fdee596a3
Glue in IP flow fast forwarding.
1998-05-01 03:50:59 +00:00
thorpej
7e223b244a
Add FDDI source address spoofing via pseudo_AF_HDRCMPLT.
1998-05-01 03:44:52 +00:00
thorpej
27dba7b8e8
Implement two new BPF ioctls: BPFGHDRCMPLT and BPFSHDRCMPLT, to get/set
...
the "header already complete" flag. This allows BPF writers to spoof
layer 2 source addresses (providing the layer 2 in use supports it) in
applications where this is necessary. From Greg Smith <greg@nas.nasa.gov>.
1998-04-30 00:08:19 +00:00
thorpej
5e5904eb39
In ether_output(), if the socket address family is pseudo_AF_HDRCMPLT,
...
use the Ethernet source address speficied in the sockaddr rather than
the interface's Ethernet address, and then fall through to the AF_UNSPEC
case. From Greg Smith <greg@nas.nasa.gov>.
1998-04-30 00:05:41 +00:00
matt
d4d709f7d0
Add support for "fast" forwarding. Add hooks in if_ethersubr.c and
...
if_fddisubr.c to fastpath IP forwarding. If ip_forward successfully
forwards a packet, it will create a cache (ipflow) entry. ether_input
and fddi_input will first call ipflow_fastforward with the received
packet and if the packet passes enough tests, it will be forwarded (the
ttl is decremented and the cksum is adjusted incrementally).
1998-04-29 21:37:52 +00:00
thorpej
93b075a492
Oops, we depend on <sys/queue.h>.
1998-04-29 17:49:58 +00:00
kml
8cdafd0efb
Add generic route timeout functionality; used by path MTU discovery code
1998-04-29 03:41:49 +00:00
mrg
816ca00ce0
remove some register.
1998-04-26 06:17:20 +00:00
bouyer
287667ba9a
Fix my previous commit: the ATM_LLC_* macros do the ntoh/hton conversion,
...
so the bug was not a missing ntohs in atm_input(), it was an extraneous
htons in atm_output().
1998-04-15 13:01:51 +00:00
bouyer
3d92d64171
Add a missing ntohs. With this change I got ip over atm (vpi/vci) working
...
between 2 PCs.
1998-03-24 18:48:59 +00:00
kleink
56ddd74138
register -> register int
1998-03-24 12:57:15 +00:00
enami
7972ef1160
Add missing comma.
1998-03-23 13:08:56 +00:00
fair
782eb42847
add the ability to run SLIP with CLOCAL set, per PR#3586
1998-03-23 04:41:16 +00:00
mrg
45159fa631
convert pfil(9) in and out lists from <sys/queue.h> LISTs to TAILQs, and
...
change pfil_add_hook to put output filters at the tail of the queue,
while continuing to place input filters at the head of the queue. update
the two users of these functions, and document these changes.
fixes PR#4593.
1998-03-19 15:45:30 +00:00
tv
c70676bb18
PR #2736 : wrap the softc in #ifdef _KERNEL so userland can include this
...
file to get at the ioctl values without barfing on the softc
1998-03-18 21:21:48 +00:00
fvdl
7ba6a2daac
Remove extraneous files from Lite2 merge.
1998-03-01 13:45:28 +00:00
ross
c6b14e94ad
Add new type number received from IANA. Also, note the new home of
...
the IANA master list, post RFC1573.
1998-03-01 07:13:41 +00:00
fvdl
e5bc90f40c
Merge with Lite2 + local changes
1998-03-01 02:20:01 +00:00
fvdl
b50e39fa45
Import 4.4BSD-Lite for reference
1998-03-01 02:09:33 +00:00
perry
41c3fea850
add multiple inclusion protection (and cleanup).
1998-02-09 17:43:44 +00:00
ross
52a1c5fced
And yet more numbers, e.g., CATV upstream and downstream types.
1998-02-04 01:00:23 +00:00
ross
124b287686
Add the last few years of IANA assignments, e.g., Gb ethernet.
1998-02-03 04:20:05 +00:00
jtc
7cea5e6bbe
Fix tipo
1998-01-30 08:37:41 +00:00
thorpej
9bba708a7a
Add 1000baseFX and 10baseT/STP Ethernet media types.
1998-01-30 01:24:40 +00:00
thorpej
4c54445530
Use offsetof() from libkern.h
1998-01-28 02:35:10 +00:00
perry
d38a11e380
Fix imported RCS keyword slightly
1998-01-05 05:08:43 +00:00
christos
badc0e40aa
PR/2733: Bill Sommerfeld: route change command can crash system. Actually
...
the case mentioned in the PR was fixed as part of PR/2582. There was a similar
case though that was not handled as part of my initial fix, which was fixed
in FreeBSD. I applied the remaining part from FreeBSD and the code matches
now the FreeBSD respective version. [this probably should be pulled up for 1.3]
1997-12-10 00:47:57 +00:00
thorpej
851be78801
Start the watchdog timer in stripopen(), and make sure it's cancelled in
...
stripclose(). In strip_watchdog(), make abort if the line has been closed.
This fixes kern/4470 (Wolfgang Rupprecht), which was a bad pointer passed
to b_to_q() from strip_proberadio() called via strip_watchdog(); the tty
hadn't yet been attached to the strip interface.
1997-11-20 08:03:06 +00:00
thorpej
7ec7599a61
Change the interface name from "st" to "strip", so as to match the
...
pseudo-device option listed in the kernel config file, and to avoid
a name clash with the "SCSI tape" driver.
1997-11-17 23:35:28 +00:00
thorpej
22284276e8
Remove a gratuitous debugging printf.
1997-11-17 23:01:44 +00:00
lukem
9e35298d34
* modify ether_aton, ether_hostton, and ether_line to take 'const char *'
...
arguments as appropriate
1997-11-02 14:26:15 +00:00
mycroft
4666f77376
Do *not* free the mbuf chain we just created.
1997-10-12 16:35:10 +00:00
christos
328602f8d7
Add definitions for bpf_int and bpf_u_int; these are not used in the kernel,
...
but libpcap expects them if we advertize our current BPF_VERSION.
1997-10-10 14:15:32 +00:00
mrg
74f573d85d
remove advertising clause from all my licenses.
1997-10-10 05:39:47 +00:00
christos
6155bdd332
GC bd_sig
1997-10-09 18:58:08 +00:00
christos
485a068ec2
bpf_filter.c:
...
- update copyright
- add their rcsid
- initialize some variables later later for consistency
with the current code.
- change char to u_char to match the current code.
1997-10-09 18:20:04 +00:00
christos
7e9caf0d73
- add their rcsid
...
- add ifdef to match current code
1997-10-09 18:19:21 +00:00
christos
b13f94b5bf
sync with bpf-1.2a1
...
- fix whitespace
- add rcsid
- add BPF_RELEASE define
- add BIOCSTCPF BIOCSUDPF
1997-10-09 18:18:37 +00:00
christos
3108a74999
Sync with bpf-1.2a1
...
- whitespace
- add rcsid; our sccsid is newer than the one on 1.2a1.
- change prototype to add mtu
- change size_t to u_int for consistency.
- add alignment stuff in bpf_movein
- add more consistency checks bpf_movein
- use one uiomove and then bcopy the data in bpf_movein
- update the comment for the panic when ifpromisc fails.
- separate the case when we have non blocking I/O and
no data and return EWOULDBLOCK
- check for other errors and return them
- pass the mtu to bpf_movein
- Add the BPF_KERN_FILTER junk, just so that we keep up with the code
- remove BIOCSRSIG, BIOCGRSIG; SIGIO does this well.
- don't add the SIOCGIFADDR stuff (it is bogus)
- Check for malloc return for consistency.
- comment should say poll
- change formatting to match the current code.
- save and restore the pcount and flags in case we fail to set the
interface into promiscuous mode.
- fix spelling typo.
1997-10-09 18:17:19 +00:00
christos
894064be59
- Add some new data link types from libpcap-0.4a3
...
- bpf_filter() does exist in userland
1997-10-03 16:24:18 +00:00
is
fabb33431c
Reimplement a test for broadcast addresses advertized, which was left out
...
when rewriting the ARP system.
1997-10-02 19:41:56 +00:00
matt
fe94e79c57
Add SIOC{ADD|DEL}MULTI ioctl to support (for IFF_MULTICAST).
1997-09-25 13:11:58 +00:00
matt
27b993ed37
Add support of SIOCIFMTU to vary mtu of interface. Also allow IFF_MULTICAST
...
on TUNSIFMODE (sometimes you'd like to do IP multicast on tunnel devices).
1997-09-24 19:45:11 +00:00
mikel
a1c1c11a40
eliminate non-comment text after #endifs; from Dave Sainty in PR kern/4091
1997-09-08 02:06:30 +00:00
thorpej
ff970dc9c5
Garbage-collect.
1997-08-29 00:57:54 +00:00
thorpej
0eee106cc2
Bring changes from marc-pcmcia branch down to the trunk.
1997-08-29 00:57:28 +00:00
jonathan
b327731e26
Add MHLEN + MLEN extra space to LOMTU for IP and transport headers.
1997-08-14 01:12:35 +00:00
phil
511baacef4
Provide better filter validation. PR 3366.
1997-07-07 18:18:28 +00:00
christos
d980c28e1d
From Paul Mackerras: use sl_compress_setup, not sl_compress_init
1997-06-16 17:01:36 +00:00
christos
6a9f9d3292
PR/3665: Martin Husemann: if_strip calls sl_compress_init with extra arg.
1997-05-24 14:39:44 +00:00
christos
cf463415ec
Update to ppp-2.3b5
1997-05-17 21:11:59 +00:00
mikel
5f50ab9716
fix bogons; from Jonathan O'Brien in PR kern/3571.
1997-05-07 04:47:15 +00:00
christos
3f5d9dd199
Rename a the pdu fields and don't add the bogus cast on the frmrinfo define.
1997-05-02 21:08:54 +00:00
christos
964a864dac
Bring back to life struct frmrinfo and llc_frmrinfo; these are used in netccitt
1997-05-01 23:07:13 +00:00
christos
9dfe73a161
PR/3462: William Studenmund: sizeof(struct llc) returns 10 on m68k instead
...
of 8. Since structure padding on the m68k is 16 and on the arm is 32, we
rearrange the frmrinfo portion of the union not to contain a second structure.
1997-05-01 14:42:24 +00:00
is
f4271c55fd
Made pppoutput() public again on behalf of Martin Husemann (PR 3455).
...
Apparently, the BISDN package uses this function.
1997-04-16 12:54:42 +00:00
chuck
cf0f247359
prevent multiple inclusions
1997-04-08 21:29:26 +00:00
christos
bd1db9fd84
Fix compile problems (from Veego)
1997-04-03 21:07:42 +00:00
christos
11754cdf41
Update for argument change in at_ifawithnet
1997-04-03 18:48:28 +00:00
christos
c5257947c7
PR/3444: Erik Bertelsen: Eliminate warnings when -UINET
1997-04-03 15:25:20 +00:00
christos
0b1d82fb18
Add netatalk stubs.
1997-04-02 21:23:26 +00:00
christos
964633009c
Sync with Lite2.
1997-04-02 21:17:28 +00:00
thorpej
0226fc32e4
Don't attempt to include config(8)-generated headers if we're included
...
by userland.
1997-03-29 19:52:41 +00:00
thorpej
667f747f9a
m_copyback() is now in uipc_mbuf.c
1997-03-27 20:38:20 +00:00
thorpej
d1c9089a16
Update for the new mbuf code, in a slighly kludgy way. Basically, these
...
drivers played a somewhat evil trick with clusters, which is now
replaced by a somewhat evil trick with regular malloc'd memory.
1997-03-27 20:36:14 +00:00
thorpej
fecae4de60
Back out the previous change (add IFM_10_EXT) after some dicussion
...
w/ BSDI and Matt Thomas.
1997-03-26 01:19:27 +00:00
christos
d465daac1e
make sure that the tty layer restarts the ppp layer when there is an error
...
such as out of buffer space.
1997-03-25 22:33:25 +00:00
jonathan
9a834c4127
Add ARP hardware type for Richochet "starmode" radio addresses.
1997-03-25 02:30:52 +00:00
christos
261ef8aa5a
Add missing slpx(); from Bill Sommerfeld
1997-03-24 21:23:10 +00:00
thorpej
6adc9b82fd
Add the IFM_10_EXT ("external") ethernet subtype, to accomodate cards
...
that have the notion of an "external media port". Suggested by
Matt Thomas <matt@3am-software.com>.
1997-03-24 06:57:31 +00:00
thorpej
4c03c2945d
Resolve conflicts from merge.
1997-03-24 00:35:02 +00:00
is
4555777c80
Fix several bugs related to the new ARP code, and ARCnet ARP support.
...
Among other, add ARPHRD_ARCNET definition, make sure the hardware type is
set on outgoing ARP packets, make sure we dont send out replies as broadcasts.
1997-03-23 01:22:35 +00:00
mycroft
9e9b78f1b5
Don't feed packets to BPF that were not `sent' from the loopback device.
...
From PR 1693, by Jean-Luc Richier.
1997-03-21 16:58:49 +00:00
is
33d80a37da
Deal with AF_ARP on transmission --- without it, the new ARP code doesn't
...
work.
1997-03-19 16:17:04 +00:00
is
7e9704bb08
Make this compile on port-amiga. Bug report by Bernd Ernesti.
1997-03-17 16:56:34 +00:00
scottr
4cf4807ab0
if_arc.h is in net, not netinet.
1997-03-17 06:45:20 +00:00
thorpej
1b1c7ef868
BSD/OS-style network interface media selection, implemented by
...
Jonathan Stone and myself. Many thanks to Matt Thomas for providing
the information necessary to implement this interface, and for helping
to shake out the bugs.
1997-03-17 02:55:12 +00:00
is
57f2f47e2c
move if_arc.h to sys/net
1997-03-16 23:27:07 +00:00
cgd
1f5d64db6b
s/if_ethertypes.h/ethertypes.h/ because if_ethertypes.h doesn't exist
1997-03-15 21:10:45 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
fvdl
82e4fd7f72
Avoid 'unused variable' warning for copyright string, like in the
...
previous zlib.c version in the tree.
1997-03-13 20:11:53 +00:00
christos
e775167e27
Update to ppp-2.3b4; from Paul Mackerras
1997-03-12 20:26:46 +00:00
chuck
cdd09b01c5
minor fix to freebsd section of code from Kenjiro Cho <kjc@csl.sony.co.jp>
1997-03-11 23:19:51 +00:00
mycroft
e4bbd86a82
Use splimp() to block interrupts, not splhigh().
1997-03-04 21:40:07 +00:00
scottr
64d150af76
Avoid duplicate definition of PFIL_HOOKS in the case that the config
...
file specifies that option.
1997-02-22 17:52:44 +00:00
thorpej
cf9c91c5d7
Allow non-superuser to open, listen to, and send safe commands on the
...
routing socket. Superuser priviledge is required for all commands
but RTM_GET.
1997-02-22 03:47:01 +00:00
thorpej
60449c1840
Don't let the read timeout get inadvertently rounded down to 0.
...
From John Hawkinson <jhawk@mit.edu>, PR #2531 .
1997-02-21 23:59:35 +00:00
scottr
54b157939d
Don't include ipfilter.h if building an LKM.
1997-02-19 23:07:57 +00:00
mrg
4c8bfe2630
pseudo-device ipfilter brings in PFIL_HOOKS.
1997-02-18 20:49:32 +00:00
gwr
77eb8c5a65
fix alignment again for m68k
1997-01-15 18:22:35 +00:00
mikel
d235ef1a1c
hide softc array and kernel routine prototypes from userland; PR misc/3070
1997-01-03 07:23:29 +00:00
mrg
2cf2442208
remove pfil_bad.
1996-12-20 08:40:46 +00:00
mikel
9aba065e07
add ATM data-link type; reqd. for libpcap.
1996-12-13 07:57:33 +00:00
mycroft
f056beb022
Undo silly part of previous change.
1996-12-11 09:37:42 +00:00
chuck
df6962b659
fix previous byte-order fix the correct way
...
(from Zdenek Salvet <salvet@horn.ics.muni.cz>)
1996-11-09 23:02:27 +00:00
cgd
8800178e5c
-Wcast-qual cleanups. Don't discard 'const' when casting.
1996-10-25 22:15:54 +00:00
perry
3189406a17
Small fix to make this compile even if no BPFs are being compiled
...
in. Unfortunately, the BPF-only code called a label that wan't also
being #if'ed, and this made the compiler bitch. Now that we compile
with -Werror, this prevented the thing from compiling at all! (sigh)
1996-10-21 01:58:23 +00:00
chuck
41a87a7ae0
fix: add missing ntohs() for llc mode, as noted by several people including
...
Dong Lin, Zdenek Salvet, and Matthias Drochner(i think).
1996-10-18 19:26:54 +00:00
christos
a1dcf4b026
backout previous kprintf change
1996-10-13 02:10:01 +00:00
christos
10191279fb
- printf -> kprintf, sprintf -> ksprintf
1996-10-10 22:59:41 +00:00
mrg
7b71cdec46
minor copyright update.
1996-10-05 23:41:53 +00:00
scottr
ae0d4c11cb
Use sys/types.h and sys/systm.h to bring in prototypes for bzero() and
...
bcopy(), instead of string.h
1996-09-18 03:11:03 +00:00
mrg
a5f00f16bc
move the packet filter hooks in to a saner location. while i'm here, rename
...
PACKET_FILTER to PFIL_HOOKS.
1996-09-14 14:40:20 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
is
905db38340
Add IP multicast support as per RFC 1122 section 3.3.7 to ARCnet.
...
"The mapping of IP Class D addresses to local addresses is
currently specified for the following types of networks:
[...]
o Any network that supports broadcast but not multicast,
addressing: all IP Class D addresses map to the local
broadcast address."
1996-09-02 17:28:22 +00:00
mrg
c01edc3a02
use sc_unit instead of pointer arthimetic.
1996-08-09 08:34:00 +00:00
jonathan
36c640a447
* Remove old, unused SLIP variables from softc.
...
* Fix radio error-message parsing bug: old comparison against error
prefix string off by the size of the Starmode link-level protocol field.
* Fix radio reset finite state machine, given that parsing works properly.
* Add debugging messages about reset FSM if IFF_DEBUG is set.
* Remove #ifdefs notdef around back the check that discards newlines at
the beginning of a frame. Every error message from the radio has a newline,
as the radio send error messages terminated by \r\n, not just \r like data
frames. Not dropping the \n garbles the following data frame.
* Remove unused low-level debugging routines.
* Reformat the low-level bytestuff/RLL code to match the canonical source.
* Reduce MTU to 1100 bytes; 1200 bytes can overflow the radio buffers if the
bytestuff/RLL does poorly.
* Fix radio-probe string to _not_ include a frame delimiter (\r): sending
a \r to the radio tickles a bug in the firmware, causing the radio to
smash the next frame sent after the "**\r" probe string.
* Add calls to the tty t_oproc routine to make sure the probe and reset
strings get sent to the modem promptly, rather than waiting for the next
packet.
* Add PPP-style calls to the tty start-output function; seems to
reduce latency marginally.
still to do:
* Flush output queue if resetting, since the radio is going to drop
frames on the floor anyway if it needs resetting.
* Reduce tty start-output calls.
1996-08-02 02:53:39 +00:00
cgd
ccfab1b072
#ifdef the declaration of 'ac' in fddi_input on ISO, since it's only
...
used if ISO is defined and -Wall complains.
1996-07-10 18:54:23 +00:00
cgd
1c5ea3c014
print difference between pointers with %ld, so that -Wformat works
...
on the Alpha and for consistency. Also, other minor formatting cleanups.
1996-07-10 18:15:22 +00:00
chuck
a7d86b86c8
add native mode atm network interrupt
1996-07-04 03:16:13 +00:00
chuck
26cf9de9d5
ported ATM to FreeBSD 2.2-960612-SNAP
1996-07-03 17:17:10 +00:00
christos
0c609bcf9e
- Fix PR/2582: default route change without specifying gateway kills system.
...
While I was there:
- Fix KNF style problem.
- Remove bogus casts to 0, and (caddr_t).
1996-07-01 01:12:32 +00:00
chuck
cc499a99d9
change:
...
- change asock to rxhand and adjust all for this [esp atm_input]
1996-06-29 20:07:05 +00:00
chuck
a2efd3b632
add hook for user to turn on/off raw mode
1996-06-28 02:34:34 +00:00
chuck
849f947488
fix/improvement:
...
- add proto if atm_input
- add native mode atm hooks to if_atmsubr.c (atm_input)
1996-06-27 04:34:17 +00:00
jonathan
d41e338edc
* Put in fix to in bytestuffing/RLL code from Stuart Cheshire, that
...
somehow got lost between NetBSD and Linux. Output side mbuf-walking
code now correctly bytestuffs mbuf chains, as well as single mbufs
and clusters.
* Update radio error-parsing code to Stuart's latest stable code.
We now parse error messages the older code didn't.
* Note where radio-crash watchdogs should be added (the linux code
is there, #ifdef'ed out). This still just doesn't work.
The radio reset doesn't always work even when slattatch is first started,
but I have a radio with old firmware, which may be a contributing factor.
* Correct the checks for the tty output queue being overfull; estimate
the stuffed pkt size as (original * 65/64) + STRIP_HDRLEN + 2,
instead of SLIP's (2*SLMTU). Re-enable the disabled check now the
size estimate isn't excessively large.
* Fix BPF tapping of strip interfaces, STRIP packets are wrapped
in a SLIP bpf header. This implies no BPF support for arp or atalk,
even though Linux boxes are sending arp requests and gratuitous arps.
There may be no good fix short of adding explicit STRIP encapsulation
support to bpf/tcpdump.
* Still need a solid walkthrough, and rewrite to eliminate redundant
receive-side mbuf copying.
1996-06-26 06:04:20 +00:00
chuck
4ac1ba7fe7
[1] add new rxso passing structure to if_atm.h
...
[2] modify atm_output to handle native mode atm output mbufs
1996-06-26 04:22:54 +00:00
pk
1a04146533
A couple of emulation enhancements from der mouse's PR#2411:
...
- ability to be either a BROADCAST or POINTTOPOINT interface.
- a humble beginning of link-layer addressing (differs from PR
by using a `struct sockaddr' instead of single byte).
1996-06-25 22:15:13 +00:00
chuck
d9c6fd68b8
network support for ATM networks (ATM == Async Transfer Mode, not
...
Automatic Teller Machine).
Currently supports PVCs only (no ATM ARP either).
1996-06-22 01:47:35 +00:00
cgd
d73abf41aa
avoid unnecessary checks of m_get/MGET/etc.'s return values. When
...
they're called with M_WAIT, they are defined to never return NULL.
1996-06-14 22:21:12 +00:00
cgd
1f29d4b51f
no need for a local implementation of SIOCGIFMTU; delete it.
1996-06-13 21:50:32 +00:00
cgd
ba3b2a87a2
implement SIOCGIFMTU in a generic manner, by pulling the MTU out of
...
each netif's if_data structure. There's no point in making each
driver implement this ioctl.
1996-06-13 21:49:43 +00:00
cgd
2e3d795708
add an ifru_mtu member to the union in 'struct ifreq', and add a
...
#define so that ifr_mtu accesses that. MTU shouldn't be overloaded
with ifr_metric, if only for clarity. Adding an MTU field to the
union hurts nothing (in fact, does not actually _change_ generated
code), and does improve clarity.
1996-06-13 21:48:34 +00:00
thorpej
5804211474
Initialize sc_unit in the right place, a'la if_sl.c. Thanks to
...
Jonathan Stone <jonathan@DSG.Stanford.EDU> for pointing this out.
1996-06-05 23:20:49 +00:00
thorpej
2fadbc363c
Move a mis-placed line on slattach() so that SLIOCGUNIT works properly.
...
From Jonathan O'Brien <obrien@phoenix.sfsu.edu>.
1996-06-02 16:22:32 +00:00
pk
2d9344eb4b
Prototype new raw_*() functions.
1996-05-28 23:24:50 +00:00
pk
ad4c0ccfdf
Remove unused variable.
1996-05-28 23:24:23 +00:00
mycroft
c630947e89
We must indirect through the higher-level protocol for
...
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:30:57 +00:00
mycroft
e149ad8228
Fix race condition in PRU_DISCONNECT.
...
Unimplement PRU_ABORT, as it's not needed and wasn't correct.
Some stylistic cleanup.
Make sure the control mbufs are freed in all cases.
We must indirect through the higher-level protocol for
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:26:26 +00:00
mycroft
49d52c9b1c
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
...
PRU_CONTROL. The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.
1996-05-22 13:54:55 +00:00
mycroft
12e6d35d62
Removing a completely unneeded reference to curproc.
1996-05-22 13:42:57 +00:00
mycroft
2a94215734
Remove duplicate definition of bpf_setif().
1996-05-22 13:41:54 +00:00
jonathan
ed314bc45a
Catch up to removal of if_unit and addition of if_xname and sc_unit,
...
blindly following the changes to if_sl.c.
1996-05-19 22:09:36 +00:00
jonathan
32d97e42f6
Packet-mode driver for Metricom Ricochet radios (Starmode Radio IP).
1996-05-19 16:34:36 +00:00
christos
748900c4fc
Fix new warnings.
1996-05-07 23:20:21 +00:00
thorpej
527565ac15
Kill a couple of unnecessary calls to strlen().
1996-05-07 05:26:02 +00:00
thorpej
4edabe2501
Changed struct ifnet to have a pointer to the softc of the underlying
...
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 02:40:22 +00:00
cgd
4d6b6d9082
On new architectures and on the alpha, define SIZEOF_BPF_HDR to be
...
sizeof(struct bpf_hdr). On machines that we currently support that
can use the old definition (which just covers the size of the data in
struct bpf_hdr), use it even though it's a hack. (This was changed
for the 'new architectures' case so as to be fail-safe; BPF may
waste a few bytes of space per captured packet on new architectures,
but now at least it's more likely to work.)
1996-05-02 00:57:28 +00:00
christos
8d33c5c8b4
- Fix fencepost error in ifconf() where if space = n * sizeof(struct ifreq),
...
only n - 1 interfaces would be obtained. This bug is present in the Lite2
sources too.
- Support COMPAT_SVR4 in ifconf()
1996-04-22 01:20:34 +00:00
is
a5ba4721eb
Don't even check the not-yet-initialized mbuf pointers for being !=
...
NULL in the error exit code of arc_output(), else we see random data
and try to m_freem() it, panic'ing the machine.
1996-04-15 14:01:25 +00:00
christos
7af5cc8190
Eliminate need for and remove net_conf.h
1996-03-30 21:57:30 +00:00
cgd
19b97477b9
make this version of ROUNDUP() consistent with the others in this directory.
...
(only makes a diff on the alpha.)
1996-03-29 00:32:10 +00:00
paulus
fa78064f7c
Make inclusion of the PPP BSD-Compress and Deflate compressors
...
dependent on the PPP_BSDCOMP and PPP_DEFLATE kernel configuration
options, respectively.
1996-03-19 01:00:49 +00:00
christos
d06f8ad7c8
#if 0 unused string
1996-03-16 23:55:40 +00:00
christos
0706109fa5
- fix misparenthesized ((a&(B|C) == 0))
...
- fix printf format arguments
1996-03-16 23:55:36 +00:00
paulus
6654fd558b
Added packet filtering, support for "PPP Deflate" packet compression,
...
trivial multicast support, and support for xon/xoff output flow
control to the PPP subsystem. Fixed several bugs, including making
the accumulation and resetting of statistics more consistent. State
for the VJ compressor is now dynamically allocated.
1996-03-15 02:28:00 +00:00
mrg
d55f4dd0c3
oops; back out previous change and add comment describing what the weird goto does.
1996-03-12 13:07:52 +00:00
mrg
c23a9d83e5
eliminate stupid use of "goto next;" where next was: "next: continue;"
1996-03-12 13:01:20 +00:00
mrg
5bc2fce9e1
test for null ifa_dstaddr before using it. (pr#2183 from chuck cranor)
1996-03-12 12:55:52 +00:00
thorpej
7b294ae934
Handle more than 10 interfaces of a given type (well, up to `if99', anyhow).
...
From Neil McRae, PR #1992 .
1996-03-05 01:56:37 +00:00
thorpej
5b663732fa
Remove extra RCS id.
1996-03-03 17:18:14 +00:00
mycroft
9fa7b98204
Emulate OSIOCGIFADDR, et al, if COMPAT_LINUX is defined.
1996-02-27 08:17:08 +00:00
mycroft
a252a2e3b8
Handle OSIOCGIFCONF if COMPAT_LINUX is defined.
1996-02-27 07:28:38 +00:00
mrg
32cdb91fa3
two more local addr changes, all done differently now (idea from charles)
1996-02-26 23:16:42 +00:00
christos
17de1d7eae
Close PR/2105: if.c does not compile without COMPAT_43 due to missing casts.
1996-02-21 14:28:33 +00:00
pk
08fa33d37f
struct ifaliasreq: adapt nomenclature to protocol specific counterparts, ie.
...
swap `ifra_broadaddr' and `ifra_dstaddr'.
1996-02-17 12:32:50 +00:00
christos
206e75c6f1
Net prototypes
1996-02-13 21:59:53 +00:00
pk
c633b5aae2
wrt. previous change: can't compute `ilen' that early; just do computation
...
separately when logging.
Notes: consider using mbuf pkthdr length field in PPP code.
condider doing packet log after de-compression.
1996-02-07 12:43:41 +00:00
pk
b77eaf2c1c
Init variable before use (PRs 1646 & 2042).
1996-02-07 10:25:58 +00:00
scottr
5517c6a36f
Grammar police; noted by Peter Seebach <seebs@solon.com>. Closes PR #1982 .
1996-02-05 17:39:25 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
mycroft
1107479eaa
Rename tunioctl() and tuncioctl() so that cdevsw points to the right one.
...
From der Mouse, PR 2005.
1996-02-01 07:28:18 +00:00
mycroft
813ecfb64a
Remove old workaround for a bug.
1995-12-27 06:30:38 +00:00
mycroft
dda46feea9
Avoid extra byte-swapping in average cases.
1995-12-24 03:33:43 +00:00
mycroft
0e11b6eb6c
Remove old comment regarding trailers.
...
Fix a diagnostic message.
Make some variables use fixed-size types.
Initialize if_output in fddi_ifattach().
1995-12-24 03:32:03 +00:00
mycroft
d16cabae61
Remove old comment regarding trailers.
1995-12-24 03:12:29 +00:00
mycroft
206addf62d
Various cleanup, mostly by me, submitted by Ignatios Souvatzis.
1995-12-24 03:03:55 +00:00
pk
7e6c169434
Return actual packet length in FIONREAD (noted by Bob Smart).
1995-12-13 23:47:40 +00:00
cgd
c20292b01b
fix casts; should cast pointers to longs, not ints.
1995-11-20 20:43:33 +00:00
mycroft
c594af848d
Add some missing statistics. From Thorsten Lockert.
1995-10-05 05:55:09 +00:00
phil
475a548732
Move a #include to outside the #ifdef INET so it will compile without
...
INET defined.
1995-09-29 03:37:43 +00:00
thorpej
e1f1a3a9a7
Enhancements to the bpf from Stu Grossman <grossman@cygnus.com>:
...
* grok FIONBIO, FIOASYNC, and TIOC{G,S}PGRP
* add BIOC{G,S}RSIG; get/set the signal to be delivered
to the process or process group upon packet reception.
Defaults to SIGIO.
1995-09-27 18:30:37 +00:00
mycroft
2f38ab0ad1
Garbage collect useless off' and
len' variables.
1995-08-19 16:33:17 +00:00
cgd
9ee311ead5
Update to latest code from CSRG.
1995-08-19 07:48:14 +00:00
cgd
b0dc5d3d7f
local adaptations, and fix a could of compilation errors
1995-08-19 04:35:18 +00:00
cgd
9980150670
Generic FDDI support by Matt Thomas. Support for DEC "PDQ" FDDI chipset
...
and for the PCI attachment of said chipset ("if_fpa"), also from Matt Thomas.
Arguably, pdq* doesn't belong in sys/dev/ic, but it's going to be shared by
various bus attachment devices at some point in the future, and there's no
other place that seems to fit as well.
1995-08-19 00:59:47 +00:00
mycroft
873ed30f83
so_pcb should be a void *.
1995-08-17 02:57:20 +00:00
mycroft
f174a96f7b
Don't pass through SIOCGIFADDR, per Steve McCanne.
1995-08-13 04:15:38 +00:00
mycroft
5482957905
splnet --> splsoftnet
1995-08-12 23:59:09 +00:00
mycroft
780f5dbe47
Make panic message consistent.
1995-07-23 16:33:08 +00:00
mycroft
90d6423bcb
For outgoing packets, always allocate a header mbuf and fill it in.
1995-07-23 16:29:47 +00:00
cgd
6fa924cb38
fix struct member use, as explained in pr 1164. style police
...
beat the fix into submission.
1995-07-12 08:27:26 +00:00
paulus
fdb27420ea
Change $Id to $NetBSD
1995-07-04 23:26:10 +00:00
paulus
8f120b82c6
Add definition for NETISR_PPP.
1995-07-04 23:24:07 +00:00
briggs
61405ee181
Use the right prototype for pppioctl().
1995-07-04 15:30:39 +00:00
paulus
7f06ab8b0b
Latest version of PPP stuff, with packet compression and other
...
improvements. The PPP kernel code is now split into if_ppp.c,
containing generic PPP support, and ppp_tty.c, which specifically
supports PPP on async tty devices (as a line discipline). This is
so that other devices can be supported without making them look
like ttys.
1995-07-04 06:28:17 +00:00
cgd
1e4957e020
oops; export that head definition to non-kernel code.
1995-06-19 21:57:28 +00:00
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