Home | History | Annotate | Download | only in ifconfig
History log of /src/sbin/ifconfig/ether.c
RevisionDateAuthorComments
 1.9  07-Jun-2020  thorpej Update for proplib(3) API changes.
 1.8  02-Jan-2020  ryo 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)
 1.7  16-Aug-2019  msaitoh Whitespace fix.
 1.6  17-Jul-2019  msaitoh 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.
 1.5  17-Jul-2019  msaitoh KNF. No functional change.
 1.4  08-Jul-2019  msaitoh 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".
 1.3  21-Dec-2018  msaitoh Add SIOCSETHERCAP. It's used to change ec_capenable.
 1.2  01-Nov-2012  pgoyette branches: 1.2.2; 1.2.4; 1.2.32; 1.2.34;
Use snprintb_m(3) to split flags/capabilities/enabled across multiple
output lines.

As discussed on current-users
 1.1  31-Oct-2012  msaitoh 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
 1.2.34.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2.34.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.2.34.1  10-Jun-2019  christos Sync with HEAD
 1.2.32.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.2.4.2  16-Jan-2013  yamt sync with (a bit old) head
 1.2.4.1  01-Nov-2012  yamt file ether.c was added on branch yamt-pagecache on 2013-01-16 05:32:33 +0000
 1.2.2.2  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.2.2.1  01-Nov-2012  tls file ether.c was added on branch tls-maxphys on 2012-11-20 03:00:48 +0000

RSS XML Feed