2
* packETH - ethernet packet generator
3
* By Miha Jemec <jemcek@gmail.com>
4
* Copyright 2003 Miha Jemec, Iskratel
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
int load_gen_p_data(GtkButton *button, GtkWidget *clis, char *, struct pcaprec_hdr *, int, struct clist_hdr *clptri,
26
double timediff, double timebeg);
27
int load_packet_disector(GtkButton *button, char *, int whocalled, struct clist_hdr *clptr, int);
28
int ipv4_header(GtkButton *button, int whocalled, struct clist_hdr *clptr);
32
int load_data(GtkButton *button, FILE *file_p, int whocalled, int howmanypackets);
33
//int load_packet_disector(GtkButton *button, FILE *);
34
int load_gen_b_data(GtkButton *button, FILE *);
35
int load_gen_s_data(GtkButton *button, FILE *);
36
//int load_gen_p_data(GtkButton *button, char *, pcaprec_hdr *);
37
int ethernet_8023(GtkButton *button, int whocalled);
38
int ethernet_verII(GtkButton *button, int whocalled);
39
//int ipv4_header(GtkButton *button, int whocalled);
40
int arp_header(GtkButton *button, int whocalled);
41
int userdef2_field(GtkButton *button, int whocalled);
42
void inspar(GtkButton *button, char *entry, char *from, int length);
43
void insint(GtkButton *button, char *entry, char *from, int length);
44
signed int retint(char *ch);
45
unsigned long retint2(char *ch, int length);
46
int tcp_header(GtkButton *button, int whocalled);
47
int udp_header(GtkButton *button, int whocalled);
48
int igmp_header(GtkButton *button, int whocalled);
49
int icmp_header(GtkButton *button, int whocalled);
50
int usedef_insert(GtkButton *button, char *entry, int whocalled);
51
void convert8field(char *to, char *from);