The NetBSD Project

CVS log for src/sys/net/if_ether.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.91 / (download) - annotate - [select for diffs], Mon Feb 5 21:46:06 2024 UTC (2 weeks, 6 days ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

fix various typos in comments.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 1 07:04:16 2023 UTC (6 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.89: +3 -2 lines
Diff to previous 1.89 (colored)

fix simple mis-matched function prototype and definitions.

most of these are like, eg

   void foo(int[2]);

with either of these

   void foo(int*) { ... }
   void foo(int[]) { ... }

in some cases (such as stat or utimes* calls found in our header files),
we now match standard definition from opengroup.

found by GCC 12.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jun 20 08:14:48 2022 UTC (20 months, 1 week ago) by yamaguchi
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.88: +21 -7 lines
Diff to previous 1.88 (colored)

bridge(4): support VLAN frames stripped by hardware tagging

Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 15 07:07:05 2021 UTC (2 years, 3 months ago) by yamaguchi
Branch: MAIN
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored)

introduced APIs to configure VLAN TAG to ethernet devices

Revision 1.87 / (download) - annotate - [select for diffs], Thu Sep 30 03:54:04 2021 UTC (2 years, 4 months ago) by yamaguchi
Branch: MAIN
Changes since 1.86: +7 -1 lines
Diff to previous 1.86 (colored)

Provide a hook point called when ether_ifdetach is called

Revision 1.81.10.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:01 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Feb 14 19:35:37 2021 UTC (3 years ago) by roy
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.85: +1 -10 lines
Diff to previous 1.85 (colored)

if_ether: revert prior alignment checks

Apparently not needed as our drivers ensure this.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Feb 13 07:28:04 2021 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.84: +6 -2 lines
Diff to previous 1.84 (colored)

if_ether: Ensure that ether_header is aligned

Revision 1.84 / (download) - annotate - [select for diffs], Wed Feb 3 18:13:13 2021 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

CTASSERT -> __CTASSERT to unbreak userland build.

While here move __packed in tcp_debug.h back to where it was and
note removal warrants more investigation.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Feb 3 11:53:43 2021 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.82: +6 -1 lines
Diff to previous 1.82 (colored)

Sprinkle CTASSERT to enforce on-wire layout without __packed

Revision 1.82 / (download) - annotate - [select for diffs], Wed Feb 3 05:51:40 2021 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Remove __packed from various network structures

They are already network aligned and adding the __packed attribute
just causes needless compiler warnings about accssing members of packed
objects.

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:15 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.75.2.1: +27 -11 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 17 03:26:24 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, 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, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.80: +16 -1 lines
Diff to previous 1.80 (colored)

 Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER).
First proposed by jmcneill in 2017 and modified by me.

How to use:

 - Set callback function:

	ether_set_vlan_cb(struct ethercom *, ether_vlancb_t)

 - Callback. This function is called when a vlan is attached/detached to the
   parent interface:

	int (*ether_vlancb_t)(struct ethercom *ec, uint16_t vlanid, bool set);

 - ifconfig(8)

	ifconfig ixg0 [-]vlan-hwfilter

 Note that ETHERCAP_VLAN_HWFILTER is set by default on ixg(4) because
the PF driver usually enable "all block" filter by default.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jul 17 03:09:16 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.79: +12 -11 lines
Diff to previous 1.79 (colored)

 KNF. No functional change.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:45 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.75: +27 -6 lines
Diff to previous 1.75 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Wed May 29 10:07:30 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

Even if we don't use MII(4), use the common path of SIOC[GS]IFMEDIA in
sys/net/if_ethersubr.c if we can.
 - Add ec_ifmedia into struct ethercom.
 - ec_mii in struct ethercom is kept and used as it is. It might be used in
   future. Note that some Ethernet drivers which _DOESN'T_ use mii(4) use
   ec_mii for keeping the if_media. Those should be changed in future.

