aboutsummaryrefslogtreecommitdiff
path: root/sbin/etherswitchcfg
Commit message (Collapse)AuthorAgeFilesLines
* etherswitch: Add a new striptagingress port flagKornel Duleba2021-08-032-1/+9
| | | | | | | | | | | Felix switch found in LS1028A supports stripping VLAN tag on ingress, instead of egress. The striptag flag excepts the latter behaviour. Add a new flag to support the feature. Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30922
* Add the 'drop tagged' flag support for ethernet switch ports.Luiz Otavio O Souza2019-06-282-1/+9
| | | | | | | | | This is intended to drop all 802.1q tagged packets on a port. Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=349520
* Finish removing FDDI and tokenring media support.Brooks Davis2018-04-231-27/+0
| | | | | | | | | | | | | | | | | This fixes media display for 802.11 wireless devices. Software outside the base system that uses these media types and defines should use #ifdef IFM_FDDI or IFM_TOKEN to include or remove support. Reported by: zeising Reviewed by: emaste, kib, zeising Tested by: zeising Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15170 Notes: svn path=/head/; revision=332895
* Remove support for FDDI and token ring media types in userland utilities.Brooks Davis2018-04-161-8/+0
| | | | | | | | | Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15077 Notes: svn path=/head/; revision=332630
* Remove support for FDDI networks.Brooks Davis2018-04-111-27/+0
| | | | | | | | | | | | Defines in net/if_media.h remain in case code copied from ifconfig is in use elsewere (supporting non-existant media type is harmless). Reviewed by: kib, jhb Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15017 Notes: svn path=/head/; revision=332412
* [etherswitchcfg] print the switch MAC address if provided.Adrian Chadd2018-02-061-0/+7
| | | | Notes: svn path=/head/; revision=328923
* [etherswitchcfg] add atu flush and atu dump commands.Adrian Chadd2018-02-021-31/+150
| | | | | | | | Extend the argc/argv handling to include variable length commands (like flush all, flush port X). Notes: svn path=/head/; revision=328815
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Zero etherswitch_vlangroup structure before doing partial assignments.Luiz Otavio O Souza2016-11-171-2/+4
| | | | | | | | MFC after: 3 days Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=308775
* Igor suggested moving sentence to new line.Sevan Janiyan2016-10-021-6/+7
| | | | | | | | | | | | Zap traililng whitespace. PR: 212447 Approved by: bcr (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D8116 Notes: svn path=/head/; revision=306583
* [etherswitch] add LED API to the documentation and command line tool.Adrian Chadd2016-08-042-34/+85
| | | | | | | Submitted by: Dan Nelson <dnelson_1901@yahoo.com> Notes: svn path=/head/; revision=303752
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-0/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-281-4/+36
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ Merge head@256284Simon J. Gerraty2013-10-132-5/+5
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * \ \ Merge from headSimon J. Gerraty2013-09-052-24/+266
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync from headSimon J. Gerraty2012-11-042-4/+4
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Check the number of returned entries before doing any access to ifm_ulist.Luiz Otavio O Souza2014-07-051-0/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | Notes: svn path=/head/; revision=268301
* | | | | Add a license (1) and do some cleanup.Christian Brueffer2014-02-041-4/+36
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: Stefan Bethke (original author, by private mail) (1) MFC after: 1 week Notes: svn path=/head/; revision=261500
* | | | Improve grammar and readability.Hiren Panchasara2013-09-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: sbruno, loos Approved by: re (gjb) Notes: svn path=/head/; revision=255734
* | | | Fix a range check and a display string.Hiren Panchasara2013-09-201-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reviewed by: loos Approved by: sbruno (mentor, implicit) Approved by: re (glebius) Notes: svn path=/head/; revision=255730
* | | Typo in strtol(3).Sergey Kandaurov2013-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Noticed by: bde Notes: svn path=/head/; revision=255064
* | | Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.Luiz Otavio O Souza2013-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) Notes: svn path=/head/; revision=253569
* | | Fix the usage error message. The valid range is up to max. vlan - 1 since ↵Luiz Otavio O Souza2013-07-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | vlangroups starts at 0. Approved by: adrian (mentor) Notes: svn path=/head/; revision=253568
* | | mdoc: new sentence, new line.Joel Dahl2013-05-081-2/+4
| | | | | | | | | | | | Notes: svn path=/head/; revision=250387
* | | Add vlan configuration support to etherswitchcfg.Adrian Chadd2013-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 Notes: svn path=/head/; revision=250382
* | | Convert over the etherswitch framework to use VLAN IDs per port, ratherAdrian Chadd2013-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 Notes: svn path=/head/; revision=249752
* | | etherswitchcfg(8) crashes when you don't set vlangroup members.Adrian Chadd2013-04-221-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix this to require an argument. PR: kern/177872 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Notes: svn path=/head/; revision=249748
* | | Initialise this to zero before using it to configure the vlangroupAdrian Chadd2013-04-221-0/+1
| |/ |/| | | | | | | | | | | | | | | | | information. PR: kern/177871 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Notes: svn path=/head/; revision=249747
* | Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-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. Notes: svn path=/head/; revision=241720
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-1/+2
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* Remove end of line whitespace.Joel Dahl2012-05-121-1/+1
| | | | Notes: svn path=/head/; revision=235355
* Add etherswitchcfg.Adrian Chadd2012-05-114-0/+1446
Submitted by: Stefan Bethke <stb@lassitu.de> Notes: svn path=/head/; revision=235289