remove any leading ::ffff: on ipv4 addresses
[spider.git] / filter / spots / K1XX.pl.issue
1 #
2 # This is an example filter for the 'isolated' node k1xx
3
4 # I give him any spots that have a spotter or a spotted in the
5 # US. In other filters on the UK side I do the opposite see 
6 # GB7DJK.pl.issue
7 ##
8 # the elements of each list are 
9 #
10 # [action, field_no, sort, possible_values, hops]
11 #
12 # where:-
13 #
14 #   action is 1 or 0 
15
16 #   the field list is:-
17 #      0 = frequency
18 #      1 = call
19 #      2 = date in unix format
20 #      3 = comment
21 #      4 = spotter
22 #      5 = spotted dxcc country
23 #      6 = spotter's dxcc country
24 #      7 = origin
25 #      8 = spotted itu
26 #      9 = spotted cq
27 #      10 = spotter's itu
28 #      11 = spotter's cq
29 #      12 = callsign of the channel on which the spot has appeared
30 #
31 #   sort is
32 #     n - numeric list of numbers e.g. [ 1,2,3 ]
33 #     r - ranges of pairs of numbers e.g. between 2 and 4 or 10 to 17 - [ 2,4, 10,17 ] 
34 #     a - an alphanumeric regex
35 #     d - the default rule
36 #
37 #   if hops is left out or zero then the existing hop count will be used as normal
38 #
39 # The spot data (in this case '15') is the used as the hop count
40 # if this is missing then the normal default applies
41 #
42
43 $in = [
44            [ 1, 5, 'n', [ 226 ], 15 ],         # dxcc country 226 is the US
45            [ 1, 6, 'n', [ 226 ], 15 ],
46        [ 0, 0, 'd' ],                  # default action (don't forward)
47 ];