summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmeric Planet <emeric.planet@datadoghq.com>2017-12-11 12:16:00 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2017-12-11 12:16:00 +0100
commit657c0498dbc4eed26df8b7af1c87ea943c2bbdf6 (patch)
tree77c22b4acd120dfcffae1c95cc4ef9ce7198b640 /src
parent53fb9b4f18cd9ee3a64be5084ccc76aeea279515 (diff)
Update comment as in #247 (#254)
Diffstat (limited to 'src')
-rw-r--r--src/print_wireless_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index d229538..c3b5270 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -489,7 +489,10 @@ void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface,
char *ipv4_address = sstrdup(get_ip_addr(interface, AF_INET));
char *ipv6_address = sstrdup(get_ip_addr(interface, AF_INET6));
- // Removing '%' and following characters from IPv6
+ /*
+ * Removing '%' and following characters from IPv6 since the interface identifier is redundant,
+ * as the output already includes the interface name.
+ */
if (ipv6_address != NULL) {
char *prct_ptr = strstr(ipv6_address, "%");
if (prct_ptr != NULL) {