commit | 73b49e9f481c075141e27699f629750748833b78 | [log] [tgz] |
---|---|---|
author | net[shemminger]!shemminger <net[shemminger]!shemminger> | Mon Mar 14 18:47:38 2005 +0000 |
committer | net[shemminger]!shemminger <net[shemminger]!shemminger> | Mon Mar 14 18:47:38 2005 +0000 |
tree | 35376d483ec034ebf744e2aaa5c6809b9f9226a2 | |
parent | 3b084a8333f24e6f4d5be6ec332a7f7a5c4ad698 [diff] [blame] |
Import patch ip-nocarrier (Logical change 1.161)
diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 8a49a84..92f0089 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c
@@ -77,6 +77,8 @@ void print_link_flags(FILE *fp, unsigned flags, unsigned mdown) { fprintf(fp, "<"); + if (flags & IFF_UP && !(flags & IFF_RUNNING)) + fprintf(fp, "NO-CARRIER%s", flags ? "," : ""); flags &= ~IFF_RUNNING; #define _PF(f) if (flags&IFF_##f) { \ flags &= ~IFF_##f ; \