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()
62 else if (!xtables_strtoui(cb->arg, NULL, &led->delay, 0, UINT32_MAX)) in LED_parse()
68 led->always_blink = 1; in LED_parse()
76 const struct xt_led_info *led = (void *)target->data; in LED_print() local
77 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */ in LED_print()
88 if (led->delay == -1) in LED_print()
91 printf(" led-delay:%dms", led->delay); in LED_print()
93 if (led->always_blink) in LED_print()
99 const struct xt_led_info *led = (void *)target->data; in LED_save() local
100 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */ in LED_save()
112 if (led->delay > 0) in LED_save()
113 printf(" --led-delay %d", led->delay); in LED_save()
114 else if (led->delay == -1) in LED_save()
118 if (led->always_blink) in LED_save()