summaryrefslogtreecommitdiff
path: root/src/network/networkctl.c
AgeCommit message (Collapse)Author
2015-01-01networkctl: avoid potential use of unitialized variablesZbigniew Jędrzejewski-Szmek
Those values are based on a file we read from disk, so we should verify everything we receive, and make sure everything we print is sensible. Also, print fractional seconds for TTL.
2015-01-01networkctl: remove unused variableZbigniew Jędrzejewski-Szmek
2015-01-01network: fix scanf/printf formatZbigniew Jędrzejewski-Szmek
usec_t is defined as 64 bit wide, but long is 32 bit on many archs.
2014-12-31networkctl: fix strappend() error checkingDavid Herrmann
Make sure to test the right variable for NULL.
2014-12-19networkctl: lldp - respect arg_legendTom Gundersen
2014-12-19LLDP: Add support for networkctlSusant Sahani
2014-12-19networkctl: port to verbs helperTom Gundersen
2014-12-15networkctl: port from libudev to sd-hwdbTom Gundersen
2014-12-12networkctl: remove unused variableThomas Hindoe Paaboel Andersen
2014-12-12networkctl: also draw a nice unicode cirlce when "networkctl status" is run ↵Lennart Poettering
without parameters
2014-12-12networkctl: show interface names next to IP addresses if we dump adresses ↵Lennart Poettering
from all interfaces
2014-12-12networkctl: also show gateway address when "networkctl status" without ↵Lennart Poettering
further arguments is passed
2014-12-12networkctl: show MAC address OUI vendor next to MAC addressesLennart Poettering
2014-12-04networkctl: use the shared functions for enumerating the local gatewaysTom Gundersen
2014-12-04rtnl: when querying local addresses and gateways, take address family into ↵Lennart Poettering
account
2014-12-03networkctl: remove unused variableThomas Hindoe Paaboel Andersen
2014-12-03networkd: fix typoTorstein Husebø
V2: found another one
2014-12-02shared: add format helpers for printing MAC addressesTom Gundersen
Use these in networctl.
2014-12-02networkctl: print the Gateway in the status outputTom Gundersen
This is the IP address of the default route on the link, if present. A description is printed when available (the manufacturer of the gateway NIC based on its MAC address). In the future we should prefer LLDP information over MAC info.
2014-11-28treewide: another round of simplificationsMichal Schmidt
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno + return simplifications".
2014-11-28treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt
If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments.
2014-11-28treewide: yet more log_*_errno + return simplificationsMichal Schmidt
Using: find . -name '*.[ch]' | while read f; do perl -i.mmm -e \ 'local $/; local $_=<>; s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg; print;' $f done And a couple of manual whitespace fixups.
2014-11-28treewide: no need to negate errno for log_*_errno()Michal Schmidt
It corrrectly handles both positive and negative errno values.
2014-11-28treewide: auto-convert the simple cases to log_*_errno()Michal Schmidt
As a followup to 086891e5c1 "log: add an "error" parameter to all low-level logging calls and intrdouce log_error_errno() as log calls that take error numbers", use sed to convert the simple cases to use the new macros: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/' Multi-line log_*() invocations are not covered. And we also should add log_unit_*_errno().
2014-09-08networkctl: show the link file applied to each linkTom Gundersen
2014-09-08networkctl: show the network file applied to each linkTom Gundersen
2014-08-28networkctl: do not mix dns and ntp serversZbigniew Jędrzejewski-Szmek
2014-08-16networkctl: use safe_qsort in case no links are presentThomas Hindoe Paaboel Andersen
Unlikely to happen but still...
2014-08-15networkctl: show acquired system domainsLennart Poettering
2014-08-15networkctl: two OOM fixesLennart Poettering
2014-08-15sd-network: add support for wildcard domainsTom Gundersen
2014-08-15util: never use ether_ntoa(), since it formats with %x, not %02x, which ↵Lennart Poettering
makes ethernet addresses look funny
2014-08-15networkctl: increase column width for link type to 18, to accomodate for ↵Lennart Poettering
'ieee80211_radiotap'
2014-08-15networkctl: print local domain name in status outputLennart Poettering
2014-08-14networkctl: also use the same color logic when running "networkctl status" ↵Lennart Poettering
without arguments
2014-08-14networkctl: add the same color logic to "list" and "status" outputsLennart Poettering
And always put operational state first, setup state second.
2014-08-14networkctl: name setup state variable setup_stateLennart Poettering
2014-08-14networkctl: update column header to new 'setup' state namingLennart Poettering
2014-08-13sd-networkd: rename link_get_state to link_get_setup_stateTom Gundersen
Suggested by Kay and Lennart.
2014-08-13sd-network: /_get_link_/_link_get_/Tom Gundersen
The link is the 'object', so make this in line with our usual naming convention. Suggested by Kay and Lennart.
2014-08-13networkctl: color status dump without link nameDaniel Buch
Lets mimic colored operational state dump as if link name is appiled
2014-08-13networkctl: add colors to admin state and fix alignmentTom Gundersen
It is useful to color in the admin state both to easily spot failed links, but also to quickly distinguish between links that are fully configured and in degraded mode (only IPv4LL) or in degraded mode and still waiting for DHCP.
2014-08-12networkctl: make networkctl status without link name show all local IP addressesLennart Poettering
2014-08-12networkctl: when outputing a list fo links, sort them by ifindexLennart Poettering
2014-08-12networkctl: add a bit of color to the outputLennart Poettering
2014-08-12networkctl: add new switch "-a" to "networkctl status" to show verbose ↵Lennart Poettering
status of all local links
2014-08-12networkctl: properly format MAC addressesLennart Poettering
2014-08-12sd-network: add API to output all collected system-wide NTP and DNS serversLennart Poettering
Also, output the collected information in "networkctl".
2014-08-12networkd: add minimal client tool "networkd" to query network statusLennart Poettering
In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output.