@@ -17,19 +17,21 @@ function HELP {
17
17
echo " 2) With switches, as described below"
18
18
echo " "
19
19
echo -e " ${REV} Basic usage:${NORM} ${BOLD} $SCRIPT [-h] [--pf-ring] [--pf-ring-home] [--dpdk] [--dpdk-home] [--use-immediate-mode] ${NORM} " \\ n
20
- echo " The following switches are recognized. "
21
- echo " ${REV} --default${NORM} --Setup PcapPlusPlus for Linux without PF_RING or DPDK. In this case you must not set --pf-ring or --dpdk"
20
+ echo " The following switches are recognized: "
21
+ echo " ${REV} --default${NORM} --Setup PcapPlusPlus for Linux without PF_RING or DPDK. In this case you must not set --pf-ring or --dpdk"
22
22
echo " "
23
- echo " ${REV} --pf-ring${NORM} --Setup PcapPlusPlus with PF_RING. In this case you must also set --pf-ring-home"
24
- echo " ${REV} --pf-ring-home${NORM} --Sets PF_RING home directory. Use only when --pf-ring is set"
23
+ echo " ${REV} --pf-ring${NORM} --Setup PcapPlusPlus with PF_RING. In this case you must also set --pf-ring-home"
24
+ echo " ${REV} --pf-ring-home${NORM} --Sets PF_RING home directory. Use only when --pf-ring is set"
25
25
echo " "
26
- echo " ${REV} --dpdk${NORM} --Setup PcapPlusPlus with DPDK. In this case you must also set --dpdk-home"
27
- echo " ${REV} --dpdk-home${NORM} --Sets DPDK home directoy. Use only when --dpdk is set"
28
- echo " ${REV} --use-immediate-mode --Sets pcap_set_immediate_mode to 1"
26
+ echo " ${REV} --dpdk${NORM} --Setup PcapPlusPlus with DPDK. In this case you must also set --dpdk-home"
27
+ echo " ${REV} --dpdk-home${NORM} --Sets DPDK home directoy. Use only when --dpdk is set"
29
28
echo " "
30
- echo -e " ${REV} -h|--help${NORM} --Displays this help message and exits. No further functions are performed." \\ n
29
+ echo " ${REV} --use-immediate-mode${NORM} --Use libpcap immediate mode which enables getting packets as fast as possible (supported on libpcap>=1.5)"
30
+ echo " "
31
+ echo -e " ${REV} -h|--help${NORM} --Displays this help message and exits. No further actions are performed" \\ n
31
32
echo -e " Examples:"
32
33
echo -e " ${BOLD} $SCRIPT --default${NORM} "
34
+ echo -e " ${BOLD} $SCRIPT --use-immediate-mode${NORM} "
33
35
echo -e " ${BOLD} $SCRIPT --pf-ring --pf-ring-home /home/myuser/PF_RING${NORM} "
34
36
echo -e " ${BOLD} $SCRIPT --dpdk --dpdk-home /home/myuser/dpdk-2.1.0${NORM} "
35
37
echo " "
@@ -144,9 +146,10 @@ else
144
146
fi
145
147
shift 2 ;;
146
148
147
- --use-immediate-mode)
148
- HAS_PCAP_IMMEDIATE_MODE=1
149
- shift ;;
149
+ # enable libpcap immediate mode
150
+ --use-immediate-mode)
151
+ HAS_PCAP_IMMEDIATE_MODE=1
152
+ shift ;;
150
153
151
154
# help switch - display help and exit
152
155
-h|--help)
0 commit comments