l4states.h revision d14abf155341d55053c76eeec58b787a456b753b
/*******************************************************************************
* 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 2014 QLogic Corporation
* The contents of this file are subject to the terms of the
* QLogic End User License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing permissions
* and limitations under the License.
*
******************************************************************************/
#ifndef _L4STATES_H
#define _L4STATES_H
#include "bcmtype.h"
/*******************************************************************************
* Disconnect type.
******************************************************************************/
typedef enum _l4_disconnect_type_t
{
/*******************************************************************************
* Upload reason.
******************************************************************************/
typedef enum _l4_upload_reason_t
{
L4_UPLOAD_REASON_URG = 1,
/*******************************************************************************
* TCP connection state.
******************************************************************************/
typedef enum _l4_tcp_con_state_t
{
L4_TCP_CON_STATE_LISTEN = 11,
/*******************************************************************************
* Neighbor information.
******************************************************************************/
typedef struct _l4_neigh_const_state_t
{
typedef struct _l4_neigh_cached_state_t
{
typedef struct _l4_neigh_delegated_state_t
{
/*******************************************************************************
* Path information.
******************************************************************************/
typedef struct _l4_path_const_state_t
{
#define IP_VERSION_IPV4 4
#define IP_VERSION_IPV6 6
union _u_ip_type_t
{
struct _ip_v4_t
{
} ipv4;
struct _ip_v6_t
{
} ipv6;
} u;
typedef struct _l4_path_cached_state_t
{
typedef struct _l4_path_delegated_state_t
{
/*******************************************************************************
* TCP destination and source ports.
******************************************************************************/
typedef struct _l4_tcp_const_state_t
{
#define TCP_FLAG_ENABLE_TIME_STAMP 0x0001
#define TCP_FLAG_ENABLE_SACK 0x0002
#define TCP_FLAG_ENABLE_WIN_SCALING 0x0004
typedef struct _l4_tcp_cached_state_t
{
#define TCP_FLAG_ENABLE_KEEP_ALIVE 0x01
#define TCP_FLAG_ENABLE_NAGLING 0x02
#define TCP_FLAG_RESTART_KEEP_ALIVE 0x04
#define TCP_FLAG_RESTART_MAX_RT 0x08
#define TCP_FLAG_UPDATE_RCV_WINDOW 0x10
/* ipv6 fields. */
typedef struct _l4_tcp_delegated_state_t
{
/* TODO: remove the union in the next if version change. */
{
struct _keep_alive_t
{
} keep_alive;
struct _retransmit_t
{
} retransmit;
} u;
/*******************************************************************************
* Set offload parameters.
******************************************************************************/
typedef struct _l4_ofld_params_t
{
#define OFLD_PARAM_FLAG_SNAP_ENCAP 0x0001
#endif /* _L4STATES_H */