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