aboutsummaryrefslogtreecommitdiff
path: root/src/print_eth_info.c
AgeCommit message (Collapse)AuthorFilesLines
2018-08-24Added %interface to the ethernet optionsMax Christian Pohle1-4/+11
2018-07-13able to print percentageFelix Buehler1-3/+5
its now possible to have percentage before and after a variable. except for the date. But percentage with dates does not make much sense to me, so i skipped it.
2018-06-25Stop requiring CAP_NET_ADMINOlivier Gayot1-1/+0
Since the following commit in the Linux kernel tree 0fdc100bdc4b ethtool: allow non-netadmin to query settings it is no longer necessary to have the CAP_NET_ADMIN capability to query a device speed using ioctl(..., SIOCETHTOOL) in conjonction with the ETHTOOL_GSET ethtool command. The mentioned commit landed first in the 2.6.37 version of the Kernel. This version is no longer maintained nowdays. Since it is not necessary anymore, it is strongly prefered from a security standpoint to drop the CAP_NET_ADMIN capability from the binary. Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2017-12-11Add IPv6 address when IPv4 isn't available (#247)Emeric Planet1-8/+46
2016-08-14Make print_disk_info, print_eth_info and print_wireless_info compile on ↵Tommie Gannert1-1/+1
NetBSD without warnings.
2015-09-15Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.John Baldwin1-7/+13
- Don't apply IFM_SUBTYPE to the raw subtype in the description table. IFM_SUBTYPE() requires a fully populated word and was truncating values in the table when comparing resulting in false matches (notably "10GBase-KX4" for the no media case) after recent changes to add extended Ethernet media states in FreeBSD. - Explicitly check for IFM_ETHER. - Use SIOCGIFXMEDIA when present to obtain extended media states on newer kernels. - Explicitly handle "no carrier".
2015-08-06Use "color_degraded" when interface has no IPDmitrij D. Czarkoff1-1/+4
On laptops one may want to have all interfaces up in order to let network prioritization manage switching between wired and wireless connection. In such cases lack of IP address is a useful hint about currently used interface, and color-coding makes it stand out more.
2015-03-25print_eth_info: fix warnings on FreeBSDBaptiste Daroussin1-2/+4
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg1-87/+88
From here on, we’ll use clang-format to automatically format the source. This has worked well in i3, so we are introducing it for i3status.
2014-03-12Unify use of string comparisonsMats1-4/+4
* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2) * strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2) * Prefer case-insensitive comparison for options
2013-10-07Allow to print eth information on NetBSDArnaud Degroote1-2/+2
2012-11-15DragonFlyBSD support addedScott Tincman1-2/+2
2012-10-10Implement %speed for Ethernet on OpenBSD.Jasper Lievisse Adriaanse1-0/+36
2012-05-04- Remove some superfluous #ifdef clutter - If we're compiling on !(Linux or ↵Jasper Lievisse Adriaanse1-6/+4
FreeBSD), just emit a '?'.
2012-04-08add yajl compat codeMichael Stapelberg1-0/+2
2012-03-25Properly output JSON with libyajlMichael Stapelberg1-22/+17
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg1-0/+9
This hardcodes all the JSON parts. Strings are not properly escaped currently. The best/easiest way to fix this is by actually using libyajl.
2010-07-04Support customized colors.Fernando Tarlá Cardoso Lemos1-2/+2
2010-02-14Colorize ethernet output (patch by Peter Johnson)Michael Stapelberg1-0/+6
2009-10-16Implement format_up/format_down for ethernetMichael Stapelberg1-2/+7
2009-10-11Breaks configfiles! Major refactoring of i3status, see belowMichael Stapelberg1-0/+95
We finally switched to libconfuse for a configuration file format which does not require much work for the programmer nor for the user. Plus, it avoids the Not-Invented-Here syndrome of yet another config file format. Furthermore, as a consequence of providing format strings for every "module" (ipv6, wireless, …), we directly print the output and thus we needed to drop support for wmii. This allowed us to get rid of quite some complexity. Documentation about the new configuration file and options will follow. This commit is the beginning of what will be i3status v2.0.