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/buffer.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/buffer.c')
-rw-r--r-- | usr.sbin/hoststated/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/buffer.c b/usr.sbin/hoststated/buffer.c index 3abe27b1e62..547d65ed859 100644 --- a/usr.sbin/hoststated/buffer.c +++ b/usr.sbin/hoststated/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.1 2006/12/16 11:45:07 reyk Exp $ */ +/* $OpenBSD: buffer.c,v 1.2 2007/01/08 13:37:26 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -29,6 +29,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <regex.h> #include "hostated.h" |