Home | History | Annotate | Download | only in extensions

Lines Matching full:led

2  * libxt_LED.c - shared library add-on to iptables to add customized LED
26 {.name = "led-trigger-id", .id = O_LED_TRIGGER_ID,
30 {.name = "led-delay", .id = O_LED_DELAY, .type = XTTYPE_STRING},
31 {.name = "led-always-blink", .id = O_LED_ALWAYS_BLINK,
40 "LED target options:\n"
41 "--led-trigger-id name suffix for led trigger name\n"
42 "--led-delay ms leave the LED on for this number of\n"
44 "--led-always-blink blink on arriving packets, even if\n"
45 " the LED is already on.\n"
51 struct xt_led_info *led = cb->data;
56 strcpy(led->id, "netfilter-");
57 strcat(led->id, cb->arg);
61 led->delay = -1;
63 led->delay = strtoul(cb->arg, NULL, 0);
66 led->always_blink = 1;
74 const struct xt_led_info *led = (void *)target->data;
75 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */
77 printf(" led-trigger-id:\"");
86 if (led->delay == -1)
87 printf(" led-delay:inf");
89 printf(" led-delay:%dms", led->delay);
91 if (led->always_blink)
92 printf(" led-always-blink");
97 const struct xt_led_info *led = (void *)target->data;
98 const char *id = led->id + strlen("netfilter-"); /* trim off prefix */
100 printf(" --led-trigger-id \"");
110 if (led->delay > 0)
111 printf(" --led-delay %d", led->delay);
112 else if (led->delay == -1)
113 printf(" --led-delay inf");
116 if (led->always_blink)
117 printf(" --led-always-blink");
122 .name = "LED",