1 /* 2 * This file is part of Gspoof-3 (a console/gtk+ tcp/ip packet forger) 3 * 4 * $Name: ginclude.h $ 5 * $Version: 3.2 $ 6 * $Date: 2003/12/22 16:30:03 $ 7 * $Author: Embyte <embyte@madlab.it> $ 8 * $Copyright: Copyright (C) 2002-2003 by embyte $ 9 * $License: This software is under GPL version 2 of license $ 10 * 11 */ 12 13 #include <libnet.h> 14 15 struct FLAGS 16 { 17 u_char syn:1, 18 ack:1, 19 fin:1, 20 rst:1, 21 psh:1, 22 urg:1, 23 ece:1, 24 cwr:1; 25 } 26 f; 27 28 struct CHECKS 29 { 30 u_char multi:1, /* send many packets */ 31 data:1, /* include payload */ 32 linkl:1, /* work with datalink */ 33 debug:1; /* enable debug mode */ 34 } 35 ck; 36 37 struct MULTI 38 { 39 u_long number; 40 u_long delay; 41 } 42 m; 43 44 struct ECN 45 { 46 u_int dscp:8; 47 u_int ecn_ct:2; 48 u_int ecn_ce:1; 49 } 50 ipv4_tos; 51 52 u_long shost; 53 u_long dhost; 54 u_long seq; 55 u_long ack; 56 u_short id; 57 u_short urgp; 58 u_short tos; 59 60 char device[10]; 61 char data[128]; 62 63 u_char ebuf[LIBNET_ERRBUF_SIZE]; 64