test-policy.c (171135) | test-policy.c (248314) |
---|---|
1/* $KAME: test-policy.c,v 1.16 2003/08/26 03:24:08 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: test-policy.c,v 1.16 2003/08/26 03:24:08 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/test-policy.c 171135 2007-07-01 12:08:08Z gnn $"); | 33__FBSDID("$FreeBSD: head/lib/libipsec/test-policy.c 248314 2013-03-15 09:19:19Z glebius $"); |
34 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/socket.h> 38 39#include <netinet/in.h> 40#include <net/pfkeyv2.h> 41#include <netipsec/key_debug.h> --- 28 unchanged lines hidden (view full) --- 70{ 0, "in ipsec esp / transport / 10.0.0.1-10.0.0.2" }, 71{ 0, "in ipsec esp/tunnel/::1-::2" }, 72{ 1, "in ipsec esp/tunnel/10.0.0.1-::2" }, 73{ 0, "in ipsec esp/tunnel/::1-::2/require" }, 74{ 0, "out ipsec ah/transport//use" }, 75{ 1, "out ipsec ah/transport esp/use" }, 76{ 1, "in ipsec ah/transport esp/tunnel" }, 77{ 0, "in ipsec ah/transport esp/tunnel/::1-::1" }, | 34 35#include <sys/types.h> 36#include <sys/param.h> 37#include <sys/socket.h> 38 39#include <netinet/in.h> 40#include <net/pfkeyv2.h> 41#include <netipsec/key_debug.h> --- 28 unchanged lines hidden (view full) --- 70{ 0, "in ipsec esp / transport / 10.0.0.1-10.0.0.2" }, 71{ 0, "in ipsec esp/tunnel/::1-::2" }, 72{ 1, "in ipsec esp/tunnel/10.0.0.1-::2" }, 73{ 0, "in ipsec esp/tunnel/::1-::2/require" }, 74{ 0, "out ipsec ah/transport//use" }, 75{ 1, "out ipsec ah/transport esp/use" }, 76{ 1, "in ipsec ah/transport esp/tunnel" }, 77{ 0, "in ipsec ah/transport esp/tunnel/::1-::1" }, |
78{ 0, "in ipsec 79 ah / transport 80 esp / tunnel / ::1-::2" }, 81{ 0, "out ipsec 82 ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require 83 ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require 84 ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require 85 " }, | 78{ 0, "in ipsec\n" 79 "ah / transport\n" 80 "esp / tunnel / ::1-::2" }, 81{ 0, "out ipsec\n" 82 "ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require\n" 83 "ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require\n" 84 "ah/transport/::1-::2 esp/tunnel/::3-::4/use ah/transport/::5-::6/require\n" }, |
86{ 0, "out ipsec esp/transport/fec0::10-fec0::11/use" }, 87}; 88 89int test1(void); 90int test1sub1(struct req_t *); 91int test1sub2(char *, int); 92int test2(void); 93int test2sub(int); --- 241 unchanged lines hidden --- | 85{ 0, "out ipsec esp/transport/fec0::10-fec0::11/use" }, 86}; 87 88int test1(void); 89int test1sub1(struct req_t *); 90int test1sub2(char *, int); 91int test2(void); 92int test2sub(int); --- 241 unchanged lines hidden --- |