summaryrefslogtreecommitdiff
path: root/src/print_eth_info.c
AgeCommit message (Collapse)Author
2015-09-15Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.John Baldwin
- 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. Czarkoff
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 Daroussin
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg
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 comparisonsMats
* 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 Degroote
2012-11-15DragonFlyBSD support addedScott Tincman
2012-10-10Implement %speed for Ethernet on OpenBSD.Jasper Lievisse Adriaanse
2012-05-04- Remove some superfluous #ifdef clutter - If we're compiling on !(Linux or ↵Jasper Lievisse Adriaanse
FreeBSD), just emit a '?'.
2012-04-08add yajl compat codeMichael Stapelberg
2012-03-25Properly output JSON with libyajlMichael Stapelberg
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg
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 Lemos
2010-02-14Colorize ethernet output (patch by Peter Johnson)Michael Stapelberg
2009-10-16Implement format_up/format_down for ethernetMichael Stapelberg
2009-10-11Breaks configfiles! Major refactoring of i3status, see belowMichael Stapelberg
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.