The NetBSD Project

CVS log for src/sys/net/if_loop.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.118.10.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:27:57 2026 UTC (11 days, 6 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118: +7 -5 lines
Sync with HEAD

Revision 1.119: download - view: text, markup, annotated - select for diffs
Sun Sep 21 15:11:52 2025 UTC (13 months, 3 weeks ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +7 -5 lines
Centralize all the "can't handle af%d\n", messages in one place and provide
more context. Now I get ad-nauseam:
    ether_output: wm1: can't handle af18 (link: link#2)

Revision 1.118.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 16 05:13:13 2023 UTC (3 years ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.118.8.1: preferred, colored; branchpoint 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118.8.1: +3 -3 lines
if_transmit_lock() and if_enqueue() are equivalent.  if_enqueue() is
a better name, so collapse everything down to that and garbage-collect
if_transmit_lock().

Revision 1.118.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 16 04:30:22 2023 UTC (3 years ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +3 -3 lines
IFQ_CLASSIFY() -> ifq_classify_packet().

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sun Sep 4 23:34:51 2022 UTC (4 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: thorpej-ifq, perseant-exfatfs
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +5 -3 lines
Fix "MPLS handled this" detection logic in the rump environment.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat Sep 3 02:47:59 2022 UTC (4 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3 lines
Garbage-collect the remaining vestiges of netisr.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat Sep 3 02:24:59 2022 UTC (4 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +12 -28 lines
Convert MPLS from a legacy netisr to pktqueue.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Sep 3 01:48:22 2022 UTC (4 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +9 -23 lines
Convert NETATALK from a legacy netisr to pktqueue.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Jul 31 13:14:54 2022 UTC (4 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +5 -2 lines
Count dropped packets caused by ENOBUFS as interface error.

Revision 1.112.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:35 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +3 -8 lines
Sync w/ HEAD.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:19 2021 UTC (5 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -8 lines
if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Oct 14 16:10:32 2020 UTC (6 years, 1 month ago) by roy
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3 lines
loop: set LINK_STATE_UP a touch earlier

Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Oct 14 15:55:49 2020 UTC (6 years, 1 month ago) by roy
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +6 -5 lines
loop: this interface's link state cannot be anything other than UP

Let's not pretend it's UNKNOWN anymore.

Revision 1.103.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:15 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.103.2.2: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.2.2: +12 -2 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.103.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:57 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.103.2.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.2.1: +8 -12 lines
Merge changes from current as of 20200406

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +8 -12 lines
Sync with head.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Jan 29 04:18:34 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +8 -12 lines
Adopt <net/if_stats.h>.

Revision 1.94.6.5: download - view: text, markup, annotated - select for diffs
Thu Nov 14 16:00:51 2019 UTC (7 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.94.6.4: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.6.4: +14 -4 lines
Pull up the following revisions, requested by msaitoh in ticket #1438:

	sys/net/if_loop.c			1.108-1.109 via patch

Fix a bug that an IP broadcast packet back to myself
is dropped as bad checksum when an interface's checksum
offload is set.

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 14 15:34:35 2019 UTC (7 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +14 -4 lines
Pull up following revision(s) (requested by msaitoh in ticket #424):

	sys/net/if_loop.c: revision 1.108
	sys/net/if_loop.c: revision 1.109

 Fix IP broadcast + checksum offload problem.

 When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleared without calculating the checksum.

And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Advised by ryo@.

 This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 seconds.

 Fix comment.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Nov 14 04:14:30 2019 UTC (7 years ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
 Fix comment.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Nov 11 08:12:35 2019 UTC (7 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +14 -4 lines
 Fix IP broadcast + checksum offload problem.

 When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleard without calculating the checksum.
And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Adviced by ryo@.

 This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 minutes.

Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:45 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +6 -6 lines
Sync with HEAD

Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Apr 26 08:38:25 2019 UTC (7 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3 lines
Set the "required modules" to NULL, not to an empty string.

It really doesn't make that much difference to the code, but the output
from modstat(8) is different!  (With an empty string in the MODULE() macro
modstat reports an empty string, but with a NULL in the macro, modstat
prints a '-' just like it does for other "empty" fields.)

Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:50 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.2: +3 -3 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Nov 15 10:06:07 2018 UTC (8 years ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3 lines
Simplify the mtag API:

 - Remove m_tag_init(), m_tag_first(), m_tag_next() and
   m_tag_delete_nonpersistent().

 - Remove the 't' argument from m_tag_delete_chain().

Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:44 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +3 -3 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Aug 10 06:46:09 2018 UTC (8 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3 lines
Rename

	ip6_undefer_csum  -> in6_undefer_cksum
	in6_delayed_cksum -> in6_undefer_cksum_tcpudp

The two previous names were inconsistent and misleading.

Put the two functions into in6_offload.c. Add comments to explain what
we're doing.

Same as IPv4.

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:10 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +6 -5 lines
Sync with HEAD

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Jul 11 05:25:45 2018 UTC (8 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0728
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3 lines
Rename

	ip_undefer_csum  -> in_undefer_cksum
	in_delayed_cksum -> in_undefer_cksum_tcpudp

The two previous names were inconsistent and misleading.

Put the two functions into in_offload.c. Add comments to explain what
we're doing.

The same could be done for IPv6.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Jun 28 06:02:24 2018 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base
Branch point for: phil-wifi
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -3 lines
loop: don't allocate a unnecessary link-state-change thread

Revision 1.102: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3 lines
 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.94.6.4: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:20:33 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.94.6.3: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.6.3: +12 -10 lines
Pull up following revision(s) (requested by ozaki-r in ticket #456):
	sys/arch/arm/sunxi/sunxi_emac.c: 1.9
	sys/dev/ic/dwc_gmac.c: 1.43-1.44
	sys/dev/pci/if_iwm.c: 1.75
	sys/dev/pci/if_wm.c: 1.543
	sys/dev/pci/ixgbe/ixgbe.c: 1.112
	sys/dev/pci/ixgbe/ixv.c: 1.74
	sys/kern/sys_socket.c: 1.75
	sys/net/agr/if_agr.c: 1.43
	sys/net/bpf.c: 1.219
	sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
	sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
	sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
	sys/net/if_etherip.c: 1.40
	sys/net/if_ethersubr.c: 1.243, 1.246
	sys/net/if_faith.c: 1.57
	sys/net/if_gif.c: 1.132
	sys/net/if_l2tp.c: 1.15, 1.17
	sys/net/if_loop.c: 1.98-1.101
	sys/net/if_media.c: 1.35
	sys/net/if_pppoe.c: 1.131-1.132
	sys/net/if_spppsubr.c: 1.176-1.177
	sys/net/if_tun.c: 1.142
	sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
	sys/net/npf/npf_ifaddr.c: 1.3
	sys/net/npf/npf_os.c: 1.8-1.9
	sys/net/rtsock.c: 1.230
	sys/netcan/if_canloop.c: 1.3-1.5
	sys/netinet/if_arp.c: 1.255
	sys/netinet/igmp.c: 1.65
	sys/netinet/in.c: 1.210-1.211
	sys/netinet/in_pcb.c: 1.180
	sys/netinet/ip_carp.c: 1.92, 1.94
	sys/netinet/ip_flow.c: 1.81
	sys/netinet/ip_input.c: 1.362
	sys/netinet/ip_mroute.c: 1.147
	sys/netinet/ip_output.c: 1.283, 1.285, 1.287
	sys/netinet6/frag6.c: 1.61
	sys/netinet6/in6.c: 1.251, 1.255
	sys/netinet6/in6_pcb.c: 1.162
	sys/netinet6/ip6_flow.c: 1.35
	sys/netinet6/ip6_input.c: 1.183
	sys/netinet6/ip6_output.c: 1.196
	sys/netinet6/mld6.c: 1.90
	sys/netinet6/nd6.c: 1.239-1.240
	sys/netinet6/nd6_nbr.c: 1.139
	sys/netinet6/nd6_rtr.c: 1.136
	sys/netipsec/ipsec_output.c: 1.65
	sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
  destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
  pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point
Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.
Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Dec 19 03:32:35 2017 UTC (8 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -2 lines
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point

Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.

Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.94.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:25 2017 UTC (8 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.94.6.2: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.6.2: +8 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #427):
	sys/arch/amiga/dev/if_bah_zbus.c: 1.17
	sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
	sys/arch/usermode/dev/if_veth.c: 1.9
	sys/dev/ic/an.c: 1.66
	sys/dev/ic/athn.c: 1.17
	sys/dev/ic/atw.c: 1.162
	sys/dev/ic/bwi.c: 1.33
	sys/dev/ic/dwc_gmac.c: 1.41-1.42
	sys/dev/ic/malo.c: 1.10
	sys/dev/ic/rt2560.c: 1.31
	sys/dev/ic/rt2661.c: 1.36
	sys/dev/ic/rt2860.c: 1.29
	sys/dev/ic/rtw.c: 1.127
	sys/dev/ic/rtwvar.h: 1.46
	sys/dev/ic/smc90cx6.c: 1.71
	sys/dev/ic/smc90cx6var.h: 1.12
	sys/dev/ic/wi.c: 1.244
	sys/dev/pci/if_ipw.c: 1.66
	sys/dev/pci/if_iwi.c: 1.104
	sys/dev/pci/if_iwm.c: 1.76
	sys/dev/pci/if_iwn.c: 1.86
	sys/dev/pci/if_rtwn.c: 1.13
	sys/dev/pci/if_wm.c: 1.541
	sys/dev/pci/if_wpi.c: 1.79
	sys/dev/pci/ixgbe/ixgbe.c: 1.106
	sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
	sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
	sys/dev/scsipi/if_se.c: 1.95
	sys/dev/usb/if_upl.c: 1.60
	sys/net/if.c: 1.396
	sys/net/if.h: 1.241
	sys/net/if_arc.h: 1.23
	sys/net/if_arcsubr.c: 1.78
	sys/net/if_bridge.c: 1.136-1.137
	sys/net/if_etherip.c: 1.39
	sys/net/if_faith.c: 1.56
	sys/net/if_gif.c: 1.131
	sys/net/if_loop.c: 1.96
	sys/net/if_mpls.c: 1.30
	sys/net/if_pppoe.c: 1.129
	sys/net/if_srt.c: 1.27
	sys/net/if_stf.c: 1.102
	sys/net/if_tap.c: 1.100
	sys/net/if_vlan.c: 1.105
	sys/netinet/ip_carp.c: 1.91
	sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
	sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
 if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
 Return if bah_attach_subr() failed.
 If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
 If error occured in bcmeth_ccb_attach(), free resources and return.
 If error occured in pq3etsec_attach(), free resources and return.
 If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
 If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
   failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
 If if_initialize() failed in the attach function, free resources and return.
 If if_attach() failed in the attach function, free resources and return.
 - If if_initialize() failed in the attach function, free resources and return.
 - KNF
 - If if_attach() failed in the attach function, free resources and return.
 - KNF
 Fix compile error.
 Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Dec 6 07:40:16 2017 UTC (8 years, 11 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +7 -3 lines
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes

And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)

Revision 1.75.12.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.75.12.2: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.12.2: +71 -46 lines
update from HEAD

Revision 1.94.6.2: download - view: text, markup, annotated - select for diffs
Thu Nov 23 02:13:31 2017 UTC (8 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.94.6.1: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.6.1: +6 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #382):
	sys/net/if_bridge.c: revision 1.139
	sys/net/if_loop.c: revision 1.97
Don't take KERNEL_LOCK in looutput if NET_MPSAFE
We can perhaps get rid of KERNEL_LOCK from looutput, but for now
keep it for safe.
--
Mark callouts of bridge CALLOUT_MPSAFE

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Nov 17 07:37:12 2017 UTC (9 years ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -8 lines
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch

It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.

No functional change

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Nov 16 03:07:18 2017 UTC (9 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
Unify IFEF_*_MPSAFE into IFEF_MPSAFE

There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.

Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).

Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.

Proposed on tech-kern@ and tech-net@

Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Nov 15 04:08:02 2017 UTC (9 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +6 -2 lines
Don't take KERNEL_LOCK in looutput if NET_MPSAFE

We can perhaps get rid of KERNEL_LOCK from looutput, but for now
keep it for safe.

Revision 1.94.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 24 08:50:44 2017 UTC (9 years ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +8 -7 lines
Pull up following revision(s) (requested by knakahara in ticket #304):
	sys/net/if_loop.c: revision 1.95
loop_clone_create() must be called after ncpu is counted up for all CPUs.
loop_clone_create() uses ncpu in the following call-path.
    - loop_clone_create()
      - if_attach()
        - if_percpuq_create()
          - softint_establish() // use ncpu
          - percpu_foreach() // use ncpu
However, loopinit() of built-in module is called from
module_init_class(MODULE_CLASS_DRIVER) which is called before ncpu is counted
up in some architectures. So, It is too fast.
On the other hand, it is too late for rump netinet component to call
loop_clone_create() in config_finalize().
As the result, loop_clone_create() shuld be called in loopattach() for built-in
module, and in loopinit() for dynamic module.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:32:00 2017 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +8 -3 lines
 If if_attach() failed in the attach function, free resources and return.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Sep 21 11:42:17 2017 UTC (9 years, 1 month ago) by knakahara
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +8 -7 lines
loop_clone_create() must be called after ncpu is counted up for all CPUs.

loop_clone_create() uses ncpu in the following call-path.
    - loop_clone_create()
      - if_attach()
        - if_percpuq_create()
          - softint_establish() // use ncpu
          - percpu_foreach() // use ncpu

However, loopinit() of built-in module is called from
module_init_class(MODULE_CLASS_DRIVER) which is called before ncpu is counted
up in some architectures. So, It is too fast.
On the other hand, it is too late for rump netinet component to call
loop_clone_create() in config_finalize().

As the result, loop_clone_create() shuld be called in loopattach() for built-in
module, and in loopinit() for dynamic module.

XXX need pullup -8 branch

Revision 1.80.4.9: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.8: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.4.8: +4 -4 lines
Sync with HEAD

Revision 1.89.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:29 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.1: +4 -4 lines
Sync with HEAD

Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93: +4 -4 lines
Sync with HEAD

Revision 1.94: download - view: text, markup, annotated - select for diffs
Tue Mar 28 08:47:19 2017 UTC (9 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -4 lines
Avoid touching a mbuf after enqueuing it

Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:50 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +7 -5 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.80.4.8: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:27 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.7: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.7: +7 -5 lines
Sync with HEAD

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Nov 22 02:06:00 2016 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +7 -5 lines
Make lortrequest static and rename it to loop_rtrequest

No functional change.

Revision 1.80.4.7: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:08 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.6: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.6: +31 -2 lines
Sync with HEAD

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Aug 11 13:57:02 2016 UTC (10 years, 3 months ago) by kre
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +5 -2 lines

Avoid init'ing lo0 twice ... which rump kernels do without this hack.
If rump gets fixed, this could be removed (though it is harmless in
any case.)

This should fix several more of the currently failing ATF tests.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Aug 10 10:09:42 2016 UTC (10 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines

On the first day (that being the eighth day of the eighth month,) the
building was completed only to discover that within there lay havoc.

On the second day all just groaned and moaned, and it must be someone
else's problen.

On the third day, St. Martin stepped in and traced the culprit, which
provided inspiration, and a correction was made.

Forevermore all were agog at just how such a trivial thing could do
so much damage...


OK...   to be a little less vague.   The loopback interface is a truly
"special" thing, and rump knew that - and treated it very specially.
Unfortunately, when the loopback interface is changed, and rump does
not keep up, bad things happen.

This (overall) might, or might not, be the correct fix - but for now
it appears to work.   If someone, sometime, finds a better way to
deal with the issues of the loopback interfaces true majesty, feel
free to revert this and do it another way.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:38:34 2016 UTC (10 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +28 -2 lines
modularize some more drivers and merge the module glue

Revision 1.80.4.6: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:21 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.5: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.5: +24 -18 lines
Sync with HEAD

Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed Jun 22 10:44:32 2016 UTC (10 years, 4 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3 lines
fix: locking about IFQ_ENQUEUE and ALTQ

- If NET_MPSAFE is not defined, IFQ_LOCK is nop. Currently, that means
  IFQ_ENQUEUE() of some paths such as bridge_enqueue() is called parallel
  wrongly.
- If ALTQ is enabled, Tx processing should call if_transmit() (= IFQ_ENQUEUE
  + ifp->if_start()) instead of ifp->if_transmit() to call ALTQ_ENQUEUE()
  and ALTQ_DEQUEUE().
  Furthermore, ALTQ processing is always required KERNEL_LOCK currently.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Jun 20 06:52:44 2016 UTC (10 years, 4 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +22 -16 lines
make looutput() MP-safe, so that lo(4) can enable IFEF_OUTPUT_MPSAFE.

making MP-scalable is future work.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.80.4.5: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:38 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.4: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.4: +4 -7 lines
Sync with HEAD

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Apr 28 01:37:17 2016 UTC (10 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -6 lines
introduce new ifnet MP-scalable sending interface "if_transmit".

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Apr 28 00:16:56 2016 UTC (10 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3 lines
Constify rtentry of if_output

We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.

Revision 1.80.4.4: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (10 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.3: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.3: +4 -5 lines
Sync with HEAD

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Apr 20 09:01:04 2016 UTC (10 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -5 lines
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller

Revision 1.80.4.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.2: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.2: +4 -2 lines
Sync with HEAD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:26 2015 UTC (11 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -2 lines
sprinkle _KERNEL_OPT

Revision 1.80.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.4.1: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.4.1: +2 -20 lines
Sync with HEAD

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon May 25 08:29:01 2015 UTC (11 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -20 lines
Remove leftover IPX-related stuffs

No objection on tech-kern and tech-net.

Revision 1.80.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -3 lines
Sync with HEAD

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Apr 3 07:55:18 2015 UTC (11 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -3 lines
Don't grab KERNEL_LOCK during if_output when NET_MPSAFE

The change makes L3 MP-safe work easy. At this point
we deal with only IP forwarding.

No functional change when NET_MPSAFE isn't enabled.

Revision 1.75.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:34 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.75.12.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.12.1: +46 -17 lines
Rebase to HEAD as of a few days ago.

Revision 1.76.10.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:15 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +48 -19 lines
Rebase.

Revision 1.75.14.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:35:39 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
	sys/dist/ipf/netinet/ip_fil_netbsd.c	1.9 via patch
	sys/net/if_ethersubr.c			1.197 via patch
	sys/net/if_loop.c			1.77 via patch
	sys/net/if_vlan.c			1.70 via patch
	sys/netinet/if_arp.c			1.158
	sys/netinet/ip_carp.c			1.54 via patch
	sys/netinet6/ip6_flow.c			1.23 via patch
	sys/netinet6/nd6.c			1.150 via patch
	sys/rump/librump/rumpkern/klock.c	1.4

Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@

Revision 1.75.18.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:34:27 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
	sys/dist/ipf/netinet/ip_fil_netbsd.c	1.9 via patch
	sys/net/if_ethersubr.c			1.197 via patch
	sys/net/if_loop.c			1.77 via patch
	sys/net/if_vlan.c			1.70 via patch
	sys/netinet/if_arp.c			1.158
	sys/netinet/ip_carp.c			1.54 via patch
	sys/netinet6/ip6_flow.c			1.23 via patch
	sys/netinet6/nd6.c			1.150 via patch
	sys/rump/librump/rumpkern/klock.c	1.4

Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Jun 7 11:00:29 2014 UTC (12 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -4 lines
lostart: silence gcc warning (XXX: gcc is not right though).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Jun 5 23:48:16 2014 UTC (12 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +45 -18 lines
- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.

Revision 1.75.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:34:00 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
	sys/dist/ipf/netinet/ip_fil_netbsd.c	1.9 via patch
	sys/net/if_ethersubr.c			1.197 via patch
	sys/net/if_loop.c			1.77 via patch
	sys/net/if_vlan.c			1.70 via patch
	sys/netinet/if_arp.c			1.158
	sys/netinet/ip_carp.c			1.54 via patch
	sys/netinet6/ip6_flow.c			1.23 via patch
	sys/netinet6/nd6.c			1.150 via patch
	sys/rump/librump/rumpkern/klock.c	1.4

Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@

Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +3 -22 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue May 20 19:53:50 2014 UTC (12 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3 lines
if_free() instead of direct call to free() to avoid diagnostic panic

Bug exposed by justin's Lua ljsyscall tests:
http://build.myriabit.eu:8012/waterfall

Revision 1.76.6.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +4 -2 lines
sync with head

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue May 13 19:36:16 2014 UTC (12 years, 6 months ago) by bouyer
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -2 lines
Make sure *(if_output)() is called with KERNEL_LOCK held.
Add some KASSERT for this.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details.

Revision 1.75.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:25 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -22 lines
resync from head

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Mar 1 18:25:56 2013 UTC (13 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy, rmind-smpnet
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -22 lines
Retire OSI network stack. OK core@

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:25 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +22 -3 lines
Catchup with rmind-uvmplock merge.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Jun 20 09:43:27 2011 UTC (15 years, 5 months ago) by kefren
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-1, netbsd-6-0, netbsd-6
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +16 -15 lines
Avoid computing INET[6] cksums for MPLS packets

Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Jun 17 09:15:24 2011 UTC (15 years, 5 months ago) by kefren
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +20 -2 lines
teach loopback about MPLS. Prerequisite for MPLS tunnels

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:52 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +18 -3 lines
Sync with HEAD.

Revision 1.71.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:06 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.71.4.1: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.4.1: +18 -3 lines
sync with head

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Apr 25 22:20:59 2011 UTC (15 years, 6 months ago) by yamt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +18 -3 lines
undefer csum in looutput.
looutput is used by various code (ether_output, mcast) to loopback packets.

Revision 1.67.10.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:54 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.67.10.2: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.10.2: +6 -6 lines
sync with head.

Revision 1.71.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -6 lines
sync with head

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:19 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +6 -6 lines
Sync with HEAD.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:22:23 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -6 lines
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.67.10.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:27 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.67.10.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.10.1: +5 -14 lines
sync with head

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:08:01 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -14 lines
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.67.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:15 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +7 -8 lines
sync with head.

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:11 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +4 -4 lines
Sync with HEAD.

Revision 1.67.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:31 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.67.6.1: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.6.1: +3 -3 lines
Sync with HEAD.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:25 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +5 -5 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Oct 24 17:07:33 2008 UTC (18 years ago) by dyoung
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: nick-hppapmap
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
Constify the rt_addrinfo argument to the ifa_rtrequest member
function of struct ifaddr.

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:18 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -5 lines
Sync with HEAD.

Revision 1.67.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:57 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -5 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.67.14.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:50 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -5 lines
Sync with head.

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:13 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -5 lines
sync with head.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Jun 15 16:37:21 2008 UTC (18 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, haad-dm-base1
Branch point for: haad-dm
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -5 lines
- add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.

Revision 1.64.16.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:05 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.64.16.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.16.1: +5 -7 lines
sync with HEAD

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:01 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +5 -7 lines
Sync with HEAD.

Revision 1.55.4.6: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:59 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55.4.5: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.4.5: +5 -7 lines
sync with head.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:22:01 2008 UTC (18 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -7 lines
Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.

Revision 1.64.16.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:32 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -4 lines
sync with HEAD

Revision 1.55.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:01 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55.4.4: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.4.4: +3 -3 lines
sync with head.

Revision 1.64.14.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:01 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.64.14.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.14.1: +3 -3 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:40:06 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +3 -3 lines
Sync with HEAD.

Revision 1.64.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:17 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.1: +3 -3 lines
Sync with head.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:16:44 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:41 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Sync with head.

Revision 1.64.14.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:56 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Sync with HEAD.

Revision 1.55.4.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:09 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55.4.3: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.4.3: +4 -4 lines
sync with head.

Revision 1.64.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:10 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Sync with HEAD.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Sep 1 04:32:50 2007 UTC (19 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and
sockaddr_copy().  Constify.  Compare pointers with NULL, not 0.
Don't "test truth" of pointers, but compare with NULL.

Revision 1.62.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:12 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.62.4.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.4.1: +3 -3 lines
Sync with HEAD.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:16 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.62.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:43 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.55.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:35 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55.4.2: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.4.2: +3 -3 lines
sync with head.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:08 2007 UTC (19 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
KNF: de-__P, bzero -> memset, bcmp -> memcmp.  Remove extraneous
   parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.

Revision 1.55.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:20 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55.4.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.4.1: +26 -54 lines
sync with head.

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:00 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.1: +5 -5 lines
sync with head.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:29 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +26 -37 lines
Sync with head.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:40 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5 lines
__unused removal on arguments; approved by core.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:24 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +27 -38 lines
sync with head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:28 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -4 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Oct 9 10:46:00 2006 UTC (20 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +24 -36 lines
Remove unneeded usage of LIST_*.

ok cube@

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Oct 8 23:19:32 2006 UTC (20 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
Make lo* always have the IFF_RUNNING flag set, to apease some
SNMP apps. Fixes PR kern/11830.

Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:55 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +2 -19 lines
sync with head.

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +2 -19 lines
sync with head

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Sep 7 02:40:33 2006 UTC (20 years, 2 months ago) by dogcow
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -19 lines
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.55.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:27 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -10 lines
sync with head.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Dec 11 23:05:25 2005 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -10 lines
ANSI function decls and application of static.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:51 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2 lines
merge ktrace-lwp.

Revision 1.54.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +4 -4 lines
sync with -current

Revision 1.54.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:31 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +4 -4 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.46.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:58 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46.2.5: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.5: +4 -4 lines
Sync with HEAD.

Hi Perry!

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -4 lines
nuke trailing whitespace

Revision 1.46.2.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:50 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46.2.4: preferred, colored
Changes since revision 1.46.2.4: +87 -53 lines
Sync with HEAD.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Dec 5 15:02:30 2004 UTC (21 years, 11 months ago) by peter
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +9 -19 lines
Use ANSI function decls, change a few 0 to NULL.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Dec 4 18:31:43 2004 UTC (21 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +8 -6 lines
Change ifc_destroy to return an int instead of void, so that it
can pass back errors to ifconfig.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Dec 4 16:10:25 2004 UTC (21 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +78 -36 lines
Convert lo(4) to a clonable device.

This also removes the loif array and changes all code to use the new
lo0ifp pointer which points to the lo0 ifnet structure.

Approved by christos.

Revision 1.46.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:36:38 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46.2.3: preferred, colored
Changes since revision 1.46.2.3: +2 -2 lines
Fix the sync with head I botched.

Revision 1.46.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:16 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46.2.2: preferred, colored
Changes since revision 1.46.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:58:59 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46.2.1: preferred, colored
Changes since revision 1.46.2.1: +4 -20 lines
Sync with HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Aug 19 20:58:24 2004 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -20 lines
Factor out the hand-crafting of mbufs from the interface files. Reviewed by
gimpy. XXX: I could have used bpf_mtap2 on some of the new functions, but I
chose not to, because I just wanted to do what amounts to a code move.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:15 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +21 -9 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Apr 21 18:40:39 2004 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
kill sprintf, use snprintf

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Nov 13 01:48:13 2003 UTC (23 years ago) by jonathan
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2 lines
Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on
mbuf chains which are recycled (e.g., ICMP reflection, loopback
interface).  A consensus was reached that such recycled packets should
behave (more-or-less) the same way if a new chain had been allocated
and the contents copied to that chain.

Some packet tags may in future be marked as "persistent" (e.g., for
mandatory access controls) and should persist across such deletion.
NetBSD as yet hos no persistent tags, so m_tag_delete_nonpersistent()
just deletes all tags. This should not be relied upon.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Aug 15 19:22:08 2003 UTC (23 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +17 -3 lines
Make if_loop MTU settable via SIOCSFMTU/ifconfig. Useful for testing,
and for regression-testing performance at various MTUs.

NB: route MTU may not track MTU changes, which may cause problems for
AF_ISO if loopback MTU is decreased. I've never seen problems with IP,
in various tests going back to around NetBSD 1.3.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:32:53 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:02:11 2003 UTC (23 years, 4 months ago) by martin
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -2 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri May 16 04:54:56 2003 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -3 lines
use strlcpy

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed May 14 06:47:33 2003 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -54 lines
always use PULLDOWN_TEST codepath.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu May 1 07:52:58 2003 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -4 lines
bpf_mtap() does not care about M_PKTHDR at the top.  M_COPY_PKTHDR has some
consequences, so avoid it.  if we need to attach dummy headers, we should
use M_PREPEND instead.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:13 2003 UTC (23 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +11 -2 lines
Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:45:12 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.37.2.2: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.2: +3 -1 lines
Catch up to -current.

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:44 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.1: +4 -2 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Sep 26 16:07:03 2002 UTC (24 years, 1 month ago) by darrenr
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2 lines
Fix a case where M_COPY_PKTHDR() wasn't being used prior to calling bpf_mtap

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:02:08 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -1 lines
Sync kqueue branch with -current.

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:23 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.1: preferred, colored
Changes since revision 1.37.2.1: +4 -1 lines
Catch up to -current.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:49:40 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -1 lines
add RCSIDs

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:08:07 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -5 lines
Catch up to -current.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jun 14 05:44:24 2001 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -2 lines
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).

was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.

Revision 1.26.2.6: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:40 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26.2.5: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.5: +4 -4 lines
Sync with HEAD

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Apr 13 23:30:14 2001 UTC (25 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
Remove the use of splimp() from the NetBSD kernel.  splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.

Revision 1.26.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:48 2001 UTC (25 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26.2.4: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.4: +2 -2 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 20 07:58:17 2001 UTC (25 years, 9 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
explicitly use u_int32_t for DLT_NULL encapsulation.

correct gif address family.  from chopps, sync with kame.

Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:51 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26.2.3: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.3: +3 -2 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jan 17 04:05:42 2001 UTC (25 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).

have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument.
pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest.
3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr *
(almost noone is using it anyways).

benefit: the follwoing command now works.  previously we need two route(8)
invocations, "add" then "change".
# route add -inet6 default ::1 -ifp gif0

remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *.  it was
introduced by 4.3BSD-reno and never corrected.

XXX is eon_rtrequest() change correct regarding to 3rd arg?
eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno,
so i do not have correct answer in the source code.
someone with more clue about netiso-over-ip, please help.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Jan 17 00:30:51 2001 UTC (25 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1 lines
Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach().  Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach().  Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).

Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:51 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26.2.2: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.2: +116 -0 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Dec 18 21:13:14 2000 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -1 lines
Oops, make this build without ALTQ again.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Dec 18 19:50:44 2000 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1 lines
Fill in if_dlt.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Dec 18 19:18:33 2000 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +112 -1 lines
Add ALTQ support.  This is used for testing/debugging ALTQ only.  It
is triggered only on loopback interfaces, and not simplex interfaces
(which also use looutput()).

Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:31 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.2.1: +2 -2 lines
Sync with HEAD (for UBC fixes).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Dec 12 18:00:27 2000 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:03 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +47 -31 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:45:36 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +10 -10 lines
Kill some more register declarations.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Feb 6 12:49:37 2000 UTC (26 years, 9 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
fix include pathname for better rfc2292 compliance.

Revision 1.26.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:10 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +37 -21 lines
Pull up to last week's -current.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Dec 15 06:16:05 1999 UTC (26 years, 11 months ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +13 -9 lines
change mbuf trimming.
confirmed that ping -s 1480 (my ip addr) panics before, and works fine now.

possibly fixes PR: 8990

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Dec 13 15:17:19 1999 UTC (26 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +32 -20 lines
sync IPv6 part with latest KAME tree.   IPsec part is left unmodified
due to massive changes in KAME side.
- IPv6 output goes through nd6_output
- faith can capture IPv4 packets as well - you can run IPv4-to-IPv6 translator
  using heavily modified DNS servers
- per-interface statistics (required for IPv6 MIB)
- interface autoconfig is revisited
- udp input handling has a big change for mapped address support.
- introduce in4_cksum() for non-overwriting checksumming
- introduce m_pulldown()
- neighbor discovery cleanups/improvements
- netinet/in.h strictly conforms to RFC2553 (no extra defs visible to userland)
- IFA_STATS is fixed a bit (not tested)
- and more more more.

TODO:
- cleanup os-independency #ifdef
- avoid rcvif dual use (for IPsec) to help ifdetach

(sorry for jumbo commit, I can't separate this any more...)

Revision 1.25.12.2: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:05 1999 UTC (26 years, 11 months ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.25.12.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.12.1: +151 -16 lines
bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.25.10.1: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:45:19 1999 UTC (27 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +91 -2 lines
Sync w/ -current.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:48 1999 UTC (27 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +91 -2 lines
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.25.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:36:56 1999 UTC (27 years, 4 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705, kame_14_19990628
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +89 -2 lines
KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Fri Dec 11 04:53:05 1998 UTC (27 years, 11 months ago) by kenh
Branches: kenh-if-detach
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +5 -3 lines
The beginnings of interface detach support.  Still some bugs, but mostly
works for me.

This work was originally by Bill Studenmund, and cleaned up by me.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jul 5 06:49:17 1998 UTC (28 years, 4 months ago) by jonathan
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Branch point for: kenh-if-detach, kame, chs-ubc2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1 lines
defopt NS, NSIP.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jul 5 04:37:41 1998 UTC (28 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
defopt ISO TPIP.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jul 5 00:51:26 1998 UTC (28 years, 4 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -1 lines
defopt INET, NETATALK.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon May 4 12:54:22 1998 UTC (28 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +12 -1 lines
Add IPX bits.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:25:05 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Merge with Lite2 + local changes

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:26 1998 UTC (28 years, 8 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +2 -2 lines
Import 4.4BSD-Lite2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:10:07 1998 UTC (28 years, 8 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +91 -32 lines
Import 4.4BSD-Lite for reference

Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 23 07:14:18 1997 UTC (29 years, 3 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +2 -2 lines
Update marc-pcmcia branch from trunk.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Aug 14 01:12:35 1997 UTC (29 years, 3 months ago) by jonathan
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Add MHLEN + MLEN extra space to LOMTU for IP and transport headers.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Apr 2 21:23:28 1997 UTC (29 years, 7 months ago) by christos
Branches: MAIN
CVS tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +12 -1 lines
Add netatalk stubs.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Mar 21 16:58:49 1997 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Don't feed packets to BPF that were not `sent' from the loopback device.
From PR 1693, by Jean-Luc Richier.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Oct 13 02:11:02 1996 UTC (30 years, 1 month ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
backout previous kprintf change

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:59:47 1996 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
- printf -> kprintf, sprintf -> ksprintf

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue May 7 02:40:33 1996 UTC (30 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
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.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 23 16:33:08 1995 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Make panic message consistent.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:48:50 1994 UTC (32 years ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
be more careful with types, also pull in headers where necessary.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:36:14 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri May 13 06:02:44 1994 UTC (32 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -23 lines
Update to 4.4-Lite networking code, with a few local changes.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Feb 2 01:21:35 1994 UTC (32 years, 9 months ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -9 lines
Multicast is no longer optional

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Dec 17 00:12:13 1993 UTC (32 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +24 -24 lines
From magnum branch:
Remove Jolitz's netisr kluge.  Make sure cpl == 0 really means base priority.
Other minor cleanup.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 6 04:17:43 1993 UTC (32 years, 11 months ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +28 -1 lines
multicast support.
From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Nov 23 08:16:55 1993 UTC (33 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
rename loattach() to loopattach() so that the pdevinit[] stuff can find it.

Revision 1.6.4.4: download - view: text, markup, annotated - select for diffs
Sun Nov 14 20:19:54 1993 UTC (33 years ago) by mycroft
Branches: magnum
Diff to: previous 1.6.4.3: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.3: +24 -24 lines
Canonicalize all #includes.

Revision 1.6.4.3: download - view: text, markup, annotated - select for diffs
Sat Oct 16 10:49:26 1993 UTC (33 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.6.4.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.2: +1 -2 lines
Nuke references to machine/mtpr.h.

Revision 1.6.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 24 08:53:57 1993 UTC (33 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.6.4.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.1: +2 -1 lines
Make all files using spl*() #include cpu.h.  Changes from trunk.

Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 14 18:30:42 1993 UTC (33 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
loattach() --> loopattach()

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 27 06:02:27 1993 UTC (33 years, 4 months ago) by andrew
Branches: MAIN
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
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.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu May 20 03:06:02 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
add rcs ids to everything, and clean up headers

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri May 7 09:27:52 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +20 -12 lines
patch for multiple loopback interfaces (via "pseudo-device loop 2", etc.)
from David Burren <davidb@otto.bf.rmit.oz.au>

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Apr 10 15:59:30 1993 UTC (33 years, 7 months ago) by glass
Branches: MAIN
CVS tags: netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -0 lines
fixed missing include to avoid warning

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Mar 25 00:27:56 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +29 -0 lines
added BPF support, as provided by David Greenman (davidg@implode.rain.com)

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>