1*9cd928feSAlan Maguire/*
2*9cd928feSAlan Maguire * CDDL HEADER START
3*9cd928feSAlan Maguire *
4*9cd928feSAlan Maguire * The contents of this file are subject to the terms of the
5*9cd928feSAlan Maguire * Common Development and Distribution License (the "License").
6*9cd928feSAlan Maguire * You may not use this file except in compliance with the License.
7*9cd928feSAlan Maguire *
8*9cd928feSAlan Maguire * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9cd928feSAlan Maguire * or http://www.opensolaris.org/os/licensing.
10*9cd928feSAlan Maguire * See the License for the specific language governing permissions
11*9cd928feSAlan Maguire * and limitations under the License.
12*9cd928feSAlan Maguire *
13*9cd928feSAlan Maguire * When distributing Covered Code, include this CDDL HEADER in each
14*9cd928feSAlan Maguire * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9cd928feSAlan Maguire * If applicable, add the following below this CDDL HEADER, with the
16*9cd928feSAlan Maguire * fields enclosed by brackets "[]" replaced with your own identifying
17*9cd928feSAlan Maguire * information: Portions Copyright [yyyy] [name of copyright owner]
18*9cd928feSAlan Maguire *
19*9cd928feSAlan Maguire * CDDL HEADER END
20*9cd928feSAlan Maguire */
21*9cd928feSAlan Maguire/*
22*9cd928feSAlan Maguire * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23*9cd928feSAlan Maguire */
24*9cd928feSAlan Maguire
25*9cd928feSAlan Maguire#include <inet/tcp.h>
26*9cd928feSAlan Maguire#include <sys/netstack.h>
27*9cd928feSAlan Maguire
28*9cd928feSAlan Maguire#define	SED_REPLACE(x)	s/#x/x/g
29*9cd928feSAlan Maguire
30*9cd928feSAlan MaguireSED_REPLACE(TH_FIN)
31*9cd928feSAlan MaguireSED_REPLACE(TH_SYN)
32*9cd928feSAlan MaguireSED_REPLACE(TH_RST)
33*9cd928feSAlan MaguireSED_REPLACE(TH_PUSH)
34*9cd928feSAlan MaguireSED_REPLACE(TH_ACK)
35*9cd928feSAlan MaguireSED_REPLACE(TH_URG)
36*9cd928feSAlan MaguireSED_REPLACE(TH_ECE)
37*9cd928feSAlan MaguireSED_REPLACE(TH_CWR)
38*9cd928feSAlan Maguire
39*9cd928feSAlan MaguireSED_REPLACE(TCPS_CLOSED)
40*9cd928feSAlan MaguireSED_REPLACE(TCPS_IDLE)
41*9cd928feSAlan MaguireSED_REPLACE(TCPS_BOUND)
42*9cd928feSAlan MaguireSED_REPLACE(TCPS_LISTEN)
43*9cd928feSAlan MaguireSED_REPLACE(TCPS_SYN_SENT)
44*9cd928feSAlan MaguireSED_REPLACE(TCPS_SYN_RCVD)
45*9cd928feSAlan MaguireSED_REPLACE(TCPS_ESTABLISHED)
46*9cd928feSAlan MaguireSED_REPLACE(TCPS_CLOSE_WAIT)
47*9cd928feSAlan MaguireSED_REPLACE(TCPS_FIN_WAIT_1)
48*9cd928feSAlan MaguireSED_REPLACE(TCPS_CLOSING)
49*9cd928feSAlan MaguireSED_REPLACE(TCPS_LAST_ACK)
50*9cd928feSAlan MaguireSED_REPLACE(TCPS_FIN_WAIT_2)
51*9cd928feSAlan MaguireSED_REPLACE(TCPS_TIME_WAIT)
52*9cd928feSAlan Maguire
53*9cd928feSAlan MaguireSED_REPLACE(TCP_MIN_HEADER_LENGTH)
54