summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* Add VHT power envelope parsing to ifconfig.adrian2016-04-191-1/+36
|
* Use nitems() from sys/param.h.araujo2016-04-192-7/+4
| | | | MFC after: 2 weeks.
* User NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | gethostbyname(3) will return NULL in case of an error. MFC after: 2 weeks.
* MFHgjb2016-04-161-1/+1
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-151-1/+1
| |
* | MFHgjb2016-04-042-26/+97
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Add parsing for AP channel report IE.adrian2016-03-181-3/+23
| | | | | | | | | | | | | | | | | | | | | | Eg: TP-LINK_D579 60:e3:27:e1:d5:79 10 54M -72:-95 100 EP SSID<TP-LINK_D579> RATES<B2,B4,B11,B22,18,36,72,108> DSPARMS<10> XRATES<12,24,48,96> COUNTRY<US 1-11,20> APCHANREP<class 32, chan:[1,2,3,4,5,6,7]> APCHANREP<class 33, chan:[5,6,7,8,9,10,11]> TIM<050400010000> ERP<0x4> HTCAP<cap 0x106e param 0x17 mcsset[0-15,32] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 10, 7,0,0,0 basicmcs[]> ???<4a0e14000a002c01c800140005001900> RSN<v1 mc:AES-CCMP uc:AES-CCMP km:8021X-PSK> WME<qosinfo 0x0 BE[aifsn 3 cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> BSSLOAD<sta count 0, chan load 11, aac 18> VEN<dd07000c4300000000>
| * Remove duplicate LE_READ_4() definition.adrian2016-03-181-8/+0
| | | | | | | | | | | | Tested: * typed 'make', seemed to work.
| * Decode VHTCAP, VHTINFO and BSSLOAD.adrian2016-03-181-0/+62
| | | | | | | | | | | | BSSLOAD is based on work from Idwer Vollering. Obtained from: Idwer Vollering <vidwer@gmail.com> (bssload)
| * Display the VHT IE names.adrian2016-03-161-0/+3
| | | | | | | | | | | | | | | | | | | | This doesn't decode the IEs just yet. Tested: * Archer c2 AP: TP-LINK_D579_5G 60:e3:27:e1:d5:78 44 54M 26:0 100 EP SSID<TP-LINK_D579_5G> RATES<B12,18,B24,36,B48,72,96,108> DSPARMS<44> COUNTRY<US 36-48,20> TIM<050400010000> HTCAP<cap 0x6e param 0x16 mcsset[0-7,32] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 44, 5,0,0,0 basicmcs[]> VHTCAP<bf0c2000c031feff2401feff2401> VHTOPMODE<c005012a00feff> RSN<v1 mc:AES-CCMP uc:AES-CCMP km:8021X-PSK> WME<qosinfo 0x0 BE[aifsn 3 cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> BSSLOAD<0b05000001127a> VEN<dd07000c4300000000>
| * Improve detection of extended QSFP diagnostics.hselasky2016-03-151-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | The standards in the QSFP diagnostics area are not clear when the additional measurements are present or not. Use a valid temperature reading as an indicator for the presence of voltage and TX/RX power measurements. MFC after: 1 week Sponsored by: Mellanox Technologies Tested by: Netflix Differential Revision: https://reviews.freebsd.org/D5391 Reviewed by: gallatin
* | MFHgjb2016-03-141-0/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * [net80211] handle unlisted information elements.adrian2016-03-141-0/+2
| | | | | | | | | | | | | | This displays the IE names in ifconfig but it doesn't yet decode things. Submitted by: Idwer Vollering <vidwer@gmail.com> Differential Revision: https://reviews.freebsd.org/D3782
* | MFHgjb2016-03-101-0/+11
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-02-223-2/+24
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * ifconfig(8): can't use 'name' or 'description' when creating interface with ↵kp2016-02-203-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auto numbering If one does 'ifconfig tap create name blah', it will return error because the 'name' command doesn't properly populate the request sent to ioctl(...). The 'description' command has the same bug, and is also fixed with this patch. If one does 'ifconfig tap create mtu 9000 name blah', it DOES work, but 'tap0' (or other sequence number) is echoed, instead of the expected 'blah'. (assuming the name change actually succeeded) Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com> Differential Revision: https://reviews.freebsd.org/D5341
* | Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Add an IOCTL rr_limit to let users fine tuning the number of packets to bearaujo2016-01-231-0/+16
| | | | | | | | | | | | | | | | | | | sent using roundrobin protocol and set a better granularity and distribution among the interfaces. Tuning the number of packages sent by interface can increase throughput and reduce unordered packets as well as reduce SACK. Example of usage: # ifconfig bge0 up # ifconfig bge1 up # ifconfig lagg0 create # ifconfig lagg0 laggproto roundrobin laggport bge0 laggport bge1 \ 192.168.1.1 netmask 255.255.255.0 # ifconfig lagg0 rr_limit 500 Reviewed by: thompsa, glebius, adrian (old patch) Approved by: bapt (mentor) Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D540
* Add SFF-8024 Extended Specification Compliancemelifaro2015-12-281-4/+44
| | | | | | Submitted by: markb_mellanox.com MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4666
* Reduce overlinkingbapt2015-12-241-1/+1
| | | | ifconfig does not need libbsdxml and libsbuf only lib80211 needs it
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-011-0/+1
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* Convert ifconfig to use lib80211.adrian2015-11-304-864/+11
| | | | | | * remove regdomain.[ch] - it's now part of lib80211. * convert ifieee80211.c to use the ioctl routines in lib80211 and implement the "error? exit" wrapper behaviour the callers expect.
* [ifconfig] handle IBSS mediatype correctly.adrian2015-11-261-0/+2
| | | | | | Right now net80211 is configured as type IBSS but then treats it as mediatype ADHOC. This doesn't change that; it just correctly handles being given a mediatype of IBSS.
* Add sysctl to control LACP strict compliance defaultsmh2015-11-061-1/+16
| | | | | | | | | | | | | Add net.link.lagg.lacp.default_strict_mode which defines the default value for LACP strict compliance for created lagg devices. Also: * Add lacp_strict option to ifconfig(8). * Fix lagg(4) creation examples. * Minor style(9) fix. MFC after: 1 week
* ifconfig: fix padding for '<ifname> scan' command outputavos2015-11-061-2/+2
| | | | | | | (S:N and beacon interval fields). Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4085
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-6/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Replace N #defines with nitems to simplify ifconfig code slightlyngie2015-09-2715-59/+23
| | | | MFC after: 1 week
* Make ifconfig always exit with an error code if an important ioctl failsallanjude2015-09-161-9/+6
| | | | | | | | | | | | PR: 203062 Arm Twisting by: Kristof Provost Reviewed by: kp Approved by: bapt (mentor) MFC after: 2 weeks Relnotes: yes Sponsored by: ScaleEngine Inc. Sponsored by: vBSDCon Differential Revision: https://reviews.freebsd.org/D3644
* - Remove GIF_{SEND,ACCEPT}_REVETHIP.hrs2015-09-101-10/+3
| | | | | | - Simplify EADDRNOTAVAIL and EAFNOSUPPORT conditions. MFC after: 3 days
* Make LAG LACP fast timeout tunable through IOCTL.hiren2015-08-122-1/+9
| | | | | | | | Differential Revision: D3300 Submitted by: LN Sundararajan <lakshmi.n at msystechnologies> Reviewed by: wblock, smh, gnn, hiren, rpokala at panasas MFC after: 2 weeks Sponsored by: Panasas
* Add META_MODE support.sjg2015-06-131-0/+23
|\ | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-2715-174/+474
| |\ | |/ |/|
| * Updated/new dependenciessjg2014-11-191-0/+1
| |
| * Merge from head@274682sjg2014-11-199-30/+1732
| |\
| * \ Merge head from 7/28sjg2014-08-192-25/+53
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2014-05-083-140/+1
| |\ \ \
| * | | | New/updated dependenciessjg2014-05-051-1/+0
| | | | |
| * | | | Merge headsjg2014-04-288-377/+146
| |\ \ \ \
| * \ \ \ \ Merge from headsjg2013-09-053-7/+11
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | |
| * | | | | | Sync with HEAD.obrien2013-02-085-67/+39
| |\ \ \ \ \ \
| | \ \ \ \ \ \
| | \ \ \ \ \ \
| | \ \ \ \ \ \
| | \ \ \ \ \ \
| *---. \ \ \ \ \ \ Sync from headsjg2012-11-043-11/+5
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | * Update SFF-8024 Identifier constants.melifaro2015-05-161-4/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix SFF_8436_CC_EXT in SFF-8436 memory map. * Add SFF-8436/8636 bits (revision compliance/nominal bitrate). * Do some small style/type fixes.
OpenPOWER on IntegriCloud