ClickImage: test.click

File test.click, 788 bytes (added by mikeryan, 8 years ago)

example click configuration

Line 
1// test.click
2 
3// This configuration should print this line five times:
4// ok:   40 | 45000028 00000000 401177c3 01000001 02000002 13691369
5 
6// Run it at user level with
7// 'click test.click'
8 
9// Run it in the Linux kernel with
10// 'click-install test.click'
11// Messages are printed to the system log (run 'dmesg' to see them, or look
12// in /var/log/messages), and to the file '/click/messages'.
13 
14InfiniteSource(DATA \<00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
1545 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01
1602 00 00 02  13 69 13 69  00 14 d6 41  55 44 50 20
1770 61 63 6b  65 74 21 0a>, LIMIT 5, STOP true)
18    -> Strip(14)
19    -> Align(4, 0)    // in case we're not on x86
20    -> CheckIPHeader(BADSRC 18.26.4.255 2.255.255.255 1.255.255.255)
21        -> Print(ok)
22    -> Discard;