From 73b49e9f481c075141e27699f629750748833b78 Mon Sep 17 00:00:00 2001 From: "net[shemminger]!shemminger" Date: Mon, 14 Mar 2005 18:47:38 +0000 Subject: [PATCH] Import patch ip-nocarrier (Logical change 1.161) --- ip/ipaddress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 8a49a84a..92f0089e 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -77,6 +77,8 @@ static void usage(void) 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 ; \