ip_opt_data.c revision db5b637c3ad5d30e8f1abbe1c8ecdc74bc454bc0
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#define _SUN_TPI_VERSION 2
#include <sys/xti_inet.h>
#include <netinet/ip_mroute.h>
/*
* Table of all known options handled on a IP protocol stack.
*
* Note: Not all of these options are available through all protocol stacks
* For example, multicast options are not accessible in TCP over IP.
* The filtering for that happens in option table at transport level.
* Also, this table excludes any options processed exclusively at the
* transport protocol level.
*/
opdes_t ip_opt_arr[] = {
sizeof (struct in_addr), 0 /* INADDR_ANY */ },
},
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 /* no ifindex */ },
sizeof (struct in_addr), 0 /* not initialized */ },
sizeof (int), 0 },
sizeof (int), -1 /* not initialized */ },
sizeof (int), -1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
sizeof (int), 0 },
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 /* no ifindex */ },
sizeof (int), 0 },
sizeof (int), -1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
sizeof (int), -1 /* not initialized */ },
sizeof (struct ip6_mtuinfo), -1 },
sizeof (int), 0 },
sizeof (int), -1 },
sizeof (int), 0 },
/* Enable receipt of ancillary data */
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 },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
-1 /* not initialized */ },
};
/*
* Initialize option database object for IP
*
* 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.
*/
ip_opt_default, /* IP default value function pointer */
ip_opt_get, /* IP get function pointer */
ip_opt_set, /* IP set function pointer */
B_FALSE, /* IP is NOT a tpi provider */
IP_OPT_ARR_CNT, /* IP option database count of entries */
ip_opt_arr, /* IP option database */
0, /* 0 - not needed if not top tpi provider */
(optlevel_t *)0 /* null - not needed if not top tpi provider */
};