Skip to content
Snippets Groups Projects
Commit 84bdc4a7 authored by ffs-Monitor's avatar ffs-Monitor
Browse files

vality check for segment / port fixed

parent c380cc10
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ fi
SEGINFO=${SEGINFO/Address 1: 2001:2:0:711::/}
SEGMENT=$(echo $SEGINFO |cut -d' ' -f1 | cut -d':' -f2)
let PORT=SEGMENT+10040
if [ -z "$PORT" ]; then
logger -t $ME "No port"
if [ $PORT -le 10040 ]; then
logger -t $ME "Invalid Segment"
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment