aboutsummaryrefslogtreecommitdiff
path: root/src/print_eth_info.c
AgeCommit message (Collapse)AuthorFilesLines
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.