Skip to content

Commit 26957f5

Browse files
author
olevole
committed
fix checkip for dfly
1 parent d1b94b3 commit 26957f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/dhcpd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,16 @@ for tmpnet in ${nodeippool}; do
716716
_ret=0
717717
fi
718718
;;
719+
DragonFly)
720+
checkip ip="${tmpip}" check=1
721+
_ret=$?
722+
if [ ${_ret} -eq 2 ]; then
723+
# found
724+
_ret=1
725+
else
726+
_ret=0
727+
fi
728+
;;
719729
*)
720730
${miscdir}/chk_arp_byip --pingnum=1 --pingtimeout=0.001 --ip=${tmpip}
721731
_ret=$?

0 commit comments

Comments
 (0)