summaryrefslogtreecommitdiffstats
path: root/sbin/etherswitchcfg
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r261500brueffer2014-02-111-4/+36
| | | | | | Add a license (1) and do some cleanup. Approved by: Stefan Bethke (original author, by private mail) (1)
* Improve grammar and readability.hiren2013-09-201-3/+3
| | | | | Reviewed by: sbruno, loos Approved by: re (gjb)
* Fix a range check and a display string.hiren2013-09-201-2/+2
| | | | | | Reviewed by: loos Approved by: sbruno (mentor, implicit) Approved by: re (glebius)
* Typo in strtol(3).pluknet2013-08-301-1/+1
| | | | Noticed by: bde
* Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.loos2013-07-231-1/+2
| | | | | | | | | | | | | | This fix the case when etherswitch is printing the information of port 0 vlan group (in port based vlan mode) with no member ports. Add the ETHERSWITCH_VID_VALID support to ip17x driver. Add the ETHERSWITCH_VID_VALID support to rt8366 driver. arswitch doesn't need to be updated as it doesn't support vlans management yet. Approved by: adrian (mentor)
* Fix the usage error message. The valid range is up to max. vlan - 1 since ↵loos2013-07-231-1/+3
| | | | | | vlangroups starts at 0. Approved by: adrian (mentor)
* mdoc: new sentence, new line.joel2013-05-081-2/+4
|
* Add vlan configuration support to etherswitchcfg.adrian2013-05-082-10/+242
| | | | | | | | | | This adds the support to the config keyword (vlan operation mode), ports flags, prints the vlan mode and vlan capabilities. It also adds some basic information to usage() and support the keyword 'help' as a shortcut to usage(). The manual page is also updated with the new options. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Convert over the etherswitch framework to use VLAN IDs per port, ratheradrian2013-04-222-10/+11
| | | | | | | | | | | | | | | | | | | | | than VLAN groups. Some chips (eg this rtl8366rb) has a VLAN group per port - you first define a set of VLANs in a vlan group, then you assign a VLAN group to a port. Other chips (eg the AR8xxx switch chips) have a VLAN ID array per port - there's no group per se, just a list of vlans that can be configured. So for now, the switch API will use the latter and rely on drivers doing the heavy lifting if one wishes to use the VLAN group method. Maybe later on both can be supported. PR: kern/177878 PR: kern/177873 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* etherswitchcfg(8) crashes when you don't set vlangroup members.adrian2013-04-221-2/+5
| | | | | | | Fix this to require an argument. PR: kern/177872 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
* Initialise this to zero before using it to configure the vlangroupadrian2013-04-221-0/+1
| | | | | | | information. PR: kern/177871 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
* Fix warnings found by -Wmising-variable-declarations.ed2012-10-192-4/+4
| | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+2
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Remove end of line whitespace.joel2012-05-121-1/+1
|
* Add etherswitchcfg.adrian2012-05-114-0/+1446
Submitted by: Stefan Bethke <stb@lassitu.de>
OpenPOWER on IntegriCloud