|
Lines 12-20
Link Here
|
| 12 |
# flow_fanout_enable (bool): Set it to "YES" to enable flow-fanout daemon. |
12 |
# flow_fanout_enable (bool): Set it to "YES" to enable flow-fanout daemon. |
| 13 |
# Set to "NO" by default. |
13 |
# Set to "NO" by default. |
| 14 |
# flow_fanout_ip (str): IP address to bind to |
14 |
# flow_fanout_ip (str): IP address to bind to |
| 15 |
# Default to "0.0.0.0" |
15 |
# Default is "0.0.0.0" |
| 16 |
# flow_fanout_remoteip (str): IP address to accept flows from |
16 |
# flow_fanout_remoteip (str): IP address to accept flows from |
| 17 |
# Default to "0.0.0.0" or all IPs |
17 |
# Default is "0.0.0.0" or all IPs |
| 18 |
# flow_fanout_port (int): Port to accept flow data on |
18 |
# flow_fanout_port (int): Port to accept flow data on |
| 19 |
# Default is "8787" |
19 |
# Default is "8787" |
| 20 |
# flow_fanout_export (str): Where to send flows to. Default is "0/0/8788" |
20 |
# flow_fanout_export (str): Where to send flows to. Default is "0/0/8788" |
|
Lines 36-42
Link Here
|
| 36 |
# with parameters taken from appropriate |
36 |
# with parameters taken from appropriate |
| 37 |
# flow_fanout_PROFILENAME_xxx variables. For |
37 |
# flow_fanout_PROFILENAME_xxx variables. For |
| 38 |
# unspecified parameters flow_fanout_xxx |
38 |
# unspecified parameters flow_fanout_xxx |
| 39 |
# varialbes will be used. |
39 |
# variables will be used. |
| 40 |
|
40 |
|
| 41 |
. /etc/rc.subr |
41 |
. /etc/rc.subr |
| 42 |
|
42 |
|
|
Lines 73-78
Link Here
|
| 73 |
done |
73 |
done |
| 74 |
} |
74 |
} |
| 75 |
|
75 |
|
|
|
76 |
status_profiles() |
| 77 |
{ |
| 78 |
unset status_cmd |
| 79 |
for _profile in ${flow_fanout_profiles}; do |
| 80 |
setup_profile_vars $_profile |
| 81 |
run_rc_command "${rc_arg}" |
| 82 |
done |
| 83 |
} |
| 84 |
|
| 76 |
load_rc_config $name |
85 |
load_rc_config $name |
| 77 |
|
86 |
|
| 78 |
: ${flow_fanout_enable="NO"} |
87 |
: ${flow_fanout_enable="NO"} |
|
Lines 99-104
Link Here
|
| 99 |
if [ "${flow_fanout_profiles}" ]; then |
108 |
if [ "${flow_fanout_profiles}" ]; then |
| 100 |
start_cmd="start_profiles" |
109 |
start_cmd="start_profiles" |
| 101 |
stop_cmd="stop_profiles" |
110 |
stop_cmd="stop_profiles" |
|
|
111 |
status_cmd="status_profiles" |
| 102 |
fi |
112 |
fi |
| 103 |
|
113 |
|
| 104 |
run_rc_command "$cmd" |
114 |
run_rc_command "$cmd" |