Import patch ip-nocarrier

(Logical change 1.161)
This commit is contained in:
net[shemminger]!shemminger 2005-03-14 18:47:38 +00:00
parent 3b084a8333
commit 73b49e9f48
1 changed files with 2 additions and 0 deletions

View File

@ -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 ; \