[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.sbin / radiusctl

File: [local] / src / usr.sbin / radiusctl / Makefile (download)

Revision 1.3, Mon Feb 24 07:07:11 2020 UTC (4 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.2: +3 -3 lines

add retries and timeouts for test packets.

the most important bit of this is that the command will exit after
a timeout period. this is currently handy if you're running radiusctl
as a check from relayd, because at the moment it to get confused
about who it's children are if you run a lot of checks too rapidly.

before timeouts were added, radiusctl would wait forever for a
reply, but a reply may never arrive because networks are unreliable,
and worse, computers are unreliable and may be down for extended
periods of time.

the number of retries, the interval between retries, and the overall
wait time can be tweaked via command line arguments. the defaults
are set to something that seems reasonable if you're running a test.

ok yasuoka@

#	$OpenBSD: Makefile,v 1.3 2020/02/24 07:07:11 dlg Exp $
PROG=		radiusctl
SRCS=		radiusctl.c parser.c chap_ms.c
MAN=		radiusctl.8
CFLAGS+=	-Wall -Wextra -Wno-unused-parameter
LDADD+=		-lradius -lcrypto -levent
DPADD+=		${LIBRADIUS} ${LIBCRYPTO} ${LIBEVENT}

.include <bsd.prog.mk>