/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/xti_xtiopt.h>
#include <sys/xti_inet.h>
#include <netinet/ip_mroute.h>
#include <inet/rawip_impl.h>
/*
* Table of all known options handled on a ICMP protocol stack.
*
* Note: This table contains options processed by both ICMP and IP levels
* and is the superset of options that can be performed on a ICMP over IP
* stack.
*/
},
#ifdef SO_PROTOTYPE
/*
* icmp will only allow IPPROTO_ICMP for non-privileged streams
* that check is made on an adhoc basis.
*/
#endif
sizeof (struct timeval), 0 },
sizeof (struct timeval), 0 },
0 },
},
0 },
0 },
0 },
sizeof (int), 0 },
sizeof (struct in_addr), 0 /* INADDR_ANY */ },
sizeof (struct ip_mreq), 0 },
sizeof (struct ip_mreq_source), -1 },
sizeof (struct ip_mreq_source), -1 },
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 },
0 /* disabled */ },
OP_NODEFAULT, sizeof (int),
-1 /* not initialized */ },
sizeof (int), -1 /* not initialized */ },
sizeof (int), -1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
sizeof (int), 0 },
sizeof (int), -1 /* not initialized */ },
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 },
-1 },
sizeof (icmp6_filter_t), 0 },
sizeof (int), -1 /* not initialized */ },
sizeof (int), -1 /* not initialized */ },
sizeof (struct ip6_mtuinfo), -1 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (int), 0 },
sizeof (uint32_t), IPV6_PREFER_SRC_DEFAULT },
OP_NODEFAULT, sizeof (struct group_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
OP_NODEFAULT, sizeof (struct group_source_req),
-1 /* not initialized */ },
};
/*
* Table of all supported levels
* Note: Some levels (e.g. XTI_GENERIC) may be valid but may not have
* any supported options so we need this info separately.
*
* This is needed only for topmost tpi providers and is used only by
* XTI interfaces.
*/
};
/*
* Initialize option database object for ICMP
*
* This object represents database of options to search passed to
* {sock,tpi}optcom_req() interface routine to take care of option
* management and associated methods.
*/
icmp_opt_default, /* ICMP default value function pointer */
icmp_tpi_opt_get, /* ICMP get function pointer */
icmp_tpi_opt_set, /* ICMP set function pointer */
ICMP_OPT_ARR_CNT, /* ICMP option database count of entries */
icmp_opt_arr, /* ICMP option database */
ICMP_VALID_LEVELS_CNT, /* ICMP valid level count of entries */
icmp_valid_levels_arr /* ICMP valid level array */
};