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