ML

led

ledd; V 1; 2010-02-09; illuminating light devices connected to computer
led-ulog; V 1; 2010-02-09; blinking leds on packets captured with ULOG

Synopsis and description

ledd [--foreground] [--no-blink] [--port=service] device ...
led-ulog [--buffer-size=size] [--foreground] [--link-speed=kbps] [--group-mask=mask] [--host=hostname] [--port=service] [--led=id]

The ledd controls LEDs (light emitting diodes) connected to the machine. Currently, only RS-232 port is supported. The daemon listens on TCP port and communicates with client programs using simple binary protocol.

The led-ulog daemon listens on linux netlink socket for packets captured with iptables' ULOG target. After receiving data it lights up a diode connected to the ledd depending on packet's length.

Downloading and compiling

Source code and manual pages: Requirements: Compiling and installing ledd:
make install
Compilingled-ulog:
gcc -Wall -s -oled-ulog led-ulog.c -larguments -lpthread

Examples

$ ledd /dev/ttyS1
$ echo -en "l\01\00\00\00B\02\00\01B\010\00\01L\00" | \
> nc6 --send-only ::1 334