Print this page
7127 remove -Wno-missing-braces from Makefile.uts
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/inet/ip/keysock_opt_data.c
+++ new/usr/src/uts/common/inet/ip/keysock_opt_data.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 #include <sys/types.h>
27 27 #include <sys/stream.h>
28 28 #define _SUN_TPI_VERSION 1
29 29 #include <sys/tihdr.h>
30 30 #include <sys/socket.h>
31 31 #include <sys/xti_xtiopt.h>
32 32
33 33 #include <inet/common.h>
34 34 #include <netinet/ip6.h>
35 35 #include <inet/ip.h>
36 36
37 37 #include <netinet/in.h>
38 38 #include <netinet/tcp.h>
39 39 #include <inet/optcom.h>
40 40 #include <inet/keysock.h>
41 41
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
42 42 /*
43 43 * Table of all known options handled on a keysock (PF_KEY) protocol stack.
44 44 *
45 45 * Note: This table contains options processed by both KEYSOCK and IP levels
46 46 * and is the superset of options that can be performed on a KEYSOCK over
47 47 * IP stack.
48 48 */
49 49
50 50 opdes_t keysock_opt_arr[] = {
51 51 { SO_USELOOPBACK, SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0,
52 - (t_uscalar_t)sizeof (int), 0 },
52 + (t_uscalar_t)sizeof (int), {0} },
53 53 { SO_SNDBUF, SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0,
54 - (t_uscalar_t)sizeof (int), 0 },
54 + (t_uscalar_t)sizeof (int), {0} },
55 55 { SO_RCVBUF, SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0,
56 - (t_uscalar_t)sizeof (int), 0 },
56 + (t_uscalar_t)sizeof (int), {0} },
57 57 };
58 58
59 59 /*
60 60 * Table of all supported levels
61 61 * Note: Some levels (e.g. XTI_GENERIC) may be valid but may not have
62 62 * any supported options so we need this info separately.
63 63 *
64 64 * This is needed only for topmost tpi providers.
65 65 */
66 66 optlevel_t keysock_valid_levels_arr[] = {
67 67 SOL_SOCKET
68 68 };
69 69
70 70 #define KEYSOCK_VALID_LEVELS_CNT A_CNT(keysock_valid_levels_arr)
71 71
72 72 #define KEYSOCK_OPT_ARR_CNT A_CNT(keysock_opt_arr)
73 73
74 74 uint_t keysock_max_optsize; /* initialized in keysock_ddi_init() */
75 75
76 76 /*
77 77 * Intialize option database object for KEYSOCK
78 78 *
79 79 * This object represents database of options to search passed to
80 80 * {sock,tpi}optcom_req() interface routine to take care of option
81 81 * management and associated methods.
82 82 */
83 83
84 84 optdb_obj_t keysock_opt_obj = {
85 85 NULL, /* KEYSOCK default value function pointer */
86 86 keysock_opt_get, /* KEYSOCK get function pointer */
87 87 keysock_opt_set, /* KEYSOCK set function pointer */
88 88 KEYSOCK_OPT_ARR_CNT, /* KEYSOCK option database count of entries */
89 89 keysock_opt_arr, /* KEYSOCK option database */
90 90 KEYSOCK_VALID_LEVELS_CNT, /* KEYSOCK valid level count of entries */
91 91 keysock_valid_levels_arr /* KEYSOCK valid level array */
92 92 };
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX