History log of /freebsd/sys/net/if_loop.c (Results 176 – 200 of 377)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# df5e1987 25-Nov-2000 Jonathan Lemon <jlemon@FreeBSD.org>

Lock down the network interface queues. The queue mutex must be obtained
before adding/removing packets from the queue. Also, the if_obytes and
if_omcasts fields should only be manipulated under p

Lock down the network interface queues. The queue mutex must be obtained
before adding/removing packets from the queue. Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.

IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue. An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.

Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.

show more ...


Revision tags: release/4.2.0, release/4.1.1_cvs
# 71582bf5 04-Sep-2000 Robert Watson <rwatson@FreeBSD.org>

o Add missing "\n" to warning output in netinet/if_loop.c, when an
unsupported address family is used on localhost interface.

looutput: af=0 unexpected

Speculation as to the reasons for my

o Add missing "\n" to warning output in netinet/if_loop.c, when an
unsupported address family is used on localhost interface.

looutput: af=0 unexpected

Speculation as to the reasons for my seeing this error are welcome, of
course. :-)

show more ...


Revision tags: release/4.1.0
# 686cdd19 04-Jul-2000 Jun-ichiro itojun Hagino <itojun@FreeBSD.org>

sync with kame tree as of july00. tons of bug fixes/improvements.

API changes:
- additional IPv6 ioctls
- IPsec PF_KEY API was changed, it is mandatory to upgrade setkey(8).
(also syntax change)


Revision tags: release/3.5.0_cvs
# 60ed92dd 02-Jun-2000 Matt Jacob <mjacob@FreeBSD.org>

fix KASSERT usage


# fe81f64f 26-May-2000 Andrew Gallatin <gallatin@FreeBSD.org>

Rather than checking for hlen causing misalignment, we should do the
m_adj() and then check the resulting mbuf for misalignment, copying
backwards to align the mbuf if required.

This fixes a longsta

Rather than checking for hlen causing misalignment, we should do the
m_adj() and then check the resulting mbuf for misalignment, copying
backwards to align the mbuf if required.

This fixes a longstanding problem where an mbuf which would have been
properly aligned after an m_adj() was being misaligned and causing an
unaligned access trap in ip_input(). This bug only triggered when booting
diskless.

Reviewed by: dfr

show more ...


# 06a429a3 24-May-2000 Archie Cobbs <archie@FreeBSD.org>

Just need to pass the address family to if_simloop(), not the whole sockaddr.


Revision tags: release/4.0.0_cvs
# 242c5536 13-Feb-2000 Peter Wemm <peter@FreeBSD.org>

Clean up some loose ends in the network code, including the X.25 and ISO
#ifdefs. Clean out unused netisr's and leftover netisr linker set gunk.
Tested on x86 and alpha, including world.

Approved b

Clean up some loose ends in the network code, including the X.25 and ISO
#ifdefs. Clean out unused netisr's and leftover netisr linker set gunk.
Tested on x86 and alpha, including world.

Approved by: jkh

show more ...


# cef8bf09 29-Jan-2000 Peter Wemm <peter@FreeBSD.org>

Remove some #if NFOO > 0 that are always true because of config rules.


Revision tags: release/3.4.0_cvs
# cfa1ca9d 07-Dec-1999 Yoshinobu Inoue <shin@FreeBSD.org>

udp IPv6 support, IPv6/IPv4 tunneling support in kernel,
packet divert at kernel for IPv6/IPv4 translater daemon

This includes queue related patch submitted by jburkhol@home.com.

Submitted by: queu

udp IPv6 support, IPv6/IPv4 tunneling support in kernel,
packet divert at kernel for IPv6/IPv4 translater daemon

This includes queue related patch submitted by jburkhol@home.com.

Submitted by: queue related patch from jburkhol@home.com
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project

show more ...


# 82cd038d 22-Nov-1999 Yoshinobu Inoue <shin@FreeBSD.org>

KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCP
for IPv6 yet)

With this patch, you can assigne IPv6 addr automatically, and can reply to
IPv6 ping.

Reviewed by: freebsd-arc

KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCP
for IPv6 yet)

With this patch, you can assigne IPv6 addr automatically, and can reply to
IPv6 ping.

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project

show more ...


# 46783fb8 25-Sep-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Remove NBPF conditionality of bpf calls in most of our network drivers.

This means that we will not have to have a bpf and a non-bpf version
of our driver modules.

This does not open any security h

Remove NBPF conditionality of bpf calls in most of our network drivers.

This means that we will not have to have a bpf and a non-bpf version
of our driver modules.

This does not open any security hole, because the bpf core isn't loadable

The drivers left unchanged are the "cross platform" drivers where the respective
maintainers are urged to DTRT, whatever that may be.

Add a couple of missing FreeBSD tags.

show more ...


Revision tags: release/3.3.0_cvs
# c3aac50f 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 5abb82ea 06-Aug-1999 Brian Somers <brian@FreeBSD.org>

Back out redundant checks
Pointed out by: bde


# aab3beee 06-Aug-1999 Brian Somers <brian@FreeBSD.org>

Define IF_MAXMTU and IF_MINMTU and don't allow MTUs with
out-of-range values.

``comparison is always 0'' warnings are silly !

Ok'd by: wollman, dg
Advised by: bde


# 6b5ca0d8 06-Jul-1999 Dag-Erling Smørgrav <des@FreeBSD.org>

Rename bpfilter to bpf.


Revision tags: release/3.2.0
# eff12882 20-Feb-1999 Dmitrij Tejblum <dt@FreeBSD.org>

Set ifq_maxlen.


Revision tags: release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7
# 3a43ad8f 12-Jul-1998 Doug Rabson <dfr@FreeBSD.org>

Make sure the packet is aligned correctly for the alpha in if_simloop.


# 05b3ccef 15-Jun-1998 Julian Elischer <julian@FreeBSD.org>

Oops
left a "break;" out of the last patch
it complains for every loopback packet..


# 201c2527 14-Jun-1998 Julian Elischer <julian@FreeBSD.org>

Try narrow down the culprit sending undefined packet types through the loopback


# 6b1214b0 12-Jun-1998 Julian Elischer <julian@FreeBSD.org>

Remove 3 occurances of __FUNCTION__


# ed7509ac 12-Jun-1998 Julian Elischer <julian@FreeBSD.org>

Go through the loopback code with a broom..
Remove lots'o'hacks.
looutput is now static.

Other callers who want to use loopback to allow shortcutting
should call the special entrypoint for this, if_

Go through the loopback code with a broom..
Remove lots'o'hacks.
looutput is now static.

Other callers who want to use loopback to allow shortcutting
should call the special entrypoint for this, if_simloop(), which is
specifically designed for this purpose. Using looutput for this purpose
was problematic, particularly with bpf and trying to keep track
of whether one should be using the charateristics of the loopback interface
or the interface (e.g. if_ethersubr.c) that was requesting the loopback.
There was a whole class of errors due to this mis-use each of which had
hacks to cover them up.

Consists largly of hack removal :-)

show more ...


# ecbb00a2 07-Jun-1998 Doug Rabson <dfr@FreeBSD.org>

This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change bring

This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.

The prototype FreeBSD/alpha machdep will follow in a couple of days
time.

show more ...


# ce42f1fb 30-Apr-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Loopback network interface driver (net/if_loop.c) has no SIOCSIFFLAGS
ioctl handler.

PR: 6466
Reviewed by: phk
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>


Revision tags: release/2.2.6
# 7262d3e4 09-Jan-1998 Eivind Eklund <eivind@FreeBSD.org>

NETATALK -> opt_atalk.h


# 1d5e9e22 09-Jan-1998 Eivind Eklund <eivind@FreeBSD.org>

Make INET a proper option.

This will not make any of object files that LINT create change; there
might be differences with INET disabled, but hardly anything compiled
before without INET anyway. No

Make INET a proper option.

This will not make any of object files that LINT create change; there
might be differences with INET disabled, but hardly anything compiled
before without INET anyway. Now the 'obvious' things will give a
proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The
only thing that _should_ work (but can't be made to compile reasonably
easily) is sppp :-(

This commit move struct arpcom from <netinet/if_ether.h> to
<net/if_arp.h>.

show more ...


12345678910>>...16