View | Details | Raw Unified | Return to bug 212192 | Differences between
and this patch

Collapse All | Expand All

(-)suricata/files/suricata.in (-4 / +19 lines)
Lines 36-45 Link Here
36
[ -z "$suricata_divertport" ]	&& suricata_divertport="8000"
36
[ -z "$suricata_divertport" ]	&& suricata_divertport="8000"
37
[ -z "$suricata_netmap" ]	&& suricata_netmap="NO"
37
[ -z "$suricata_netmap" ]	&& suricata_netmap="NO"
38
38
39
if [ -n "$suricata_interface" ]; then
39
if [ "$suricata_netmap" != "NO" ]; then
40
	suricata_flags="$suricata_flags -i $suricata_interface"
40
	if [ -n "$suricata_interface" ]; then
41
elif [ "$suricata_netmap" != "NO" ]; then
41
		for i in $suricata_interface;
42
	suricata_flags="$suricata_flags --netmap"
42
		do
43
			suricata_flags="$suricata_flags --netmap=$i"
44
		done
45
	else
46
		suricata_flags="$suricata_flags --netmap"
47
	fi
48
elif [ "$suricata_pcap" != "NO" ]; then
49
	for i in $suricata_interface;
50
	do
51
		suricata_flags="$suricata_flags --pcap=$i"
52
	done
53
elif [ -n "$suricata_interface" ]; then
54
	for i in $suricata_interface;
55
	do
56
		suricata_flags="$suricata_flags -i $i"
57
	done
43
else
58
else
44
	suricata_flags="$suricata_flags -d $suricata_divertport"
59
	suricata_flags="$suricata_flags -d $suricata_divertport"
45
	info "Inline Mode on divert port $suricata_divertport (suricata_interface not defined)"
60
	info "Inline Mode on divert port $suricata_divertport (suricata_interface not defined)"

Return to bug 212192