14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER START
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * The contents of this file are subject to the terms of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Common Development and Distribution License (the "License").
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You may not use this file except in compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * or http://www.opensolaris.org/os/licensing.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the License for the specific language governing permissions
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * When distributing Covered Code, include this CDDL HEADER in each
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * If applicable, add the following below this CDDL HEADER, with the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * fields enclosed by brackets "[]" replaced with your own identifying
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * information: Portions Copyright [yyyy] [name of copyright owner]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CDDL HEADER END
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/*
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include <inet/tcp.h>
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include <sys/netstack.h>
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#define SED_REPLACE(x) s/#x/x/g
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_FIN)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_SYN)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_RST)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_PUSH)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_ACK)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_URG)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_ECE)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TH_CWR)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_CLOSED)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_IDLE)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_BOUND)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_LISTEN)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_SYN_SENT)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_SYN_RCVD)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_ESTABLISHED)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_CLOSE_WAIT)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_FIN_WAIT_1)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_CLOSING)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_LAST_ACK)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_FIN_WAIT_2)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCPS_TIME_WAIT)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncSED_REPLACE(TCP_MIN_HEADER_LENGTH)