Revision 1.78 / (download) - annotate - [select for diffs], Wed May 15 02:56:48 2019 UTC (4 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.77: +9 -1 lines
Diff to previous 1.77 (colored)

Store IFF_ALLMULTI in ec_flags instead of if_flags to avoid data races

IFF_ALLMULTI is set/unset to if_flags via if_mcast_op.  To avoid data races on
if_flags, IFNET_LOCK was added for if_mcast_op.  Unfortunately it produces
a deadlock so we want to remove added IFNET_LOCK by avoiding the data races by
another approach.

This fix introduces ec_flags to struct ethercom and stores IFF_ALLMULTI to it.
ec_flags is protected by ETHER_LOCK and thus IFNET_LOCK is no longer necessary
for if_mcast_op.  Note that the fix is applied only to MP-safe drivers that
the data races matter.

In the kernel, IFF_ALLMULTI is set by a driver and used by the driver itself.
So changing the storing place doesn't break anything.  One exception is
ioctl(SIOCGIFFLAGS); we have to include IFF_ALLMULTI in a result if needed to
export the flag as well as before.

A upcoming commit will remove IFNET_LOCK.

PR kern/54189

Revision 1.77 / (download) - annotate - [select for diffs], Tue Mar 5 08:25:03 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.76: +9 -1 lines
Diff to previous 1.76 (colored)

 Centralize ETHER_ALIGN into net/if_ether.h. Note that this commit also changes
if_upgt.c's ETHER_ALIGN from 0 to 2.

Revision 1.71.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:04 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.71.2.2: +10 -6 lines
Diff to previous 1.71.2.2 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 21 04:43:17 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.75: +10 -6 lines
Diff to previous 1.75 (colored)

 Add ETHERCAP_VLAN_HWFILTER and ETHERCAP_EEE.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:06 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.71.2.1: +52 -35 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jun 14 08:00:24 2018 UTC (5 years, 8 months ago) by yamaguchi
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.74: +1 -7 lines
Diff to previous 1.74 (colored)

Remove ETHER_LOOKUP_MULTI()

The macro has been replaced with a function.
ok ozaki-r@

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 14 07:44:31 2018 UTC (5 years, 8 months ago) by yamaguchi
Branch: MAIN
Changes since 1.73: +47 -22 lines
Diff to previous 1.73 (colored)

Replace macros related to multicast address with inline functions

ok ozaki-r@

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jun 14 07:39:16 2018 UTC (5 years, 8 months ago) by yamaguchi
Branch: MAIN
Changes since 1.72: +8 -10 lines
Diff to previous 1.72 (colored)

Move macros related to multicast address into #ifdef _KERNEL

Those macros and structure are only used in the kernel.
reviewed by ozaki-r@n.o, thanks.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:27 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Thu Apr 19 21:20:43 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

s/static inline/static __inline/g for consistency.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jan 15 16:36:51 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Mostly style, and add a bunch of KASSERTs.

Revision 1.58.18.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.58.18.2: +30 -26 lines
Diff to previous 1.58.18.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

update from HEAD

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Fri Nov 24 08:39:08 2017 UTC (6 years, 3 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.66.8.1: +9 -7 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #389):
	sys/net/if_ether.h: revision 1.69
	sys/net/if_vlan.c: revision 1.108
	sys/dev/pci/if_bge.c: revision 1.313
	sys/net/if_vlanvar.h: revision 1.11
	sys/net/if_vlanvar.h: revision 1.12
	sys/net/if_ether.h: revision 1.70
	sys/net/if_vlan.c: revision 1.110
	sys/dev/pci/if_wm.c: revision 1.544
	sys/dev/pci/if_wmreg.h: revision 1.105
  Fix a bug that a vlan packet which has priority or CFI bit in the tag causes
panic.
  Revert part of if_bge.c 1.312. It's not required to mask other than VLAN ID
bits in VLAN tag.
  Revert if_wmreg.h 1.104 and if_wm.c 1.542. It's not required to mask other
than VLAN ID bits in VLAN tag.
No functional change:
  - u_int16_t -> uint16_t
  - u_short -> uint16_t
  - tag_hash_func -> vlan_tag_hash
  - 0 -> NULL because vlr_parent is a pointer.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Nov 22 03:45:15 2017 UTC (6 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

No functional change:
 - u_int16_t -> uint16_t
 - u_short -> uint16_t
 - tag_hash_func -> vlan_tag_hash
 - 0 -> NULL because vlr_parent is a pointer.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Nov 22 02:35:24 2017 UTC (6 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.68: +9 -7 lines
Diff to previous 1.68 (colored)

 Fix a bug that a vlan packet which has priority or CFI bit in the tag causes
panic.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Oct 24 08:38:59 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.66: +21 -25 lines
Diff to previous 1.66 (colored)

Pull up following revision(s) (requested by knakahara in ticket #302):
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.30-1.31
	sys/arch/x86/pci/if_vmx.c: 1.20
	sys/dev/ic/i82557.c: 1.148
	sys/dev/ic/rtl8169.c: 1.152
	sys/dev/pci/cxgb/cxgb_sge.c: 1.5
	sys/dev/pci/if_age.c: 1.51
	sys/dev/pci/if_alc.c: 1.25
	sys/dev/pci/if_ale.c: 1.23
	sys/dev/pci/if_bge.c: 1.311
	sys/dev/pci/if_bge.c: 1.312
	sys/dev/pci/if_bnx.c: 1.62
	sys/dev/pci/if_jme.c: 1.32
	sys/dev/pci/if_nfe.c: 1.64
	sys/dev/pci/if_sip.c: 1.167
	sys/dev/pci/if_stge.c: 1.63-1.64
	sys/dev/pci/if_ti.c: 1.102
	sys/dev/pci/if_txp.c: 1.48
	sys/dev/pci/if_vge.c: 1.61
	sys/dev/pci/if_wm.c: 1.538
	sys/dev/pci/ixgbe/ix_txrx.c: 1.29 via patch
	sys/net/agr/if_agrether_hash.c: 1.4
	sys/net/if_ether.h: 1.67-1.68
	sys/net/if_ethersubr.c: 1.244
	sys/net/if_vlan.c: 1.100
	sys/net80211/ieee80211_input.c: 1.89
	sys/net80211/ieee80211_output.c: 1.59
	sys/sys/mbuf.h: 1.171
VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.
I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks.
See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html
--
only get vtag when we have vtag like the other drivers.
--
- only get the vtag if we have it like the other drivers
- mask the hardware vlan tag
--
- add a constant for the vlan mask.
- enforce that we have a tag before we get it.
only get vtag when we have vtag like the other drivers.
like if_bge.c:1.312 and if_stge.c:1.64.
fixed by s-yamaguchi@IIJ, thanks.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Sep 28 16:26:14 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.67: +4 -2 lines
Diff to previous 1.67 (colored)

- add a constant for the vlan mask.
- enforce that we have a tag before we get it.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Sep 26 07:42:06 2017 UTC (6 years, 5 months ago) by knakahara
Branch: MAIN
Changes since 1.66: +19 -25 lines
Diff to previous 1.66 (colored)

VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.

I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks.
See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html

XXX need pullup to -8 branch

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sun Sep 24 20:05:03 2017 UTC (6 years, 5 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.64: +3 -1 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Pull up following revision(s) (requested by manu in ticket #1409):
	sys/arch/xen/xen/if_xennet_xenbus.c: 1.65
	sys/arch/xen/xen/xennetback_xenbus.c: 1.53, 1.56 via patch
	sys/net/if_bridge.c: 1.105
	sys/net/if_ether.h: 1.65
	sys/net/if_ethersubr.c: 1.215, 1.235
	sys/net/if_vlan.c: 1.76, 1.77, 1.83, 1.88, 1.94
Protect vlan_unconfig with a mutex
It is not thread-safe but is likely to be executed in concurrent.
See PR 49264 for more detail.
--
Tweak vlan_unconfig
No functional change.
--
Add handling of VLAN packets in if_bridge where the parent interface supports
them (Jean-Jacques.Puig%espci.fr@localhost). Factor out the vlan_mtu enabling and
disabling code.
--
Enable the VLAN mtu capability and check for the adjusted packet size
(Jean-Jacques.Puig at espci.fr).
Factor out the packet-size checking function for clarity.
--
Don't increment the reference count only when it was 0...
From Jean-Jacques.Puig
--
Account for the CRC len (Jean-Jacques.Puig)
--
Fix a bug that the parent interface's callback wasn't called when the vlan
interface is configured. A callback function uses VLAN_ATTACHED() function
which check ec->ec_nvlans, the value should be incremented before calling the
callback. This bug was added in if_vlan.c rev. 1.83 (2015/11/19).

Revision 1.64.4.2 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.64.4.1: +5 -1 lines
Diff to previous 1.64.4.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

Sync with HEAD

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:50 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.65: +5 -1 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.66 / (download) - annotate - [select for diffs], Wed Dec 28 07:32:16 2016 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.65: +5 -1 lines
Diff to previous 1.65 (colored)

Protect ec_multi* with mutex

The data can be accessed from sysctl, ioctl, interface watchdog
(if_slowtimo) and interrupt handlers. We need to protect the data against
parallel accesses from them.

Currently the mutex is applied to some drivers, we need to apply it to all
drivers in the future.

Note that the mutex is adaptive one for ease of implementation but some
drivers access the data in interrupt context so we cannot apply the mutex
to every drivers as is. We have two options: one is to replace the mutex
with a spin one, which requires some additional works (see
ether_multicast_sysctl), and the other is to modify the drivers to access
the data not in interrupt context somehow.

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:06 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.64: +3 -1 lines
Diff to previous 1.64 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.65 / (download) - annotate - [select for diffs], Thu Nov 19 16:23:54 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.64: +3 -1 lines
Diff to previous 1.64 (colored)


Add handling of VLAN packets in if_bridge where the parent interface supports
them (Jean-Jacques.Puig@espci.fr). Factor out the vlan_mtu enabling and
disabling code.

Revision 1.58.18.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.58.18.1: +9 -1 lines
Diff to previous 1.58.18.1 (colored) to branchpoint 1.58 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.61.10.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.61: +9 -1 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Rebase.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jul 28 14:24:48 2014 UTC (9 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: nick-nhusb, netbsd-7
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Add a mutex for global variables of if_ethersubr.c

To initialize the mutex, we introduce etherinit that is called from ifinit1.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jun 10 09:38:30 2014 UTC (9 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.62: +7 -1 lines
Diff to previous 1.62 (colored)

Introduce new sysctls for obtaining interface-specific addresses:
- net.sdl for the active link-layer adddress (the MAC)
- net.ether.multicast for the Ethernet multicast addresses
- net.inet6.multicast for the IPv6 multicast groups
- net.inet6.multicast_kludge for temporarily removed multicast groups

Use this sysctls for replacing the kmem grovelling in ifmcstat(8).

Revision 1.58.8.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.58.8.2: +2 -1 lines
Diff to previous 1.58.8.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with head.

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

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

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:12 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Wed Apr 23 23:17:22 2014 UTC (9 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored)

add a mask for currently valid ETHERCAP flags

Revision 1.58.8.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:48 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.58.8.1: +14 -1 lines
Diff to previous 1.58.8.1 (colored) to branchpoint 1.58 (colored)

sync with (a bit old) head

Revision 1.58.18.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:46 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.58: +19 -1 lines
Diff to previous 1.58 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.61 / (download) - annotate - [select for diffs], Wed Oct 31 10:17:34 2012 UTC (11 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, 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
Changes since 1.60: +14 -1 lines
Diff to previous 1.60 (colored)

Add SIOCGETHERCAP ioctl.
There was no way to know the setting of ec_capabilities and ec_capenable
other than grepping the source.

See http://mail-index.netbsd.org/tech-kern/2010/07/28/msg008613.html

Revision 1.58.8.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:43 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.58: +6 -1 lines
Diff to previous 1.58 (colored)

sync with head

Revision 1.60 / (download) - annotate - [select for diffs], Thu Oct 25 11:53:14 2012 UTC (11 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

Move the prototype definition of ether_input() from if.h to if_ether.h.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Sep 30 05:08:08 2012 UTC (11 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.58: +5 -1 lines
Diff to previous 1.58 (colored)

Requires <net/if.h> to be compilable by itself.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:43 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with HEAD.

Revision 1.50.4.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:53 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.50.4.1: +2 -2 lines
Diff to previous 1.50.4.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

sync with head

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 19 20:41:59 2010 UTC (13 years, 9 months ago) by christos
Branch: 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, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, 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, netbsd-6-0, netbsd-6, 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
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Replace ether_nonstatic_aton with a
- better named one
- not suffering from buffer oveflow
- simpler
- handling different separators
- returning error codes for errors

Some ideas from one posted on tech-net by Jonathan A. Kollasch

Revision 1.57 / (download) - annotate - [select for diffs], Wed May 19 18:58:22 2010 UTC (13 years, 9 months ago) by jakllsch
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Changes to ether_nonstatic_aton():

Be more leinent on input string format.  Each nibble pair may optionally be
followed by any of ':', '-', '.' or ' '.

Make source string const and work on a temporary copy.  The caller may not
expect their string to be destroyed.

Revision 1.54.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:19 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.54: +8 -8 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:14 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.50: +44 -24 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:16 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.53.2.1: +8 -8 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Mar 31 18:02:32 2009 UTC (14 years, 10 months ago) by bouyer
Branch: netbsd-4
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Pull up following revision(s) (requested by dholland in ticket #1294):
	sys/net/if_ether.h: revision 1.52
PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
Allow larger frames for systems that don't negotiate MTU/MRU properly.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Mar 18 15:14:31 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

bcmp -> memcmp

Revision 1.55 / (download) - annotate - [select for diffs], Sat Mar 14 14:46:10 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.54: +6 -6 lines
Diff to previous 1.54 (colored)

Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:11 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.53: +11 -1 lines
Diff to previous 1.53 (colored)

Sync with HEAD.

Revision 1.49.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:31 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.6.3: +10 -0 lines
Diff to previous 1.49.6.3 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

Sync with HEAD.

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:25 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.51.4.1: +11 -1 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:13 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.53: +11 -1 lines
Diff to previous 1.53 (colored)

*** 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.51.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.51: +26 -17 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Revision 1.49.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:55 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.6.2: +25 -16 lines
Diff to previous 1.49.6.2 (colored) to branchpoint 1.49 (colored)

Sync with HEAD.

Revision 1.50.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:59 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.50.6.1: +26 -17 lines
Diff to previous 1.50.6.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Jul 28 14:37:36 2008 UTC (15 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.51: +26 -17 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 25 20:04:50 2008 UTC (15 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.52: +23 -16 lines
Diff to previous 1.52 (colored)

Move the body of VLAN_INPUT_TAG() into a static inline function.
(Maybe it shouldn't even be inline - but I'd have to work out where to put it).
VLAN_INPUT_TAG() now calls vlan_input_tag() and does '_errcase' when it fails.
In reality the callers should all be changed, _errcase is ALWAYS continue,
which used to 'continue' (ie break) the do .. while (0) loop - not the
intended action!
Found by ramming all the kernel sources through a modified lint and grepping
for a specific error.
While here enclose the body of VLAN_OUTPUT_TAG() in ().

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jul 25 15:10:25 2008 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
Allow larger frames for systems that don't negotiate MTU/MRU properly.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:57 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:47 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.49.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:21 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49.6.1: +1 -0 lines
Diff to previous 1.49.6.1 (colored) to branchpoint 1.49 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 22 01:15:33 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Add ETHER_IS_LOCAL().  Tests for "local" ethernet addresses.

Revision 1.49.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:07 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Sync with HEAD.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:23 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.45.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:04 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.45.16.2: +22 -22 lines
Diff to previous 1.45.16.2 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

sync with HEAD

Revision 1.39.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:41 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.7: +2 -2 lines
Diff to previous 1.39.2.7 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Mar 15 11:45:18 2008 UTC (15 years, 11 months ago) by rtr
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

whitespace '\t' -> ' '

Revision 1.39.2.7 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:00 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.6: +21 -21 lines
Diff to previous 1.39.2.6 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Feb 20 17:05:52 2008 UTC (16 years ago) by matt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.48: +21 -21 lines
Diff to previous 1.48 (colored)

s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.46: +9 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.39.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:01 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.5: +9 -3 lines
Diff to previous 1.39.2.5 (colored) to branchpoint 1.39 (colored)

sync with head

Revision 1.45.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:09 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.45.16.1: +9 -3 lines
Diff to previous 1.45.16.1 (colored) to branchpoint 1.45 (colored)

sync with HEAD

Revision 1.46.12.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:04 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.46: +9 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Mon Dec 31 22:48:41 2007 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.47: +7 -1 lines
Diff to previous 1.47 (colored)

Add media-handling code for several ethernet drivers with MII buses
to share.

Revision 1.46.8.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:30 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:44 2007 UTC (16 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.45.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:27 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.45: +4 -5 lines
Diff to previous 1.45 (colored)

sync with HEAD

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:59 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.4: +4 -5 lines
Diff to previous 1.39.2.4 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:39 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.45: +4 -5 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync with head.

Revision 1.45.14.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:13 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.45: +4 -5 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync with HEAD.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Sep 19 05:25:33 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.45: +4 -5 lines
Diff to previous 1.45 (colored)

Constify sockaddr argument to ether_multiaddr().  Change struct
ifreq * arguments to ether_addmulti() and ether_delmulti() to const
struct sockaddr *, since ether_{add,del}multi() only ever read the
sockaddr ifreq member, ifr_addr.  Update uses in carp(4) and in
vlan(4).

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:04 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.3: +2 -2 lines
Diff to previous 1.39.2.3 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.43.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:10 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.43.4.1: +2 -2 lines
Diff to previous 1.43.4.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Sync with HEAD.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:15 2007 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, matt-armv6, jmcneill-pm
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:41 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.43: +11 -11 lines
Diff to previous 1.43 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:33 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.2: +11 -11 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:08 2007 UTC (17 years ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.43: +11 -11 lines
Diff to previous 1.43 (colored)

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.42.10.1 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:11 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with head.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39.2.1: +2 -1 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored)

sync with head.

Revision 1.42.12.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:00 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Nov 24 01:04:30 2006 UTC (17 years, 3 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

The change I committed to etherip was wrong. ether_snprintf doesn't make
sense when chaning the MAC address of the virtual interface as pointed
out by Hans himself.
So, introduce ether_nonstatic_aton() and make etherip(4) and tap(4) use it.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:27 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

sync with head.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Sync with head.

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:46:10 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:43 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 16 15:57:59 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

Add a new function called ether_snprintf() which takes an external buffer
and a length. The buffer should be 3 * addrlen.
Remove local tap_ether_sprintf(), and use ether_snprintf() instead.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:37 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jan 29 09:57:59 2006 UTC (18 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

fix VLAN_ATTACHED() macro, it was always true due to condition bug

Fixes PR kern/32645 by Pavel Cahyna

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:19 2005 UTC (18 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.33.2.6: +2 -2 lines
Diff to previous 1.33.2.6 (colored) next main 1.34 (colored)

Sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 10 23:21:38 2005 UTC (18 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: ktrace-lwp-base
Branch point for: yamt-uio_vmspace
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.36: +34 -1 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

sync with -current

Revision 1.33.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:34 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.5: +2 -1 lines
Diff to previous 1.33.2.5 (colored)

Sync with HEAD.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.36: +34 -1 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Mar 18 11:11:50 2005 UTC (18 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

add agr(4), a pseudo network device driver for link aggregation.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:56 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.4: +33 -1 lines
Diff to previous 1.33.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.38 / (download) - annotate - [select for diffs], Sun Feb 20 15:41:48 2005 UTC (19 years ago) by jdolecek
Branch: MAIN
CVS Tags: 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
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

expose the new VLAN macros only within kernel

Revision 1.37 / (download) - annotate - [select for diffs], Sun Feb 20 15:29:03 2005 UTC (19 years ago) by jdolecek
Branch: MAIN
Changes since 1.36: +33 -1 lines
Diff to previous 1.36 (colored)

add several VLAN tagging related macros, to reduce code duplication
in various ethernet adapter drivers and improve code consistency; mostly
FreeBSD-compatible, with exception of VLAN_OUTPUT_TAG(), which takes
(struct ethercom *) rather than (struct ifnet *) as first parameter
since the information cannot be extracted via (struct ifnet)

also add VLAN_ATTACHED(ec), which tests if any VLAN is attached to the
ethernet device

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:38 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.3: +4 -5 lines
Diff to previous 1.33.2.3 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 8 03:18:18 2005 UTC (19 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

constify broadcastaddr.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 8 03:13:09 2005 UTC (19 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

remove an unused member, enm_ec from ether_multi.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:36 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.2: +1 -1 lines
Diff to previous 1.33.2.2 (colored)

Fix the sync with head I botched.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:16 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33.2.1: +0 -0 lines
Diff to previous 1.33.2.1 (colored)

Sync with HEAD.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:12 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.33: +2 -6 lines
Diff to previous 1.33 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:51 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-base, kent-audio1
Changes since 1.33: +2 -6 lines
Diff to previous 1.33 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.27.8.1 / (download) - annotate - [select for diffs], Mon Jun 30 03:17:18 2003 UTC (20 years, 8 months ago) by grant
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Pull up revision 1.30 (requested by bouyer in ticket #1356):

Make promiscous mode work on vlans: introduce a new link-layer m_flag
M_PROMISC. In ether_input(), flag packets comming from an interface in
promiscous mode which are not for us M_PROMISC instead of droping them.
Drop M_PROMISC packets which are not passed to vlan_input(). M_PROMISC
packets passed to vlan_input() will be looped back to ether_input()
the M_PROMISC flag will be handled appropriately.
Clear M_PROMISC before giving the packet to bridge, as bridge has its
own checks for local MAC addresses.
This also makes bridges on vlan working.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 26 08:22:06 2003 UTC (20 years, 8 months ago) by tron
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Test for symbol "_KERNEL_OPT" instead of "_LKM" as suggested by
Matthew Green.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 26 06:52:55 2003 UTC (20 years, 8 months ago) by tron
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)

Don't include "opt_mbuftrace.h" if "_LKM" is defined. This fixes a build
problem in the "vmware-module3" package.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:10 2003 UTC (20 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Mar 25 13:29:39 2003 UTC (20 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Make promiscous mode work on vlans: introduce a new link-layer m_flag
M_PROMISC. In ether_input(), flag packets comming from an interface in
promiscous mode which are not for us M_PROMISC instead of droping them.
Drop M_PROMISC packets which are not passed to vlan_input(). M_PROMISC
packets passed to vlan_input() will be looped back to ether_input()
the M_PROMISC flag will be handled appropriately.
Clear M_PROMISC before giving the packet to bridge, as bridge has its own
checks for local MAC addresses.
This also makes bridges on vlan working.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:12 2003 UTC (21 years ago) by matt
Branch: MAIN
Changes since 1.28: +14 -6 lines
Diff to previous 1.28 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.21.2.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:10 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.21.2.4: +2 -2 lines
Diff to previous 1.21.2.4 (colored) next main 1.22 (colored)

Catch up to -current.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:40 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.25.2.2: +3 -3 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 16 19:25:30 2002 UTC (21 years, 5 months ago) by tron
Branch: 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
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Use "const" for all input parameters of ethers(3) functions.

Revision 1.21.2.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:48:20 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.2.3: +1 -5 lines
Diff to previous 1.21.2.3 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:04 2002 UTC (21 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.25.2.1: +1 -5 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored)

Catch up with -current.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 5 04:13:00 2002 UTC (21 years, 11 months ago) by itojun
Branch: 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-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.26: +1 -5 lines
Diff to previous 1.26 (colored)

bring in latest ALTQ from kjc.  ALTQify some of the drivers.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:03 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Sync kqueue branch with -current.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:20 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.2.2: +5 -5 lines
Diff to previous 1.21.2.2 (colored)

Catch up to -current.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:18 2001 UTC (22 years, 3 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 5 18:02:15 2001 UTC (22 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, ifpoll-base
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Switch to using queue access macros instead of refering to the member
fields explicitly.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:59 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21.2.1: +6 -3 lines
Diff to previous 1.21.2.1 (colored)

Catch up to -current.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Thu Jun 7 17:00:01 2001 UTC (22 years, 8 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.17.2.1: +3 -3 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Pull up revision 1.25 (requested by thorpej):
  Consider the configured MTU of the interface when determining
  if a packet is too large.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 3 03:24:23 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Consider the configured MTU of the interface when determining
if a packet is too large.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 3 03:07:40 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Add a capability bit that indicates support for Gigabit Ethernet
jumbo frames, and use it in SIOCSIFMTU.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:38 2001 UTC (22 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.12.2.2: +13 -3 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:11 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.21: +13 -3 lines
Diff to previous 1.21 (colored)

Catch up with -current.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Apr 7 18:01:48 2001 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored)

Add altq_etherclassify(), a slight hack modified from the kame/freebsd4
tree, which allows a packet with Ethernet headers already present to
run through the ALTQ packet classifier.  This is needed in order to
suport ALTQ on VLAN and bridge devices.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 7 04:24:31 2001 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +8 -3 lines
Diff to previous 1.21 (colored)

ether_*() functions belong in if_ether.h, not if.h.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sun Dec 31 20:14:25 2000 UTC (23 years, 2 months ago) by jhawk
Branch: netbsd-1-5
Changes since 1.17: +29 -3 lines
Diff to previous 1.17 (colored)

Pull up revisions 1.18-1.19, 1.21 (requested by bouyer):
	Add support for 802.1Q virtual LANs.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:50 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.12.2.1: +2 -2 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:00 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.12: +49 -12 lines
Diff to previous 1.12 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 17 19:21:53 2000 UTC (23 years, 3 months ago) by bouyer
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Supports hardware 802.1q VLAN tagging, per discussion on tech-net. The tag is
stored in a m_aux mbuf defined by AF_LINK, ETHERTYPE_VLAN.
Thanks to Jason & Itojun for the feedback.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 11 16:53:41 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Implement ether_ioctl(), ioctl operations common to all Ethernet
interfaces.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 3 23:33:38 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +28 -3 lines
Diff to previous 1.18 (colored)

Improve the VLAN support, in particular, handling of MTU:
- Add a macro to compute the max frame length based on Ethertype
  and presence of FCS, and use it to validate the packet size
  in ether_input().
- Add capabilites to struct ethercom, and allow hardware drivers
  to specify that they can handle the larger hardware MTU that
  VLANs require in order to strictly conform to 802.1Q.
- Make ether_ifdetach() clear out the link address and free all of
  the Ethernet multicast structures.

Also, rearrange the VLAN driver itself in preparation to supporting
other hardware types, including FDDI (which has 802.1Q VLAN capability).

Revision 1.18 / (download) - annotate - [select for diffs], Thu Sep 28 07:15:27 2000 UTC (23 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Factor out and give a name to the common functionality to translate
sockaddr which represents a multicast address into an Ethernet address
or range of Etherenet addresses.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:41 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 17 20:57:20 2000 UTC (23 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored)

Ansify before committing my next change.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 29 04:56:47 2000 UTC (23 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Fix typo in comment.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 29 03:36:32 2000 UTC (23 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Extern etherbroadcastaddr, ether_ipmulticast_min and ether_ipmulticast_max.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 6 20:54:41 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +11 -2 lines
Diff to previous 1.13 (colored)

- Initialize ifp->if_baudrate to a sensible value when the interface is
  attached.
- Add ether_crc32_be() and ether_crc_le(), common functions for computing
  the Ethernet CRC on arbitrary length buffers.  Nothing uses them yet,
  and these should be double-checked and probably re-implemented as
  table-driven functions.

Revision 1.12.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:08 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Pull up to last week's -current.

Revision 1.7.2.1.4.2 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:01 1999 UTC (24 years, 3 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.7.2.1.4.1: +5 -5 lines
Diff to previous 1.7.2.1.4.1 (colored) to branchpoint 1.7.2.1 (colored) next main 1.8 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

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

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

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 19 20:41:19 1999 UTC (24 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Add the `packed' attribute to structures which describe wire protocol
data formats.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 10 18:16:07 1999 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

u_char -> u_int8_t in the IPv6 goo.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 5 02:07:38 1999 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

M_HASCRC -> M_HASFCS, as suggested by Christoph Badura.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 4 19:16:48 1999 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (colored)

Define an Ethernet-specific flag which drivers can use to tell
the input routine that the CRC is included at the end of the frame.

Revision 1.7.2.1.2.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:45:18 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.7.2.1.2.1: +17 -1 lines
Diff to previous 1.7.2.1.2.1 (colored) to branchpoint 1.7.2.1 (colored) next main 1.8 (colored)

Sync w/ -current.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:48 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.8: +17 -1 lines
Diff to previous 1.8 (colored)

IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

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

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

Revision 1.7.2.1.4.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:55 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705, kame_14_19990628
Changes since 1.7.2.1: +17 -1 lines
Diff to previous 1.7.2.1 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

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

Revision 1.7.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:27:33 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.7.2.1: +0 -0 lines
Diff to previous 1.7.2.1 (colored)

Sync w/ -current.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Fri Apr 9 17:19:03 1999 UTC (24 years, 10 months ago) by drochner
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: kame, chs-ubc2
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

pull up rev. 1.8 - namespace protection for _STANDALONE programs

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 9 09:32:51 1999 UTC (24 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

don't expose structures and prototypes to _STANDALONE programs

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 25 23:08:28 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.6: +14 -7 lines
Diff to previous 1.6 (colored)

Define several constants related to the Ethernet protocol:
- ETHER_ADDR_LEN: length of Ethernet address (actually, we already defined
  this).
- ETHER_TYPE_LEN: length of the Ethernet header `type' field.
- ETHER_CRC_LEN: length of the Ethernet CRC (explorer got this already, mostly
because I forgot to commit these changes earlier).
- ETHER_HDR_LEN: total length of the Ethernet header
- ETHER_MAX_LEN: maximum length of an Ethernet frame, including header and CRC
- ETHER_MIN_LEN: minimum length of an Ethernet frame, including header and CRC

Define ETHERMTU and ETHERMIN (payload sizes) in terms of the above constants.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 25 04:45:37 1999 UTC (24 years, 11 months ago) by explorer
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

define ETHER_CRC_LEN, for if_vr.c

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Fri Dec 11 04:53:04 1998 UTC (25 years, 2 months ago) by kenh
Branch: kenh-if-detach
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

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.5 / (download) - annotate - [select for diffs], Tue Jul 28 12:25:53 1998 UTC (25 years, 7 months ago) by is
Branch: 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
Changes since 1.4: +2 -4 lines
Diff to previous 1.4 (colored)

Remove obsolete comment.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 9 17:43:49 1998 UTC (26 years ago) by perry
Branch: MAIN
Changes since 1.3: +6 -1 lines
Diff to previous 1.3 (colored)

add multiple inclusion protection (and cleanup).

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Mon Nov 10 22:33:00 1997 UTC (26 years, 3 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync w/ trunk.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 2 14:26:15 1997 UTC (26 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

* modify ether_aton, ether_hostton, and ether_line to take 'const char *'
  arguments as appropriate

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 15 18:12:25 1997 UTC (26 years, 11 months ago) by is
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.1: +182 -0 lines
Diff to previous 1.1 (colored)

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.1.2.3 / (download) - annotate - [select for diffs], Thu Mar 6 18:30:21 1997 UTC (26 years, 11 months ago) by is
Branch: is-newarp
CVS Tags: is-newarp-base
Changes since 1.1.2.2: +2 -13 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

Factor out the ETHERTYPE_XXX definitions. They are needed as
- Ethernet protocol type numbers
- ARP protocol type numbers, as per "Assigned Numbers".
This way we don't need to pull in all the Ethernet include file into the
ARP code.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Feb 18 13:27:44 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.1.2.1: +5 -5 lines
Diff to previous 1.1.2.1 (colored)

Having converted everything, remove the struct ether_arp definition completely.
Some small cleanup.
STILLTODO: some sanity checks of the (now) variable link level address length
in incoming packets..

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Feb 7 18:06:57 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.1: +193 -0 lines
Diff to previous 1.1 (colored)

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.1, Fri Feb 7 18:06:57 1997 UTC (27 years ago) by is
Branch: MAIN
Branch point for: is-newarp
FILE REMOVED

file if_ether.h was initially added on branch is-newarp.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>