Home
last modified time | relevance | path

Searched refs:oper_states (Results 1 – 2 of 2) sorted by relevance

/external/iproute2/ip/
Dipaddress.c131 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/
Dlink.c63 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()