1 From 8bcc74c9e79b06d06160ae0268eed78796e772d6 Mon Sep 17 00:00:00 2001
2 From: Mats Erik Andersson <gnu@gisladisker.se>
3 Date: Sun, 2 Aug 2015 00:57:04 +0200
4 Subject: [PATCH 09/60] ifconfig: Verbose report on changed flags.
8 ifconfig/changeif.c | 24 ++++++++++++++++++++++++
9 2 files changed, 32 insertions(+)
11 diff --git a/ChangeLog b/ChangeLog
12 index 557b7a9c..6c592b72 100644
16 +2015-08-02 Mats Erik Andersson <gnu@gisladisker.se>
18 + ifconfig: Verbose report on changed flags.
20 + * ifconfig/changeif.c (set_flags): In verbose report mode,
21 + compose a message to name those flags that were set, and
22 + also those that were cleared.
24 2015-08-01 Mats Erik Andersson <gnu@gisladisker.se>
26 ifconfig: Apply flags correctly.
27 diff --git a/ifconfig/changeif.c b/ifconfig/changeif.c
28 index a040587b..beac6f6d 100644
29 --- a/ifconfig/changeif.c
30 +++ b/ifconfig/changeif.c
31 @@ -367,6 +367,30 @@ set_flags (int sfd, struct ifreq *ifr, int setflags, int clrflags)
32 error (0, errno, "SIOCSIFFLAGS failed");
38 + printf ("Setting %sflags", setflags ? "" : "no ");
43 + print_if_flags (setflags, NULL, ',');
47 + printf (" of `%s'", ifr->ifr_name);
51 + printf (", clearing `");
52 + print_if_flags (clrflags, NULL, ',');
63 2.26.0.292.g33ef6b2f38