From c68bef44c53342293741a2e38467a7a713fb4c39 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Fri, 2 Jun 2006 04:51:56 +0000 Subject: put src and dst host in dedicated structure. Make the API more compact which will soon simplify my life. --- sbin/ipsecctl/ipsecctl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sbin/ipsecctl/ipsecctl.h') diff --git a/sbin/ipsecctl/ipsecctl.h b/sbin/ipsecctl/ipsecctl.h index 6e5a367c138..c5c0e5ab7bd 100644 --- a/sbin/ipsecctl/ipsecctl.h +++ b/sbin/ipsecctl/ipsecctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.h,v 1.45 2006/06/02 03:31:20 hshoexer Exp $ */ +/* $OpenBSD: ipsecctl.h,v 1.46 2006/06/02 04:51:55 hshoexer Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer * @@ -103,6 +103,13 @@ struct ipsec_addr_wrap { struct ipsec_addr_wrap *tail; }; +struct ipsec_hosts { + struct ipsec_addr_wrap *src; + struct ipsec_addr_wrap *dst; + u_int16_t sport; + u_int16_t dport; +}; + struct ipsec_auth { char *srcid; char *dstid; -- cgit v1.2.3