aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ipaddress.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r--networking/libiproute/ipaddress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index c6115b356..c5e6e4ea5 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -54,8 +54,8 @@ static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown)
54 fprintf(fp, "<"); 54 fprintf(fp, "<");
55 flags &= ~IFF_RUNNING; 55 flags &= ~IFF_RUNNING;
56#define _PF(f) if (flags&IFF_##f) { \ 56#define _PF(f) if (flags&IFF_##f) { \
57 flags &= ~IFF_##f ; \ 57 flags &= ~IFF_##f ; \
58 fprintf(fp, #f "%s", flags ? "," : ""); } 58 fprintf(fp, #f "%s", flags ? "," : ""); }
59 _PF(LOOPBACK); 59 _PF(LOOPBACK);
60 _PF(BROADCAST); 60 _PF(BROADCAST);
61 _PF(POINTOPOINT); 61 _PF(POINTOPOINT);
@@ -74,7 +74,7 @@ static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown)
74#endif 74#endif
75 _PF(UP); 75 _PF(UP);
76#undef _PF 76#undef _PF
77 if (flags) 77 if (flags)
78 fprintf(fp, "%x", flags); 78 fprintf(fp, "%x", flags);
79 if (mdown) 79 if (mdown)
80 fprintf(fp, ",M-DOWN"); 80 fprintf(fp, ",M-DOWN");
@@ -636,9 +636,9 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
636 "anycast", "scope", "dev", "label", "local", 0 }; 636 "anycast", "scope", "dev", "label", "local", 0 };
637 struct rtnl_handle rth; 637 struct rtnl_handle rth;
638 struct { 638 struct {
639 struct nlmsghdr n; 639 struct nlmsghdr n;
640 struct ifaddrmsg ifa; 640 struct ifaddrmsg ifa;
641 char buf[256]; 641 char buf[256];
642 } req; 642 } req;
643 char *d = NULL; 643 char *d = NULL;
644 char *l = NULL; 644 char *l = NULL;