The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:53 2024 UTC (4 months, 4 weeks ago) by rin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -10 lines
sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@

Revision 1.85.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 16 04:30:22 2023 UTC (12 months, 2 weeks ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.85.8.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.8.1: +3 -3 lines
IFQ_CLASSIFY() -> ifq_classify_packet().

Revision 1.85.8.1: download - view: text, markup, annotated - select for diffs
Wed Nov 15 02:08:34 2023 UTC (12 months, 2 weeks ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
Rename ifq_enqueue() -> if_enqueue(), ifq_enqueue2() -> if_enqueue2().

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat Sep 3 02:47:59 2022 UTC (2 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, 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
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -3 lines
Garbage-collect the remaining vestiges of netisr.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Sep 3 01:35:03 2022 UTC (2 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -15 lines
Convert ARP from a legacy netisr to pktqueue.

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

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:19 2021 UTC (3 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.82: preferred, colored
Changes since revision 1.82: +3 -6 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.82: download - view: text, markup, annotated - select for diffs
Fri Aug 28 06:23:42 2020 UTC (4 years, 3 months ago) by ozaki-r
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.81: preferred, colored
Changes since revision 1.81: +3 -12 lines
net: introduce IFQ_ENQUEUE_ISR to assemble packet queuing routines (NFCI)

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

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

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Jan 29 04:11:35 2020 UTC (4 years, 10 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.80: preferred, colored
Changes since revision 1.80: +6 -6 lines
Adopt <net/if_stats.h>.

Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:15 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +3 -3 lines
Sync with HEAD

Revision 1.80: download - view: text, markup, annotated - select for diffs
Wed May 9 06:35:10 2018 UTC (6 years, 6 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, netbsd-9-base, 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, netbsd-9, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: phil-wifi, ad-namecache
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
Replace
	m_copym(m, 0, M_COPYALL, M_DONTWAIT)
by
	m_copypacket(m, M_DONTWAIT)
when it is clear that we are copying a packet (that has M_PKTHDR) and not
a raw mbuf chain.

Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:22 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Synch with HEAD

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Apr 26 19:56:55 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0502
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
m_copy -> m_copym

Revision 1.77.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:24 2017 UTC (6 years, 11 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +10 -4 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.63.18.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.63.18.2: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.18.2: +34 -46 lines
update from HEAD

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:22:24 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, 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.77: preferred, colored
Changes since revision 1.77: +10 -4 lines
 If if_attach() failed in the attach function, return.

Revision 1.66.4.9: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.8: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.4.8: +10 -4 lines
Sync with HEAD

Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +13 -5 lines
Sync with HEAD

Revision 1.73.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:49 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.73.2.1: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.2.1: +13 -7 lines
Sync with HEAD

Revision 1.66.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 07:41:27 2017 UTC (7 years, 8 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +5 -3 lines
Sync with netbsd-7-1-RELEASE

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Feb 14 03:05:06 2017 UTC (7 years, 9 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, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +10 -4 lines
Do ND in L2_output in the same manner as arpresolve

The benefits of this change are:
- The flow is consistent with IPv4 (and FreeBSD and OpenBSD)
  - old: ip6_output => nd6_output (do ND if needed) => L2_output (lookup a stored cache)
  - new: ip6_output => L2_output (lookup a cache. Do ND if cache not found)
- We can remove some workarounds in nd6_output
- We can move L2 specific operations to their own place
- The performance slightly improves because one cache lookup is reduced

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 19:14:17 2017 UTC (7 years, 9 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #1355):
	sys/net/if_arcsubr.c: revision 1.76 via patch
	sys/net/if_ecosubr.c: revision 1.50 via patch
	sys/net/if_ethersubr.c: revision 1.236 via patch
	sys/net/if_fddisubr.c: revision 1.104 via patch
	sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.66.6.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 19:14:01 2017 UTC (7 years, 9 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #1355):
	sys/net/if_arcsubr.c: revision 1.76 via patch
	sys/net/if_ecosubr.c: revision 1.50 via patch
	sys/net/if_ethersubr.c: revision 1.236 via patch
	sys/net/if_fddisubr.c: revision 1.104 via patch
	sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.66.4.8: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.7: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.4.7: +5 -5 lines
Sync with HEAD

Revision 1.63.14.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 05:48:00 2017 UTC (7 years, 9 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.63.14.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.14.1: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #1429):
	sys/net/if_arcsubr.c: revision 1.76 via patch
	sys/net/if_ecosubr.c: revision 1.50 via patch
	sys/net/if_ethersubr.c: revision 1.236 via patch
	sys/net/if_fddisubr.c: revision 1.104 via patch
	sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.63.14.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 05:47:28 2017 UTC (7 years, 9 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.63.14.1: preferred, colored; next MAIN 1.63.14.2: preferred, colored
Changes since revision 1.63.14.1: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #1429):
	sys/net/if_arcsubr.c: revision 1.76 via patch
	sys/net/if_ecosubr.c: revision 1.50 via patch
	sys/net/if_ethersubr.c: revision 1.236 via patch
	sys/net/if_fddisubr.c: revision 1.104 via patch
	sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.63.20.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 05:46:51 2017 UTC (7 years, 9 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +5 -3 lines
Pull up following revision(s) (requested by maxv in ticket #1429):
	sys/net/if_arcsubr.c: revision 1.76 via patch
	sys/net/if_ecosubr.c: revision 1.50 via patch
	sys/net/if_ethersubr.c: revision 1.236 via patch
	sys/net/if_fddisubr.c: revision 1.104 via patch
	sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Jan 24 18:37:20 2017 UTC (7 years, 10 months ago) by maxv
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -3 lines
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Jan 11 13:08:29 2017 UTC (7 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -4 lines
Get rid of unnecessary header inclusions

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:20 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -6 lines
Sync with HEAD

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

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Oct 3 11:06:06 2016 UTC (8 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -6 lines
Fix race condition on ifqueue used by traditional netisr

If a underlying network device driver supports MSI/MSI-X, RX interrupts
can be delivered to arbitrary CPUs. This means that Layer 2 subroutines
such as ether_input (softint) and subsequent Layer 3 subroutines (softint)
which are called via traditional netisr can be dispatched on an arbitrary
CPU. Layer 2 subroutines now run without any locks (expected) and so a
Layer 2 subroutine and a Layer 3 subroutine can run in parallel.

There is a shared data between a Layer 2 routine and a Layer 3 routine,
that is ifqueue and IF_ENQUEUE (from L2) and IF_DEQUEUE (from L3) on it
are racy now.

To fix the race condition, use ifqueue#ifq_lock to protect ifqueue
instead of splnet that is meaningless now.

The same race condition exists in route_intr. Fix it as well.

Reviewed by knakahara@

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

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Apr 28 14:40:09 2016 UTC (8 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
Constify remaining rtentry of if_output (fix build)

Revision 1.66.4.5: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.4: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.4.4: +7 -8 lines
Sync with HEAD

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

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Apr 7 03:22:15 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -3 lines
- tidy up error messages
- add a length argument to arpresolve()
- add KASSERT for overflow

Revision 1.66.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:32 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.3: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.4.3: +3 -3 lines
Sync with HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Feb 9 14:43:16 2016 UTC (8 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
Fix build

Revision 1.66.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:06 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.2: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.4.2: +4 -4 lines
Sync with HEAD (as of 26th Dec)

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Oct 13 12:33:07 2015 UTC (9 years, 1 month ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
arpresolve() now returns 0 on success otherwise an error code.
Callers of arpresolve() now pass the error code back to their caller,
masking out EWOULDBLOCK.

This allows applications such as ping(8) to display a suitable error
condition.

Revision 1.66.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66.4.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.4.1: +4 -3 lines
Sync with HEAD

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

Revision 1.66.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (9 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -27 lines
Sync with HEAD

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Jun 4 09:19:59 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -27 lines
Pull out route lookups from L2 output routines

Route lookups for routes of RTF_GATEWAY were done in L2 output
routines such as ether_output, but they should be done in L3
i.e., before L2 output routines. This change places the lookups
between L3 output routines (say ip_output) and the L2 output
routines.

The change is based on dyoung's patch submitted in the thread:
https://mail-index.netbsd.org/tech-net/2013/02/01/msg003847.html
You can find out detailed investigations by dyoung about the
issue in there.

Note that the change introduces a workaround for MPLS. ether_output
knew that it needs to fill the ethertype of a frame as MPLS,
based on a tag of an original route (rtentry), but now we don't
pass it to ehter_output. So we have to tell that in another way.
We use mtag to do so for now, which introduces some overhead.
We should fix it somehow in the future.

Discussed on tech-kern and tech-net.

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

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

Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Jun 5 23:48:16 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-base, netbsd-7-1-RC1, 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
Branch point for: nick-nhusb, netbsd-7-nhusb, netbsd-7-0, netbsd-7
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -8 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.64.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +11 -8 lines
sync with head

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu May 15 09:04:03 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +11 -8 lines
 Put schednetisr() into splnet()/splx() pair.
This might avoids delay of processing a packet.

Revision 1.63.18.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:46 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.63.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:42 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +3 -3 lines
sync with head

Revision 1.63.14.1: download - view: text, markup, annotated - select for diffs
Tue Oct 23 16:19:47 2012 UTC (12 years, 1 month ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE
Branch point for: netbsd-6-1
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #616):
	sys/netinet/if_atm.c: revision 1.33
	sys/net/if_arcsubr.c: revision 1.64
	sys/netinet/ip_mroute.c: revision 1.126
Add missing "\n" in log(9)

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Sep 24 03:05:53 2012 UTC (12 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Add missing "\n" in log(9)

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

Revision 1.62.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
sync with head

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:18 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
Sync with HEAD.

Revision 1.59.24.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:21 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +8 -4 lines
sync to netbsd-5

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:22:22 2010 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, 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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-0, netbsd-6
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 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.59.10.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:26 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.59.10.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.10.1: +9 -10 lines
sync with head

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:08:00 2010 UTC (14 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.61: preferred, colored
Changes since revision 1.61: +3 -8 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.59.22.1: download - view: text, markup, annotated - select for diffs
Sat Nov 21 19:56:35 2009 UTC (15 years ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +8 -4 lines
Pull up following revision(s) (requested by christos in ticket #1156):
	sys/net/if_arcsubr.c: revision 1.61
	sys/net/if_ethersubr.c: revision 1.173
	sys/net/if_fddisubr.c: revision 1.78
	sys/net/if_tokensubr.c: revision 1.58 via patch
	sys/netinet/if_arp.c: revision 1.149
ar_tha() can return NULL; treat this as an error.

Revision 1.59.20.1: download - view: text, markup, annotated - select for diffs
Sat Nov 21 19:43:41 2009 UTC (15 years ago) by snj
Branches: netbsd-5
CVS tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +8 -4 lines
Pull up following revision(s) (requested by christos in ticket #1156):
	sys/net/if_arcsubr.c: revision 1.61
	sys/net/if_ethersubr.c: revision 1.173
	sys/net/if_fddisubr.c: revision 1.78
	sys/net/if_tokensubr.c: revision 1.58 via patch
	sys/netinet/if_arp.c: revision 1.149
ar_tha() can return NULL; treat this as an error.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Nov 20 02:14:56 2009 UTC (15 years ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +8 -4 lines
ar_tha() can return NULL; treat this as an error.

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

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

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

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

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (16 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, 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.59: preferred, colored
Changes since revision 1.59: +3 -3 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.55.18.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:04 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.55.18.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.18.2: +5 -5 lines
sync with HEAD

Revision 1.49.2.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:37:00 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.49.2.5: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.5: +5 -5 lines
sync with head.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Feb 20 17:05:52 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-dm-base1, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5-0, netbsd-5, mjf-devfs2, matt-nb5-mips64, haad-dm
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -5 lines
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

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

Revision 1.49.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:00 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.49.2.4: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.4: +3 -15 lines
sync with head

Revision 1.55.18.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:09 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.55.18.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.18.1: +3 -15 lines
sync with HEAD

Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:02 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +3 -15 lines
Sync with HEAD

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:30 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +3 -15 lines
Sync with head.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Dec 25 23:31:26 2007 UTC (16 years, 11 months ago) by he
Branches: MAIN
CVS tags: vmlocking2-base3, mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -15 lines
Convert to using if_set_sadl() instead of arc_storelladdr(), catching
an overlooked setting of ifnet->if_sadl.  This follows up the recent
change to net/if.h.

Revision 1.55.18.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:26 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -6 lines
sync with HEAD

Revision 1.49.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:59 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.49.2.3: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.3: +3 -3 lines
sync with head.

Revision 1.55.16.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:59 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.55.16.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.16.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.56.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:40:05 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +3 -3 lines
Sync with HEAD.

Revision 1.55.4.2: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:15 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.55.4.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.4.1: +3 -3 lines
Sync with head.

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

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

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

Revision 1.49.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:02 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.49.2.2: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.2: +5 -5 lines
sync with head.

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

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Aug 30 02:17:34 2007 UTC (17 years, 3 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.55: preferred, colored
Changes since revision 1.55: +5 -5 lines
Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool
and dom_sa_len members from struct domain.  Pools of fixed-size
objects are too rigid for sockaddr_dls, whose size can vary over
a wide range.

Return sockaddr_dl to its "historical" size.  Now that I'm using
malloc(9) instead of pool(9) to allocate sockaddr_dl, I can create
a sockaddr_dl of any size in the kernel, so expanding sockaddr_dl
is useless.

Avoid using sizeof(struct sockaddr_dl) in the kernel.

Introduce sockaddr_dl_alloc() for allocating & initializing an
arbitrary sockaddr_dl on the heap.

Add an argument, the sockaddr length, to sockaddr_alloc(),
sockaddr_copy(), and sockaddr_dl_setaddr().

Constify: LLADDR() -> CLLADDR().

Where the kernel overwrites LLADDR(), use sockaddr_dl_setaddr(),
instead.  Used properly, sockaddr_dl_setaddr() will not overrun
the end of the sockaddr.

Revision 1.52.12.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:40 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +10 -10 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:33 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.2.1: +10 -10 lines
sync with head.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Feb 19 21:18:23 2007 UTC (17 years, 9 months ago) by dyoung
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, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -3 lines
Remove unused #define SIN().  From he@.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Feb 19 21:17:03 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +9 -8 lines
Fix fallout from if_output constification.  Thanks, Havard Eidnes,
for reporting the problem and testing my patch.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:08 2007 UTC (17 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +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.51.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (18 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -4 lines
sync with head

Revision 1.51.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:53:38 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -4 lines
sync with head.

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

Revision 1.51.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:09:12 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -4 lines
Sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Jun 7 22:33:42 2006 UTC (18 years, 6 months ago) by kardel
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, 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, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -4 lines
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.51.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 4 14:18:51 2006 UTC (18 years, 10 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -4 lines
Adapt for timecounters: mostly use get*time(), use bintime's for timeout
calculations and use "time_second" instead of "time.tv_sec".

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Dec 11 23:05:24 2005 UTC (18 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +15 -28 lines
ANSI function decls and application of static.

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

Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:10:32 2005 UTC (19 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.2.5: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.5: +5 -6 lines
Sync with HEAD. Here we go again...

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Jun 5 22:31:40 2005 UTC (19 years, 6 months ago) by he
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, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Fix -Wcast-qual warning.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue May 17 04:14:58 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -5 lines
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...

Revision 1.45.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +22 -52 lines
sync with -current

Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:31:34 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.2.4: preferred, colored
Changes since revision 1.42.2.4: +6 -36 lines
Sync with HEAD.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Mar 31 15:48:13 2005 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +6 -36 lines
factor out the interface queueing code into two functions. One used by
the non point-to-point interfaces that has one queue, and one used by
the point to point interfaces that has two queues. No functional changes.
XXX: The ALTQ stuff makes the code ugly.
XXX: More cleanup to come

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

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:56 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42.2.3: preferred, colored
Changes since revision 1.42.2.3: +19 -19 lines
Sync with HEAD.

Hi Perry!

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, 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
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +19 -19 lines
nuke trailing whitespace

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

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

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:11 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -10 lines
Sync with HEAD

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Mar 25 10:53:46 2004 UTC (20 years, 8 months ago) by is
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, 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, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -38 lines
UCB no longer requires the advertising clause.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Aug 11 15:13:59 2003 UTC (21 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -5 lines
minor knf

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:32:50 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +34 -3 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.42: download - view: text, markup, annotated - select for diffs
Fri May 2 03:15:23 2003 UTC (21 years, 7 months ago) by itojun
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -4 lines
KNF

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jan 19 23:13:46 2003 UTC (21 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -4 lines
Remove variable that is only assigned too but not referenced.

Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:40 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.36.2.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.2: +5 -5 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.34.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:22:46 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.34.2.4: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.4: +3 -3 lines
Catch up to -current.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Sep 11 05:36:26 2002 UTC (22 years, 2 months ago) by itojun
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.39: preferred, colored
Changes since revision 1.39: +5 -5 lines
KNF - return is not a function.

Revision 1.34.2.4: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:48:19 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.34.2.3: preferred, colored
Changes since revision 1.34.2.3: +21 -11 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:02:04 2002 UTC (22 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.1: +23 -13 lines
Catch up with -current.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Mar 5 04:12:59 2002 UTC (22 years, 9 months ago) by itojun
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, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +23 -13 lines
bring in latest ALTQ from kjc.  ALTQify some of the drivers.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:02:01 2002 UTC (22 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -6 lines
Sync kqueue branch with -current.

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

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:49:35 2001 UTC (23 years ago) by lukem
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -1 lines
add RCSIDs

Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:53 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.34.2.1: preferred, colored
Changes since revision 1.34.2.1: +1 -6 lines
Catch up to -current.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Oct 17 08:23:05 2001 UTC (23 years, 1 month ago) by itojun
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -6 lines
unifdef OLDIP6OUTPUT

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

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jun 14 05:44:23 2001 UTC (23 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: 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.35: preferred, colored
Changes since revision 1.35: +1 -3 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.28.2.5: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:37 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.28.2.4: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.4: +4 -4 lines
Sync with HEAD

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Apr 13 23:30:12 2001 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +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.28.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:49 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.28.2.3: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.3: +3 -7 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 17 00:30:50 2001 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -8 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.28.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:49 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.28.2.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.2: +1 -0 lines
Sync with HEAD

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Dec 18 19:44:33 2000 UTC (23 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.28.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:29 2000 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.1: +11 -1 lines
Sync with HEAD (for UBC fixes).

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

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:09:57 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +14 -18 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Apr 12 10:36:38 2000 UTC (24 years, 7 months ago) by itojun
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.30: preferred, colored
Changes since revision 1.30: +1 -5 lines
revisit in6_ifattach().
- be persistent on initializing interfaces, even if there's manually-
  assigned linklocal, multicast/whatever initialization is necessary.
- do not cache mac addr in the kernel.  grab mac addr from existing cards
  (this is important when you swap ethernet cards back and forth)
now ppp6 works just fine!

call in6_ifattach() on ATM PVC interface to assign link-local, using
hardware MAC address as seed.

(the change is in sync with kame tree).

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:45:34 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +9 -9 lines
Kill some more register declarations.

Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:07 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +6 -6 lines
Pull up to last week's -current.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Dec 20 20:27:14 1999 UTC (24 years, 11 months ago) by frueauf
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -6 lines
Make this compile again:
NEWIP6OUTPUT gets no longer defined, revers logic to use OLDIP6OUTPUT.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Sep 25 17:49:28 1999 UTC (25 years, 2 months ago) by is
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -10 lines
Decouple IP mtu for ARCnet devices from interface MTU.
This is important, because for most protocols, link level fragmentation is
used, but with different default effective MTUs. (e.g.: IPv4 default MTU
is 1500 octets, IPv6 default MTU is 9072 octets).

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Sep 19 21:31:33 1999 UTC (25 years, 2 months ago) by is
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +48 -13 lines
Zeroth version of IPv6 support for ARCnet. Correct MTU handling still needs
to be done.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Aug 29 20:38:36 1999 UTC (25 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
Move the mtu initialization to arc_storelladdr, so that it will be upped
again when switching link0 on.
XXX This stuff needs to be thought about, especially with the doomming IPv6
support, which uses yet another default mtu.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Aug 27 19:38:29 1999 UTC (25 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2 lines
Don't assume PHDS encoding for DIAGNOSE packets... we have to pass them
raw, if used at all.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Aug 27 19:23:19 1999 UTC (25 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +20 -8 lines
Factor out arc_storelladdr(), and use that instead of arc_ifattach() in
the bah_reset() function.
This makes the last change work without deconnecting all the other interfaces
from the interface list.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Aug 26 20:44:50 1999 UTC (25 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -1 lines
Only use ifp->if_addrlen after initializing it.\
Problem detected by Andreas Johansson.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Aug 26 19:56:08 1999 UTC (25 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Eliminate a function call... we know its exactly one byte here

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:27:33 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +9 -3 lines
Sync w/ -current.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue May 18 23:57:20 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -3 lines
Rework layer 2 protocol input routines.  Instead of calling e.g. ether_input()
directly, call the function pointer (*if_input)(ifp, m).  The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary.  Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 25 11:20:34 1999 UTC (25 years, 9 months ago) by is
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, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
So... after all, the ATA878.2 copy I had was buggy. The newer revision has
this fixed in the figures (but still not in the text); anyway, the intention
of the ATA is that this is identical to the PHDS specification.
Remove the ...EXC_8782 constant, and change the _EXC_1201 constant to be
a simple ...EXC.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jan 16 14:08:05 1999 UTC (25 years, 10 months ago) by is
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -6 lines
Yet another performance optimization for exceptional length ARCnet packets.
This time in the receive path.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jan 16 13:04:13 1999 UTC (25 years, 10 months ago) by is
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +18 -15 lines
Make the code path for exceptional length packets a bit faster (2 mbuf
operations less) and better readable.

Revision 1.17.6.1: download - view: text, markup, annotated - select for diffs
Fri Dec 11 04:53:04 1998 UTC (25 years, 11 months ago) by kenh
Branches: kenh-if-detach
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +5 -5 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.17: download - view: text, markup, annotated - select for diffs
Sun Jul 5 00:51:26 1998 UTC (26 years, 5 months ago) by jonathan
Branches: MAIN
CVS tags: kenh-if-detach-base, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Branch point for: kenh-if-detach
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
defopt INET, NETATALK.

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:29:07 1997 UTC (27 years, 1 month ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +2 -1 lines
Update marc-pcmcia branch from trunk.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Oct 2 19:41:58 1997 UTC (27 years, 2 months ago) by is
Branches: MAIN
CVS tags: 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.15: preferred, colored
Changes since revision 1.15: +2 -1 lines
Reimplement a test for broadcast addresses advertized, which was left out
when rewriting the ARP system.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 23 01:22:35 1997 UTC (27 years, 8 months ago) by is
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +10 -6 lines
Fix several bugs related to  the new ARP code, and ARCnet ARP support.
Among other, add ARPHRD_ARCNET definition, make sure the hardware type is
set on outgoing ARP packets, make sure we dont send out replies as broadcasts.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 17 16:56:34 1997 UTC (27 years, 8 months ago) by is
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -7 lines
Make this compile on port-amiga. Bug report by Bernd Ernesti.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Mar 16 23:27:07 1997 UTC (27 years, 8 months ago) by is
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
move if_arc.h to sys/net

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Mar 15 18:12:22 1997 UTC (27 years, 8 months ago) by is
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +85 -18 lines
New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.

Revision 1.11.4.4: download - view: text, markup, annotated - select for diffs
Sun Mar 9 20:59:00 1997 UTC (27 years, 9 months ago) by is
Branches: is-newarp
Diff to: previous 1.11.4.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.4.3: +70 -2 lines
netinet/if_ether.h -> netinet/if_inarp.h

Revision 1.11.4.3: download - view: text, markup, annotated - select for diffs
Tue Feb 11 16:28:24 1997 UTC (27 years, 9 months ago) by is
Branches: is-newarp
Diff to: previous 1.11.4.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.4.2: +7 -5 lines
Oops, forgot some usages of ((struct arccom *)ifp)->ac_anaddr

Revision 1.11.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 8 16:17:45 1997 UTC (27 years, 10 months ago) by is
Branches: is-newarp
Diff to: previous 1.11.4.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.4.1: +5 -5 lines
Extinguish the link level address from struct arccom, too.
XXX Todo: change this in the hardware driver.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 7 18:06:56 1997 UTC (27 years, 10 months ago) by is
Branches: is-newarp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +8 -11 lines
Snapshot of new ARP code.

Our old ARP code was hardwired for 6-byte length medium
addresses, while the protocol is designed for any size.

This snapshot contains a first hack at getting rid of
Ethernet specific data structures. The ep driver is updated
(and tested on the PCI bus), the iy and fpa drivers have been
updated, but not real life tested yet.

If you want to test this with other drivers, you have to update
them first yourself, and probably tag the relevant directories.
Better contact me if you want to do this.

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

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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Sep 2 17:28:25 1996 UTC (28 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -4 lines
Add IP multicast support as per RFC 1122 section 3.3.7 to ARCnet.
	"The mapping of IP Class D addresses to local addresses is
         currently specified for the following types of networks:
	 [...]
         o    Any network that supports broadcast but not multicast,
              addressing: all IP Class D addresses map to the local
              broadcast address."

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 7 02:40:29 1996 UTC (28 years, 7 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.7: preferred, colored
Changes since revision 1.7: +8 -8 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.7: download - view: text, markup, annotated - select for diffs
Mon Apr 15 14:01:25 1996 UTC (28 years, 7 months ago) by is
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Don't even check the not-yet-initialized mbuf pointers for being !=
NULL in the error exit code of arc_output(), else we see random data
and try to m_freem() it, panic'ing the machine.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 15 12:46:10 1996 UTC (28 years, 7 months ago) by is
Branches: netbsd-1-1
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -2 lines
Fix a bug in the HI part of the ARCnet driver, which would cause the
kernel to panic if the IP layer tried to output at the time the
interface was ifconfig'd down.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 24 03:03:55 1995 UTC (28 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +37 -72 lines
Various cleanup, mostly by me, submitted by Ignatios Souvatzis.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jul 12 08:27:26 1995 UTC (29 years, 4 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
fix struct member use, as explained in pr 1164.  style police
beat the fix into submission.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jun 7 00:13:52 1995 UTC (29 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +363 -41 lines
update from Ignatios Souvatzis

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 14 17:06:39 1995 UTC (29 years, 7 months ago) by chopps
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +15 -6 lines
change args to arc_input also add check on link address which fixes pr#922.  from Ignatios Souvatzis <is@beverly.rhein.de>

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Apr 11 04:32:09 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -2 lines
Remove some explicit references to loif.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Feb 23 07:19:51 1995 UTC (29 years, 9 months ago) by glass
Branches: MAIN
preliminary arcnet support.  uses lame but RFC address resolution

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>