ipsec_dump_policy.c (84208) | ipsec_dump_policy.c (92917) |
---|---|
1/* $KAME: ipsec_dump_policy.c,v 1.11 2000/05/07 05:29:47 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/* $KAME: ipsec_dump_policy.c,v 1.11 2000/05/07 05:29:47 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/lib/libipsec/ipsec_dump_policy.c 84208 2001-09-30 21:43:45Z dillon $"); | 33__FBSDID("$FreeBSD: head/lib/libipsec/ipsec_dump_policy.c 92917 2002-03-21 23:54:04Z obrien $"); |
34 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/socket.h> 38 39#include <netkey/key_var.h> 40#include <netinet/in.h> 41#include <netinet6/ipsec.h> --- 14 unchanged lines hidden (view full) --- 56static const char *ipsp_policy_strs[] = { 57 "discard", "none", "ipsec", "entrust", "bypass", 58}; 59 60static char *ipsec_dump_ipsecrequest __P((char *, size_t, 61 struct sadb_x_ipsecrequest *, size_t)); 62static int set_addresses __P((char *, size_t, struct sockaddr *, 63 struct sockaddr *)); | 34 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/socket.h> 38 39#include <netkey/key_var.h> 40#include <netinet/in.h> 41#include <netinet6/ipsec.h> --- 14 unchanged lines hidden (view full) --- 56static const char *ipsp_policy_strs[] = { 57 "discard", "none", "ipsec", "entrust", "bypass", 58}; 59 60static char *ipsec_dump_ipsecrequest __P((char *, size_t, 61 struct sadb_x_ipsecrequest *, size_t)); 62static int set_addresses __P((char *, size_t, struct sockaddr *, 63 struct sockaddr *)); |
64static char *set_address __P((char *, size_t, struct sockaddr *)); | 64static char *set_address(char *, size_t, struct sockaddr *); |
65 66/* 67 * policy is sadb_x_policy buffer. 68 * Must call free() later. 69 * When delimiter == NULL, alternatively ' '(space) is applied. 70 */ 71char * 72ipsec_dump_policy(policy, delimiter) --- 237 unchanged lines hidden --- | 65 66/* 67 * policy is sadb_x_policy buffer. 68 * Must call free() later. 69 * When delimiter == NULL, alternatively ' '(space) is applied. 70 */ 71char * 72ipsec_dump_policy(policy, delimiter) --- 237 unchanged lines hidden --- |