~ubuntu-branches/ubuntu/quantal/packeth/quantal

« back to all changes in this revision

Viewing changes to src/loadpacket.h

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2009-10-31 21:27:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091031212700-x2vkemah0nhdn57t
Tags: 1.6.3-1
* New upstream version
* debian/rules rewritten to adapt to new source layout
  - debian/manpages added
  - debian/examples added
  - debian/dirs added
* debian/control:
  - bumped quilt Build-Depends to >= 0.46-7~ (to use --with quilt in
    dh7)
  - Standards-Version bumped to 3.8.3 (no changes needed)
* debian/patches/* refreshed to cleanly apply

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * packETH - ethernet packet generator
3
 
 * By Miha Jemec <jemcek@gmail.com>
4
 
 * Copyright 2003 Miha Jemec, Iskratel
5
 
 *
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.
10
 
 *
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.
15
 
 *
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.
19
 
 *
20
 
 * 
21
 
 */
22
 
 
23
 
#include "headers.h"
24
 
 
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);
29
 
 
30
 
 
31
 
 
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);