1 /* 2 tcp_seg.h 3 4 Dug Song <dugsong@anzen.com> 5 6 Copyright (c) 1999 Anzen Computing. All rights reserved. 7 8 Redistribution and use in source and binary forms, with or without 9 modification, are permitted provided that the following conditions 10 are met: 11 12 1. Redistributions of source code must retain the above copyright 13 notice, this list of conditions and the following disclaimer. 14 2. Redistributions in binary form must reproduce the above copyright 15 notice, this list of conditions and the following disclaimer in the 16 documentation and/or other materials provided with the distribution. 17 3. All advertising materials mentioning features or use of this software 18 must display the following acknowledgement: 19 This product includes software developed by Anzen Computing. 20 4. Neither the name of Anzen Computing nor the names of its 21 contributors may be used to endorse or promote products derived 22 from this software without specific prior written permission. 23 24 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 25 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 26 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 28 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 30 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 32 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 33 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 34 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 36 $Id: tcp_seg.h,v 1.3 1999/05/28 14:23:43 dugsong Exp $ 37 */ 38 39 #ifndef TCP_SEG_H 40 #define TCP_SEG_H 41 42 #include "list.h" 43 44 ELEM *tcp_seg_make(u_char *pkt, int pktlen, int segsize); 45 46 ELEM *tcp_seg_null_payload(ELEM *seg); 47 48 ELEM *tcp_seg_whack_checksums(ELEM *seg); 49 50 ELEM *tcp_seg_whack_acks(ELEM *seg); 51 52 ELEM *tcp_seg_interleave_nulls(ELEM *seg); 53 54 ELEM *tcp_seg_interleave_syns(ELEM *frag); 55 56 ELEM *tcp_seg_interleave_overwrites(ELEM *seg); 57 58 ELEM *tcp_seg_prepend_fakeclose(u_char *pkt, int pktlen); 59 60 ELEM *tcp_seg_prepend_connection(u_char *pkt, int pktlen); 61 62 ELEM *tcp_seg_prepend_junk(u_char *pkt, int pktlen); 63 64 #endif /* TCP_SEG_H */ 65 66