Searched refs:oper_states (Results 1 – 2 of 2) sorted by relevance
/external/iproute2/ip/ |
D | ipaddress.c | 131 static const char *oper_states[] = { variable 138 if (state >= sizeof(oper_states)/sizeof(oper_states[0])) in print_operstate() 142 if (strcmp(oper_states[state], "UP") == 0) in print_operstate() 143 color_fprintf(f, COLOR_OPERSTATE_UP, "%-14s ", oper_states[state]); in print_operstate() 144 else if (strcmp(oper_states[state], "DOWN") == 0) in print_operstate() 145 color_fprintf(f, COLOR_OPERSTATE_DOWN, "%-14s ", oper_states[state]); in print_operstate() 147 fprintf(f, "%-14s ", oper_states[state]); in print_operstate() 150 if (strcmp(oper_states[state], "UP") == 0) in print_operstate() 151 color_fprintf(f, COLOR_OPERSTATE_UP, "%s ", oper_states[state]); in print_operstate() 152 else if (strcmp(oper_states[state], "DOWN") == 0) in print_operstate() [all …]
|
/external/iproute2/bridge/ |
D | link.c | 63 static const char *oper_states[] = { variable 72 if (state >= sizeof(oper_states)/sizeof(oper_states[0])) in print_operstate() 75 fprintf(f, "state %s ", oper_states[state]); in print_operstate()
|