| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
All new code is "#ifdef PC98"ed so this should make no difference to
PC/AT (and its clones) users.
Ok'd by: core
Submitted by: FreeBSD(98) development team
|
|
|
|
|
|
|
| |
systems.
Submitted by: Ted Lemon, Matt Thomas, and others. Retrofitted for
-current by me.
|
| |
|
|
|
|
|
|
|
| |
speaking), go for the extra accuracy and call microtime() to get
the current time.
Pointed Out By: bde
|
|
|
|
| |
Reviewed by: bde
|
| |
|
|
|
|
|
| |
SNMP requirements. Update description of ifnet.if_lastchange in if.h
to indicate this.
|
|
|
|
|
| |
Reviewed by: phk
Submitted by: John Capo <jc@irbs.com>
|
|
|
|
|
|
|
| |
gcc only inlines memcpy()'s whose count is constant and didn't inline
these. I want memcpy() in the kernel go away so that it's obvious that
it doesn't need to be optimized. Now it is only used for one struct
copy in si.c.
|
|
|
|
|
|
|
|
| |
name string. This function should be rewritten to deal with more than
10 units of a given type.
Pointed out by: jmf@free-gate.com (Jean-Marc Frailong)
(I fixed it slightly differently)
|
| |
|
|
|
|
|
|
| |
SNMP slightly more informative
Reviewed by: Garrett Wollman
|
|
|
|
| |
Submitted by: Jeffrey Hsu <hsu@freefall.freebsd.org>
|
| |
|
|
|
|
|
|
|
| |
Kernel Appletalk protocol support
both CAP and netatalk can make use of this..
still needs some owrk but it seemd the right tiime to commit it
so other can experiment.
|
| |
|
| |
|
|
|
|
| |
Reviewed by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the destination represents. For IP:
- Iff it is a host route, RTF_LOCAL and RTF_BROADCAST indicate local
(belongs to this host) and broadcast addresses, respectively.
- For all routes, RTF_MULTICAST is set if the destination is multicast.
The RTF_BROADCAST flag is used by ip_output() to eliminate a call to
in_broadcast() in a common case; this gives about 1% in our packet-generation
experiments. All three flags might be used (although they aren't now)
to determine whether a packet can be forwarded; a given host route can
represent a forwardable address if:
(rt->rt_flags & (RTF_HOST | RTF_LOCAL | RTF_BROADCAST | RTF_MULTICAST))
== RTF_HOST
Obviously, one still has to do all the work if a host route is not present,
but this code allows one to cache the results of such a lookup if rtalloc1()
is called without masking RTF_PRCLONING.
|
|
|
|
| |
don't need to assign the "ip" pointer twice.
|
| |
|
|
|
|
|
|
| |
common labels for LINT. There are still some common declarations for the
!KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in
tcp_debug.h.
|
|
|
|
|
|
|
|
|
|
| |
header for use in decompressing subsequant packets. If cslip gets garbage
(such as what happens when there is a port speed mismatch or modem line
noise), it will occasionally mistake the packet as a valid uncompressed
packet. When it tries to save off the header, it doesn't bother to check
for the validity of the header length and will happily clobber not only
the cslip data structure, but parts of other kernel memory that happens
to follow it...causing, ahem, undesired behavior.
|
|
|
|
| |
copied from bad examples.
|
|
|
|
| |
being declared in the wrong place.
|
|
|
|
|
|
|
|
| |
when rt == rt->rt_gwroute . rt == rt->gwroute shouldn't happen
in the first place, but that's another problem.
(try "route add -host <hostonmynet> <hostonmynet>; ping <hostonmynet>;
route delete <hostonmynet>")
|
|
|
|
| |
Reviewed by: julian@freebsd.org
|
| |
|
|
|
|
| |
changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Story so fr:
1) PPP on-demand with static IP works.
2) PPP on-demand with dynamic IP says "Host is down" on any IP request
The problem is that tun driver check its READY state by *first* ifconfig address.
i.e.:
set ifaddr <addr> <addr2>
works (static IP) and
set ifaddr 0 <addr2>
not works (dynamic IP) because first address is equal 0.
Since tun is always POINTOPOINT interface, dst address is more meaningfull.
I change checking to second (dst) address in READY test.
PPP on-demand finally works.
|
|
|
|
|
|
| |
and the #include hooks so that 'make depend' is more useful. This
covers most of the options I regularly use (but not all) and some other
easy ones.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- fill in and use ifp->if_softc
- use if_bpf rather than private cookie variables
- change bpf interface to take advantage of this
- call ether_ifattach() directly from Ethernet drivers
- delete kludge in if_attach() that did this indirectly
|
|
|
|
|
|
| |
and rmx_recvpipe. This has no demonstrable effect on performance.
(ttcp reports about 44 Mbit/s for all the buffer sizes I tried between
16384 and 65536.)
|
|
|
|
| |
a bunch of system include files.
|
|
|
|
|
|
|
|
|
|
|
|
| |
of limited utility. In their place, add bunch of pointers
which will eventually be needed by the polled-interrupt scheme we're working
here. (It will probably be a while before the code is written and
committed here.) At the same time, a `void *if_softc' field
was added to the beginning of the structure to make certain driver
writers happier.
The practical upshot of all this is that you need to
recompile utilities such as netstat which manipulate struct ifnet.
|
|
|
|
|
| |
Sorry for the delay.
(%D is for hexdumping.)
|
| |
|
|
|
|
| |
Pointed-out-by: Bill Fenner <fenner@parc.xerox.com>
|
|
|
|
|
|
|
|
| |
others: start to populate the link-layer branch of the net mib, by
moving ARP to its proper place. (ARP is not a protocol family, it's an
interface layer between a medium-access layer and a protocol family.)
sysctl(8) needs to be taught about the structure of this branch, unless
Poul-Henning implements dynamic MIB exploration soon.
|
|
|
|
|
|
|
| |
*' instead of caddr_t and it isn't optional (it never was). Most of the
netipx (and netns) pr_ctlinput functions abuse the second arg instead of
using the third arg but fixing this is beyond the scope of this round
of changes.
|
| |
|
|
|
|
|
|
| |
amount of data in the first mbuf.
Obtained from: Bob Smart <smart@mel.dit.csiro.au> (for NetBSD & SunOS)
|
|
|
|
|
| |
Removed an `#ifdef __FreeBSD__'. Hundreds, if not thousands of other
FreeBSD-specific things aren't ifdefed.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
most devsw referenced functions are now static, as they are
in the same file as their devsw structure. I've also added DEVFS
support for nearly every device in the system, however
many of the devices have 'incorrect' names under DEVFS
because I couldn't quickly work out the correct naming conventions.
(but devfs won't be coming on line for a month or so anyhow so that doesn't
matter)
If you "OWN" a device which would normally have an entry in /dev
then search for the devfs_add_devsw() entries and munge to make them right..
check out similar devices to see what I might have done in them in you
can't see what's going on..
for a laugh compare conf.c conf.h defore and after... :)
I have not doen DEVFS entries for any DISKSLICE devices yet as that will be
a much more complicated job.. (pass 5 :)
pass 4 will be to make the devsw tables of type (cdevsw * )
rather than (cdevsw)
seems to work here..
complaints to the usual places.. :)
|
|
|
|
|
|
|
| |
<sys/vm.h>. Many device drivers need only the definition of vtophys()
from vm.
Added nearby #includes of <sys/conf.h> where appropriate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removed ifnet.if_init and ifnet.if_reset as they are generally unused.
Change the parameter passed to if_watchdog to be a ifnet * rather than
a unit number. All of this is an attempt to move toward not needing an
array of softc pointers (which is usually static in size) to point to
the driver softc.
if_ed.c:
Changed some of the argument passing to some functions to make a little
more sense.
if_ep.c, if_vx.c:
Killed completely bogus use of if_timer. It was being set in such a way
that the interface was being reset once per second (blech!).
|