diff --git a/include/tests_networking b/include/tests_networking index 6cd43c58..cd917c51 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -310,6 +310,16 @@ fi FIND2="" ;; + OpenBSD) + if [ ! "${NETSTATBINARY}" = "" ]; then + # UDP + FIND=`${NETSTATBINARY} -an 2> /dev/null | grep "^udp" | awk '{ print $4"|"$1"||" }'` + # TCP + FIND2=`${NETSTATBINARY} -an 2> /dev/null | grep "^tcp" | awk '{ if($6=="LISTEN") { print $4"|"$1"||" }}'` + else + ReportException "${TEST_NO}:3" "netstat missing to gather listening ports" + fi + ;; *) # Got this exception? Provide your details and output of netstat or any other tool to determine this information. ReportException "${TEST_NO}:2" "Unclear what method to use, to determine listening port information"