Lines Matching refs:led
51 struct xt_led_info *led = cb->data; in LED_parse() local
56 strcpy(led->id, "netfilter-"); in LED_parse()
57 strcat(led->id, cb->arg); in LED_parse()
61 led->delay = -1; in LED_parse()
63 led->delay = strtoul(cb->arg, NULL, 0); in LED_parse()
66 led->always_blink = 1; in LED_parse()
74 const struct xt_led_info *led = (void *)target->data; in LED_print() local
75 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */ in LED_print()
86 if (led->delay == -1) in LED_print()
89 printf(" led-delay:%dms", led->delay); in LED_print()
91 if (led->always_blink) in LED_print()
97 const struct xt_led_info *led = (void *)target->data; in LED_save() local
98 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */ in LED_save()
110 if (led->delay > 0) in LED_save()
111 printf(" --led-delay %d", led->delay); in LED_save()
112 else if (led->delay == -1) in LED_save()
116 if (led->always_blink) in LED_save()