The NetBSD Project

CVS log for src/sbin/ifconfig/ether.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / ifconfig

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 7 06:02:58 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

Update for proplib(3) API changes.

Revision 1.2.34.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:20 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.2.34.2: +6 -7 lines
Diff to previous 1.2.34.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.2.34.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:19 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.2.34.1: +4 -4 lines
Diff to previous 1.2.34.1 (colored) to branchpoint 1.2 (colored)

Merge changes from current as of 20200406

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 2 23:02:19 2020 UTC (4 years, 3 months ago) by ryo
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

fix printing capabilities and enabled flags.

no need to skip a prefix "0x" of output of snprintb.
ifconfig expect the result of snprintb has "0x" prefix, but snprintb(3) specification has changed
so that if 0 is passed, it prints "0" instead of "0x0". (common/lib/libutil/snprintb.c r1.22)

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 16 10:33:17 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

 Whitespace fix.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 17 03:26:24 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: 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
Changes since 1.5: +2 -4 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Wed Jul 17 03:09:16 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

 KNF. No functional change.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 8 03:04:15 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

 Add "ifconfig [-]vlan-hwtagging" to enable/disable VLAN hardware tagging
offload function. It's useful to see Ethernet frame's VLAN tag by
disabling with "ifconfig fooX -vlan-hwtagging" and "tcpdump -e -i fooX".

Revision 1.2.34.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:34 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.2: +93 -2 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.2.32.1 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:29 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.2: +93 -2 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 21 08:58:08 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.2: +93 -2 lines
Diff to previous 1.2 (colored)

 Add SIOCSETHERCAP. It's used to change ec_capenable.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:33 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.2.4.1: +99 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with (a bit old) head

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:48 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.2.1: +99 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

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

Revision 1.2.4.1, Thu Nov 1 13:43:23 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -99 lines
FILE REMOVED

file ether.c was added on branch yamt-pagecache on 2013-01-16 05:32:33 +0000

Revision 1.2.2.1, Thu Nov 1 13:43:23 2012 UTC (11 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -99 lines
FILE REMOVED

file ether.c was added on branch tls-maxphys on 2012-11-20 03:00:48 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 1 13:43:23 2012 UTC (11 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, phil-wifi, pgoyette-compat
Changes since 1.1: +19 -8 lines
Diff to previous 1.1 (colored)

Use snprintb_m(3) to split flags/capabilities/enabled across multiple
output lines.

As discussed on current-users

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 31 10:17:34 2012 UTC (11 years, 5 months ago) by msaitoh
Branch: MAIN

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

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>