diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 13:37:27 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 13:37:27 +0000 |
commit | 87fbc4eb6f54a862defb1e20204b629668404f69 (patch) | |
tree | 2fd2ce8e3d02b9dedbefafc24d27c2a3cdd73286 /usr.sbin/hoststated/hce.c | |
parent | 405b2cea000c3c2e09d4f486aff444c6fca41e8a (diff) |
add a generic send/expect check using regular expression (see
regex(3)). this allows to define additional checks for other TCP
protocols.
From Pierre-Yves Ritschard (pyr at spootnik dot org)
Diffstat (limited to 'usr.sbin/hoststated/hce.c')
-rw-r--r-- | usr.sbin/hoststated/hce.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/hce.c b/usr.sbin/hoststated/hce.c index 6b291036e17..21cfe8a91aa 100644 --- a/usr.sbin/hoststated/hce.c +++ b/usr.sbin/hoststated/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.4 2006/12/25 18:12:14 reyk Exp $ */ +/* $OpenBSD: hce.c,v 1.5 2007/01/08 13:37:26 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -35,6 +35,7 @@ #include <unistd.h> #include <err.h> #include <pwd.h> +#include <regex.h> #include "hostated.h" |