diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-11-06 10:52:28 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-11-06 10:52:28 +0000 |
commit | 0ed7cc68d000b132c08c7d2818ca200320af2e11 (patch) | |
tree | 76056a3e3ac9ead47599b7c46bf378c1081765c4 /sbin/ipsecctl/ipsecctl.h | |
parent | 53c1a0a9cb11d56e4f92519803feafce9f050ac8 (diff) |
better handling of ip addresses, prepare for v6. Partially derived from diff
by todd@. Work in progress.
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.h')
-rw-r--r-- | sbin/ipsecctl/ipsecctl.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ipsecctl.h b/sbin/ipsecctl/ipsecctl.h index 88725c879ee..7a5178b1f1d 100644 --- a/sbin/ipsecctl/ipsecctl.h +++ b/sbin/ipsecctl/ipsecctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.h,v 1.18 2005/10/30 19:50:23 hshoexer Exp $ */ +/* $OpenBSD: ipsecctl.h,v 1.19 2005/11/06 10:52:27 hshoexer Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -69,11 +69,15 @@ enum { }; struct ipsec_addr { - struct in_addr v4; union { - struct in_addr mask; - u_int32_t mask32; - } v4mask; + struct in_addr v4; + u_int32_t addr32; + } address; + union { + struct in_addr v4; + u_int32_t mask32; + } mask; + u_int8_t prefixlen; int netaddress; sa_family_t af; char *name; |