00001 /* vim: set tabstop=4: */ 00002 /* 00003 * This file is part of TraceProto. 00004 * Copyright 2004-2005 Eric Hope and others; see the AUTHORS file for details. 00005 * 00006 * TraceProto is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * TraceProto is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with TraceProto; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 #ifndef TP_PACKET_H 00021 #define TP_PACKET_H 1 00022 00023 void build_packet ( void ); 00024 00025 int parse_tcp_packet( const u_char * raw_packet ); 00026 00027 int parse_udp_packet( const u_char * raw_packet ); 00028 00029 int parse_icmp_packet( const u_char * raw_packet ); 00030 00031 int parse_packet( u_char * raw_packet ); 00032 00033 void freelist_cleaner ( void ); 00034 00035 int tp_ntol ( int n_order ); 00036 00037 int send_tcp_reset ( void ); 00038 00039 #endif /* TP_PACKET_H */